[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

NAt + OSPF

Posted on 2014-02-03
3
Medium Priority
?
1,536 Views
Last Modified: 2014-02-05
HI guys
I have this scenario in GNS3 it is purely lab scenario connection to internet :I have R2 bridge to  internet from R2 I can ping any address on internet the same goes for R1 but I cannot ping any internet addresses  or 172.16.1.2 I run ospf and I like to have multiple subnets of different networks behind NAT to be able to access internet . what do I missing  I try static address and so on but nothing worked .How would it be done .IS there such set in real life that you get multiple networks behind one NAT perhaps office or so from different class of network .How is ofps work with NAT. and if I would add vpn how all this will be configured? Thanks very much.

R2 Router
interface FastEthernet0/0
 ip address 172.16.1.1 255.255.255.0
 ip nat inside

interface FastEthernet0/1
 ip address 192.168.1.25 255.255.255.0
 ip nat outside
ip route 0.0.0.0 0.0.0.0 192.168.1.254
ip nat pool nat 192.168.1.25 192.168.1.25 netmask 255.255.255.0
ip nat inside source list 1 pool nat overload
access-list 1 permit 172.16.0.0 0.0.7.255


router R1
interface FastEthernet0/0
 ip address 172.16.1.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 5.5.5.1 255.255.255.0
router ospf 1
network 1.1.1.0 0.0.0.255 area 0
 network 2.2.2.0 0.0.0.255 area 0
 network 5.5.5.0 0.0.0.255 area 1
 network 172.16.1.0 0.0.0.255 area 0
 network 0.0.0.0 255.255.255.255 area 0
!
ip route 0.0.0.0 0.0.0.0 172.16.1.1


R5 router
interface Loopback1
 ip address 7.7.7.7 255.255.255.0
interface FastEthernet0/0
 ip address 6.6.6.6 255.255.255.0
interface FastEthernet0/1
 ip address 5.5.5.5 255.255.255.0
router ospf 1
 network 5.5.5.0 0.0.0.255 area 1
 network 6.6.6.0 0.0.0.255 area 1
 network 7.7.7.0 0.0.0.255 area 1

see bellow config and picture :
GNS--NAT.docx
0
Comment
Question by:homolama
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Assisted Solution

by:Jordan Medlen
Jordan Medlen earned 1500 total points
ID: 39829534
Unless you've omitted it, I do not see OSPF configured on R2. Can you do "sh ip ospf neighbor" on R2 and R1 and provide the output here?
0
 

Author Comment

by:homolama
ID: 39829901
no sure it is not there just a static route which is redistributed in R1. i have ospf on router R2 before but it did not work so i try this way with no ospf .If you know how to just let me know .Thanks
0
 
LVL 6

Accepted Solution

by:
Jordan Medlen earned 1500 total points
ID: 39829911
Based on your configurations, there is no way for R2 to know where to send traffic for any other subnet on your internal LAN, as it's default gw points externally. So traffic for the 1.1.1.0, 2.2.2.0, etc subnets will be dropped.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Make the most of your online learning experience.
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question