PDA

View Full Version : add route to reach the computer 192.168.1.141


powah
1st September 2005, 02:36 AM
I want to add route to reach the computer 192.168.1.141 through the gateway 192.168.1.41.
I tried the following but the error is "SIOCADDRT: Network is unreachable".

# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.31.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 172.31.1.1 0.0.0.0 UG 0 0 0 eth0

# ping 192.168.1.41
PING 192.168.1.41 (192.168.1.41) 56(84) bytes of data.
64 bytes from 192.168.1.41: icmp_seq=0 ttl=64 time=61.7 ms
64 bytes from 192.168.1.41: icmp_seq=1 ttl=64 time=1.53 ms
64 bytes from 192.168.1.41: icmp_seq=2 ttl=64 time=56.1 ms

--- 192.168.1.41 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 1.538/39.821/61.780/27.168 ms, pipe 2

# route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.41
SIOCADDRT: Network is unreachable

Kralupy nad Vltavou Travel Photos on Instagram - Tacuarembo - Makurazaki Instagram Photos