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

Router cannot ping Server

Hi This question confuse me.
Here is topology: Router2(e1)----------------(e1)Router1(e0)---------------Server.

Router2(e1) ip address 1.1.2.2 255.255.255.0
Router1(e1) ip address 1.1.2.1 255.255.255.0
Router1(e0) ip address 1.1.1.2 255.255.255.0
Server ip address 1.1.1.1 255.255.255.0

After adding ip route 0.0.0.0 0.0.0.0 1.1.2.1 in Router2, Router2 can only ping Router1(e0)port, but cannot ping the Server. Even if I added 0.0.0.0 0.0.0.0 1.1.2.2 at Router1, The Router2 still cannot ping the Server. What command do i need to ping the Server?

Anyone can give me some suggestions ? thank you
0
davidy2001
Asked:
davidy2001
  • 4
  • 4
  • 3
2 Solutions
 
Ernie BeekCommented:
Router2 can only ping Router1(e0)port
So that's the 1.1.1.2?
Does the server have Router1(e0) as default gateway?
0
 
davidy2001Author Commented:
Sorry, I was not clear about it. This server should just be a simple device such as a printer, so I cannot set default gateway at the printer.
0
 
Ernie BeekCommented:
If you have a network printer you should be able to set a default gateway, like with every network attached device.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
davidy2001Author Commented:
Thank you for your reply. So, that means every device behind Router1 has to set default gateway pointing to Router1(e0) ? Then Router2 can ping all of device behind Router1 ?
0
 
Ernie BeekCommented:
Correct. Router2 needs to have a route to the network at the e0 interface of router1 because its not directly attached. The machines at thr e0 interface of router1 need to know where to send their traffic when it is not destined for the network they are attached to, so a default gateway.
0
 
Kerem ERSOYPresidentCommented:
Hi,

You need to add a default gateway to the server too. It should point to Router1 e0 which is 1.1.1.2 .

Then make sure that router1 is enabled for routing traffic between the interface.


Cheers,
K.
0
 
davidy2001Author Commented:
Thanks for your reply. If the server is gateway router, which connects ISP and also connect our Router1(e0), i have to set route at the gateway router pointing to Router1(e0), and then the Router2 can ping internet ? If there are some reasons I cannot touch the gateway router and configure a route pointing to Router1, that means that the Router2 never have access to internet ?
0
 
Kerem ERSOYPresidentCommented:
Thanks for your reply. If the server is gateway router, which connects ISP and also connect our Router1(e0), i have to set route at the gateway router pointing to Router1(e0), and then the Router2 can ping internet ? If there are some reasons I cannot touch the gateway router and configure a route pointing to Router1, that means that the Router2 never have access to internet ?

If the server is Internet router it will get an IP address from the WAN side and the default gateway will be automatically set to this address. Modifying this will cause the ISP gateway can not talk to its default gateway and route all the outbound packets to inside router which means that you can't talk to the internet anymore. Instead you should add ISP gateway a route which will send the network for router2 to the Router1 en0 interface and leave the default gateway alone. This will ensure that you both your default gateway is set and you can access Router2 over the Router1.
0
 
Kerem ERSOYPresidentCommented:
Thank you for your reply. So, that means every device behind Router1 has to set default gateway pointing to Router1(e0) ? Then Router2 can ping all of device behind Router1
?

Router1 should have a default gateway as server1 (ISP Gateway) over en0 and Router2 should have a default gateway pointing to Routerr1 en1. Then your ISP Gateway should have a static IP route pointing to en1 network of Router1 with the gateway as en0 interface of the router1.

In this case both your ISP Gateway can access to Router1 en interface and Router2 and Router2 can access internet over Router1.

Cheers,
K.
0
 
davidy2001Author Commented:
Good ! Thank erniebeek and KeremE
0
 
Kerem ERSOYPresidentCommented:
You're welcome.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

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