[PLUG] Wireless Networking on ThinkPad 600E/Xubuntu-7.04

Quentin Hartman qhartman at gmail.com
Tue Jul 24 20:55:52 UTC 2007


On 7/23/07, Rich Shepard <rshepard at appl-ecosys.com> wrote:
>
> On Mon, 23 Jul 2007, Rich Shepard wrote:
>
> > root at pachy:~# route -n
> > Kernel IP routing table
> > Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> > 192.168.55.0    0.0.0.0         255.255.255.0   U     0      0        0
> eth1
> > 169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0
> eth1
> > 0.0.0.0         192.168.55.4    0.0.0.0         UG    0      0        0
> eth1
>
>    I don't know where the 169.254.0.0 network came from, but I cannot
> successfully run 'route,' even as root. The system will not let me delete
> that route or add a loopback route.


Cannot successfully run route as in "command not found" or it doesn't like
the syntax? The "route" command should be installed by default, it has been
on every Ubuntu box I've worked on.


> How, on a Ubuntu box, can I run 'route add -net ...' and 'route del ...'?
The way I do it on modern (2.6.x systems with iproute2 installed (which
Ubuntu is)) I use the following syntax:

ip route add 192.168.0.0/24 via 10.0.0.1

to add static routes. To make them persistent, I adjust the
/etc/network/interfaces file so that the section for the appropriate
interface looks like the following:

auto eth0
iface eth0 inet dhcp
up route add -net 192.168.0.0 netmask 255.255.255.0 gw 172.16.1.70
down route del -net 192.168.0.0 netmask 255.255.255.0 gw 172.16.1.70

That above adds the static route to my VPN gateway for my colo'd machines to
my routing table when I boot. You'll surely notice that the syntax is like
that of the older "route" command. I'm sure it could be done with either the
new or old syntax.

-- 
-Regards-

-Quentin Hartman-



More information about the PLUG mailing list