LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   routing tables (https://www.linuxquestions.org/questions/linux-networking-3/routing-tables-4175524501/)

rey 11-05-2014 09:57 PM

routing tables
 
hello i have the following network setup, i need to access the http server at 192.168.0.1 from the computer at 192.168.5.21, the diagram goes as follows:

Code:

computer
192.168.5.21 (static)
  |
  |
  |
192.168.5.10 (static)
router
192.168.0.60 (dhcp)
  |
  |
  |
192.168.0.1 (default)
modem
(public ip)
  |
  |
  |
  |
the internet

i have been very confused about this, if the modem changes its ip to 192.168.1.254 then I can browse it just fine from computer, however it stops working with the ip 192.168.0.1

the routing tables for computer are:
Code:

Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.5.0    0.0.0.0        255.255.255.0  U    0      0        0 eth0
0.0.0.0        192.168.5.10  0.0.0.0        UG    0      0        0 eth0

the routing tables for router are:
Code:

Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
0.0.0.0        192.168.0.1    0.0.0.0        UG    0      0        0 eth1
192.168.0.0    0.0.0.0        255.255.255.0  U    0      0        0 eth1
192.168.5.0    0.0.0.0        255.255.255.0  U    0      0        0 eth0


thanks for your help!

ember1205 11-06-2014 05:42 PM

This is labeled as SOLVED. Do you still need help?

If you still need help, I suspect that the problem is actually with the device that has 192.168.0.1 not having a "return route" for your IP address via the router.


All times are GMT -5. The time now is 06:17 PM.