Nathan E Norman wrote: > > On Wed, Jan 24, 2001 at 03:24:16PM -0800, Willy Lee wrote: > > Hm. This doesn't work for me (latest potato i386). Here's the stanza I *snip* > Well. Several things: > > 1) There's no point in tracking RX or TX packets for a virtual > interface (think about the word virtual for a while ...)
Ok, but the output of ifconfig in the IP-aliasing mini-HOWTO *does* have those lines, which confused me. > 2) You're missing the "network" line from your iface stanza. Since it > looks to me like you're adding a different subnet this is kinda > important. Ok, I thought (from man interfaces) that the "network" line was only needed for 2.0.x series kernels, I can add this. > 3) It doesn't look like you added any routes. This might not be > necessary depending which kernel you're using. I tried several combinations of route commands. This is the latest one I tried: route add -host 205.178.55.110 dev eth0:0 I also tried 'route add -net 205.178.55.0 netmask 255.255.255.192 dev eth0:0'. > > I recompiled the kernel to turn on IP_ALIAS support. Is there another > > feature I need to turn on, that I perhaps missed? Is the feature > > limited to certain hardware? Is it limited to certain subnet masks? > > Fixd #2. Post the output of "netstat -rn". Consider whether you're > helping us solve your problem by blocking out the IPs. Ok. I thought blocking out the IPs was kinda traditional :) Perhaps more people pinging the machine would help. New stanza in /etc/network/interfaces: iface eth0:0 inet static address 205.178.55.110 netmask 255.255.255.192 gateway 205.178.55.65 broadcast 205.178.55.255 network 205.178.55.0 This is right after doing a /etc/init.d/networking restart, before any route commands. trs80:/etc/network# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 205.178.55.64 0.0.0.0 255.255.255.192 U 0 0 0 eth0 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 205.178.55.65 0.0.0.0 UG 0 0 0 eth0 0.0.0.0 10.0.0.41 0.0.0.0 UG 0 0 0 eth0 trs80:/etc/network# ifconfig eth0 Link encap:Ethernet HWaddr 00:10:5A:9C:8B:BF inet addr:10.0.0.102 Bcast:10.255.255.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5656 errors:0 dropped:0 overruns:0 frame:0 TX packets:2998 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 Interrupt:11 Base address:0xd000 eth0:0 Link encap:Ethernet HWaddr 00:10:5A:9C:8B:BF inet addr:205.178.55.110 Bcast:205.178.55.255 Mask:255.255.255.192 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:11 Base address:0xd000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:3924 Metric:1 RX packets:27 errors:0 dropped:0 overruns:0 frame:0 TX packets:27 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 Thanks for all the help. I am kinda struggling here, since I've been forced into a sysadmin role without any experience or training (company can't afford a real sysadmin, I'm the only person with *any* kind of linux experience, since I run debian at home.) =wl