Re: nslu2: two devices: one by default
- To: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>
- Cc: debian-arm <debian-arm@lists.debian.org>
- Subject: Re: nslu2: two devices: one by default
- From: Xan <dxpublica@telefonica.net>
- Date: Thu, 10 Dec 2009 17:03:40 +0100
- Message-id: <4B211BDC.8040804@telefonica.net>
- In-reply-to: <4B07F5BC.3050102@telefonica.net>
- References: <4AEC476A.8030901@telefonica.net> <20091102170612.GB29303@caffeine.csclub.uwaterloo.ca> <4AEF1E75.8040805@telefonica.net> <20091102181414.GC29303@caffeine.csclub.uwaterloo.ca> <052216CD-558B-4098-8A71-7A5A31D88989@mac.com> <4AEF36F8.5080304@telefonica.net> <20091102201857.GE29303@caffeine.csclub.uwaterloo.ca> <4AEF47EE.9000800@telefonica.net> <20091102230430.GH29303@caffeine.csclub.uwaterloo.ca> <4AF0249F.6090904@telefonica.net> <20091103152138.GJ29303@caffeine.csclub.uwaterloo.ca> <4B07DAC7.5010801@telefonica.net> <4B07F5BC.3050102@telefonica.net>
Hi,
I have now this route table:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
localnet * 255.255.0.0 U 0 0 0 eth0
localnet * 255.255.0.0 U 0 0 0
wlan0
default 172.26.0.1 0.0.0.0 UG 0 0 0
wlan0
default 172.26.0.1 0.0.0.0 UG 0 0 0 eth0
(with ip route I get:
172.26.0.0/16 dev eth0 proto kernel scope link src 172.26.0.2
172.26.0.0/16 dev wlan0 proto kernel scope link src 172.26.0.3
default via 172.26.0.1 dev wlan0
default via 172.26.0.1 dev eth0 )
and I want to get that:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
localnet * 255.255.0.0 U 0 0 0 eth0
default 172.26.0.1 0.0.0.0 UG 0 0 0 eth0
Can I get that with the following command? Please confirm:
ip route del default via 172.26.0.1 dev wlan0
ip route del 172.26.0.1/16 dev wlan0 proto kernel scope link src 172.26.0.1
and
ip route add 172.26.0.1/16 dev eth0 proto kernel scope link src 172.26.0.1
ip route add default via 172.26.0.1 dev eth0
?
Is it correct?
Thanks a lot,
Xan.
Reply to: