Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

how to connect internet by NAT/PAT?

I have two routers, 2514 and 2501

now i can connect internet by this way:

2514:

inter e 0

ip addr dhcp(can get ip from ISP)

ip nat outside

inter e 1

ip addr 192.168.0.14 255.255.255.0

ip nat inside

!

ip nat inside source list 1 ethernet 0 overload

!

access-list 1 permit 192.168.0.0 0.0.0.255

2501

int e 0

ip addr 192.168.0.1

my PC

ip: 192.168.0.100

default gateway: 192.168.0.14

now it is ok, my pc and my 2501 both can connect internet. that is great, but i found i don't know how to connect internet this way:

2514:

int e 0

ip addr dhcp

ip nat outside

int s 0 (s0 connect s0 of 2501)

ip addr 172.16.0.1 255.255.0.0

ip nat inside(here?, not sure)

ip nat source list 1 ether 0 overload

2501:

int s 0

ip addr 172.16.0.2 255.255.0.0

int e 0

ip addr 192.168.0.1

of course, eigrp or rip is running on both routers.

my pc is same

help me, my pc how to connect internet

1 REPLY
Bronze

Re: how to connect internet by NAT/PAT?

Hi,

first of all: is the serial connection working? From the 2501, can you ping 172.16.0.1, and from the 2514 can you ping 172.16.0.2?

If not, look here to see how to connect 2 routers back to back: http://www.cisco.com/en/US/tech/tk713/tk317/technologies_configuration_example09186a00800944ff.shtml

If the serial is ok, check the routing: does the 2514 have a default route to the internet?

Does the 2501 have a default route (static or learned via rip/igrp) to the 2514?

Does the 2514 have a route (static or dynamically learned) to the 192.168.0.0/24 network?

If you want, post the output of "show ip route" on both routers.

Lastly, your NAT config looks good, except that you don't have this line on the 2514 (which was in the 2501's original config):

access-list 1 permit 192.168.0.0 0.0.0.255

hth

Herbert

79
Views
0
Helpful
1
Replies
CreatePlease to create content