09-05-2016 04:19 AM - edited 03-05-2019 04:38 AM
I've a setup where the customer is using 1905 router for Internet access. They have a LAN segment with 192.168.1.0/24 and an WAN segment of 150.129.126.168/29 provided by ISP.
Right now they are using a D-Link router for internet access and its working fine. But when we use the Cisco router with below config, users are unable to access internet.
Cisco Config:
interface gi0/0------ 192.168.1.1/24 (LAN)
interface gi0/1------ 150.129.126.170/29 (WAN)
ip route--------------- 0.0.0.0 0.0.0.0 150.129.126.169
DHCP pool --------- 192.168.1.180 to 192.168.1.199
Now, since we are using Pvt Ip in LAN segment and Public in WAN, I feel like we have to perform NAT for the users to access internet. But not quite sure of how to do it.
Any suggestion and help in this regard would be highly appreciated :).
Solved! Go to Solution.
09-05-2016 06:50 PM
Hi chinmoy.boruah1,
You can use the following commands:
R1(config)#ip access-list standard 7
R1(config-std-nacl)#permit 192.168.1.0 0.0.0.255
R1(config)#ip nat inside source list 7 interface g0/1 overload
R1(config)#interface gi0/0
R1(config-if)#ip nat inside
R1(config)#interface gi0/1
R1(config-if)#ip nat outside
If you need more documentation about the different ways to configure nat this is going to help you:
http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_nat/configuration/15-mt/nat-15-mt-book/iadnat-addr-consv.html#GUID-B06BC2B4-4345-4A14-A74D-25E09DCB571A
Hope this info helps!!
Rate if helps you!!
-JP-
09-05-2016 06:50 PM
Hi chinmoy.boruah1,
You can use the following commands:
R1(config)#ip access-list standard 7
R1(config-std-nacl)#permit 192.168.1.0 0.0.0.255
R1(config)#ip nat inside source list 7 interface g0/1 overload
R1(config)#interface gi0/0
R1(config-if)#ip nat inside
R1(config)#interface gi0/1
R1(config-if)#ip nat outside
If you need more documentation about the different ways to configure nat this is going to help you:
http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_nat/configuration/15-mt/nat-15-mt-book/iadnat-addr-consv.html#GUID-B06BC2B4-4345-4A14-A74D-25E09DCB571A
Hope this info helps!!
Rate if helps you!!
-JP-
09-12-2016 03:18 AM
Thanks a lot JP.
This worked out fine and system is running tight right now. Appreciate your support.
Regards
Chinmoy
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide