cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
302
Views
0
Helpful
4
Replies

ping

alex goshtaei
Level 1
Level 1

Hi All;

scenario: router has two interface. gi 0/0 and gi 0/1. gi 0/1 connect to internet with defined default gateway. I can ping default gateway (24.249.246.113) but extended ping from gi 0/0 to default gateway doesn't work. I applied "ip routing" command and also I applied static route to default gateway "ip route 0.0.0.0 0.0.0.0 24.249.246.113" but still not work. therefore all PC behind the router which are connected to gi 0/0, can't connect to internet.

I appreciate if you can solve my problem.

thanks

4 Replies 4

globalnettech
Level 5
Level 5

Hello,

can you post the configuration of your router ?

Regards,

GNT

I wonder a little bit about terminology in the original post. It says that the router has a defined default gateway. I am not sure whether that is literal and the router is configured with ip default-gateway or something else. A router will use the default-gateway when the router is operating as an IP host but does not use that address when it is routing packets. But then the original post says that he added ip route 0.0.0.0 0.0.0.0 24.249.246.113 so at that point the router had a valid default route which it would use to route packets, so there must be some other issue.

Since the router can ping the 24.249.246.113 address it demonstrates that the router can forward to that address (this would be true for the standard ping and the extended ping). It suggests that the router at 24.249.246.113 does not have a route to the address on the g0/0 interface. The original post did not have any information about the addressing of interface g0/0. My guess is that the interface has addressing in private address space and that there is no address translation configured. Perhaps alireza can clarify what addressing is used and whether there is any address translation.

HTH

Rick

HTH

Rick

Rick;

thanks for replying to my request. here is the configuration:

#ip route 0.0.0.0 0.0.0.0 24.249.246.113

#ip default-gateway 24.249.246.113

#ip routing

IP address for gi0/1:24.249.246.114

IP address for gi0/0:192.168.20.1/24

also there is no routing protocol (RIP, EIGRP, ...) in router configuration

router directly connected to service provider network

standard ping works but extended ping from gi0/0 to 24.249.246.113 doesn't work.

I didn't configure address translation. Do I need to configure address translation for the private IP addr scheme. If yes, would you please show me how to configure address translation?

thanks a lot.

Thanks for the additional information. Knowing that there is not any dynamic routing protocol between your router and the provider and knowing that interface g0/1 has a public (provider supplied) address whle inteface g0/0 has private addressing confirms what the problem is. In the extended ping the source address is 192.168.20.1 and the provider has no route to get to that address. The solution is to use NAT - or in your situation probably to use PAT which will translate all addresses on g0/0 using the address on g0/1.

The config might look something like this:

int gi0/0

ip nat inside

int gi0/1

ip nat outside

access-list 50 permit any

ip nat inside source list 50 interface gi0/1 overload

HTH

Rick

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card