add default gateway through eth0:avah interface?
Donatas G.
dgvirtual at akl.lt
Fri Feb 8 23:08:20 UTC 2008
I was trying to setup internet connection sharing by utilizing the
automatically acquired ip's by my two cable-connected feisty boxes, but
failed. I guess it is because the gateway gets added through eth0 interface
and not through eht0:avah pseudo interface:
================================================
dg at pieva:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:8D:50:0A:37
inet6 addr: fe80::250:8dff:fe50:a37/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:87 errors:0 dropped:0 overruns:0 frame:0
TX packets:155 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:43209 (42.1 KiB) TX bytes:19886 (19.4 KiB)
Interrupt:17 Base address:0xe400
eth0:avah Link encap:Ethernet HWaddr 00:50:8D:50:0A:37
inet addr:169.254.3.150 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:17 Base address:0xe400
# Added the default gateway:
dg at pieva:~$ sudo route add default gw 169.254.9.24
dg at pieva:~$ route
Kernel IP routeing table
Destination Gateway Genmask Flags Metric Ref Use Iface
link-local * 255.255.0.0 U 0 0 0 eth0
default 169.254.9.24 0.0.0.0 UG 0 0 0 eth0
default * 0.0.0.0 U 1000 0 0 eth0
================================================
So I had to resort to static IP addresses...
Is there a way to make the "route add" command specify the eth0:avah
interface?
--
Donatas Glodenis
http://dg.lapas.info
More information about the kubuntu-users
mailing list