• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1589
  • Last Modified:

NAt + OSPF

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
homolama
Asked:
homolama
  • 2
2 Solutions
 
Jordan MedlenCommented:
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
 
homolamaAuthor Commented:
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
 
Jordan MedlenCommented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now