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!