From: Sokol <mailist@sokol.dynalias.net>
To: linux-admin@vger.kernel.org
Subject: ip vs. route
Date: Wed, 29 Aug 2007 21:01:00 +0200 [thread overview]
Message-ID: <e1fe0fcd706d29611dcc8ccdec722621@localhost> (raw)
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
reply other threads:[~2007-08-29 19:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e1fe0fcd706d29611dcc8ccdec722621@localhost \
--to=mailist@sokol.dynalias.net \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.