Solved

NAt + OSPF

Posted on 2014-02-03
3
1,352 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
  • 2
3 Comments
 
LVL 6

Assisted Solution

by:Jordan Medlen
Jordan Medlen earned 500 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 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

839 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