Helo:

I have a little problem..... Ihave a Linux box with one ethernet card and I
compiled my kernel for do IP aliasing and I tried to put two IP addresses on
that card.
Everything is fine, I have one IP (192.168.30.90) on the dev eth0, and the
other IP (192.198.34.23) on dev eth0:0. But I need to use diferent gateways
in for each IP and I cant.

I did this:

ifconfig 192.168.30.90 eth0
ifconfig 192.198.34.23 eth0:0

route add -net 192.168.30.0 broadcast 192.168.30.255 netmask 255.255.255.0
metric 1
route add -host 192.168.30.90 dev eth0
route add -host 192.198.34.23 dev eth0:0

but if I try to change the gateway in the route 192.198.23 I cannot do that.

Please, if you could help me!!!!

Anohter thing, when I write ifconfig I see that the eth0 have many packets
in Tx and Rx, but eth0:0 have cero.

Sorry about my english and thank you!!

--
Mariano Fern�ndez

Reply via email to