Re: /sbin/route and virtual interfaces

Bernd Eckenfels (ecki@lina.inka.de)
Sat, 04 Sep 1999 20:40:18 +0200


In article <19990903123307.G20682@trion.com> you wrote:
> 172.19.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

> [root@spy rob]# /sbin/route add -host 192.168.1.5 gw 172.19.1.1 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.

Greetings
Bernd
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu