Re: /sbin/route and virtual interfaces

Bernd Eckenfels (
Sat, 04 Sep 1999 20:40:18 +0200

In article <> you wrote:
> U 0 0 0 eth0

> [root@spy rob]# /sbin/route add -host gw metric 1 dev eth0:0

Your problem is that if you give a GW on a device, then the "dev" clause in
route add will be ignored. You need to add a route to your gateway through
the apropirate virtual device first.

I am not aware of any problems in setting up a route to a virtuel interface
in any of the net tools versions i have maintained. Therefore an upgrade
wont help u in that case. route is not doing much, it only copies the name
of the device into the structure which is handed to the kernel.

To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to