linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ip vs. route
@ 2007-08-29 19:01 Sokol
  0 siblings, 0 replies; only message in thread
From: Sokol @ 2007-08-29 19:01 UTC (permalink / raw)
  To: linux-admin


Hi folks,

I notice a strange behaviour on my freewrt box. I set up a vpn with openvpn
and need to set some routes through my network.

Following I try with route:

root@gtw01:/etc# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
10.101.66.240   0.0.0.0         255.255.255.240 U     0      0        0
eth0.0
10.104.125.0    0.0.0.0         255.255.255.0   U     0      0        0
eth1
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0
ppp0
root@gtw01:/etc# route add -host 10.101.66.253 dev eth0.0
root@gtw01:/etc# route add -net 10.8.0.0 netmask 255.255.255.0 gw
10.101.66.253 dev eth0.0
root@gtw01:/etc# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
10.101.66.253   0.0.0.0         255.255.255.255 UH    0      0        0
eth0.0
10.101.66.240   0.0.0.0         255.255.255.240 U     0      0        0
eth0.0
10.104.125.0    0.0.0.0         255.255.255.0   U     0      0        0
eth1
10.8.0.0        10.101.66.253   255.255.255.0   UG    0      0        0
eth0.0
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0
ppp0

Everything works like a charm. But with ip I get this:

root@gtw01:/etc# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
10.101.66.240   0.0.0.0         255.255.255.240 U     0      0        0
eth0.0
10.104.125.0    0.0.0.0         255.255.255.0   U     0      0        0
eth1
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0
ppp0
root@gtw01:/etc# ip route add 10.101.66.253 dev eth0.0
root@gtw01:/etc# ip route add 10.8.0.0 via 10.101.66.253 dev eth0.0
ip: RTNETLINK answers: Network is unreachable

I need ip for maintain my ruleset with fwbuilder.
Who can give me a hint?

Thanks.
Kamill





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-29 19:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-29 19:01 ip vs. route Sokol

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).