Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14636 - IP-aliasing does not work
Summary: IP-aliasing does not work
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-27 13:03 UTC by Ole Tange
Modified: 2003-11-19 06:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for net.eth1 (fil,762 bytes, patch)
2003-03-30 14:59 UTC, Ole Tange
Details | Diff
net.eth1 (net.eth1,3.58 KB, text/plain)
2003-03-30 15:07 UTC, Ole Tange
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ole Tange 2003-01-27 13:03:21 UTC
I did: 
 
emerge rsync 
emerge -u world 
 
Then I made the following net.eth1: 
 
iface_eth1="dhcp" 
dhcpcd_eth1="-t 20" 
alias_eth1="10.0.0.88 192.168.1.88" 
broadcast_eth1="10.0.0.255 192.168.1.255" 
netmask_eth1="255.255.255.0 255.255.255.0" 
 
This should result in: 
eth1: 192.168.1.24/255.255.255.0/192.168.1.255 (via dhcp) 
eth1:0: 10.0.0.88/255.255.255.0/10.0.0.255 
eth1:1: 192.168.1.88/255.255.255.0/192.168.1.255 
 
but it does not. 
 
It seems 'net.eth1 restart' does the following ifconfigs: 
eth1:0 down 
eth1:1 down 
eth1:0 10.0.0.88 broadcast 10.0.0.255 192.168.1.255 netmask 255.255.255.0 
255.255.255.0 
eth1:1 192.168.1.88 broadcast 10.0.0.255 netmask 255.255.255.0 
 
The 3rd is definitely wrong and the 4th seems bad as well (wrong bcast).
Comment 1 SpanKY gentoo-dev 2003-01-27 13:42:01 UTC

*** This bug has been marked as a duplicate of 7407 ***
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-16 13:42:54 UTC
This is what I get with baselayout-1.8.6.4 and your alias config on eth0:

----------------------------
eth0      Link encap:Ethernet  HWaddr 00:02:B3:15:F5:25  
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:171346 errors:0 dropped:0 overruns:0 frame:0
          TX packets:135111 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:166598234 (158.8 Mb)  TX bytes:9772598 (9.3 Mb)
          Interrupt:20 Base address:0xb000 Memory:f1000000-f1000038 

eth0:0    Link encap:Ethernet  HWaddr 00:02:B3:15:F5:25  
          inet addr:10.0.0.88  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:20 Base address:0xb000 Memory:f1000000-f1000038 

eth0:1    Link encap:Ethernet  HWaddr 00:02:B3:15:F5:25  
          inet addr:192.168.1.88  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:20 Base address:0xb000 Memory:f1000000-f1000038 
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2003-03-16 13:50:40 UTC
that fix it, ole?
Comment 4 Ole Tange 2003-03-16 15:43:11 UTC
Nope. Exactly same error. 
 
I did: 
 
emerge sync 
emerge baselayout-1.8.6.4.ebuild 
(emerge -u world will not work, as I have a pre-release of xfree installed) 
 
I tried substituting /sbin/ifconfig with a script to see what parameters it was called with.. 
 
ifconfig eth1:0 10.0.0.88 broadcast 10.0.0.255 192.168.1.255 netmask 255.255.255.0 
255.255.255.0 
ifconfig eth1:1 192.168.1.88 broadcast 10.0.0.255 netmask 255.255.255.0 
 
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-03-18 17:21:17 UTC
how about etc-update ?
are all scripts up2date ?
Comment 6 Ole Tange 2003-03-19 03:31:25 UTC
yes. all etc-scripts are updated. 
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-30 14:03:46 UTC
Please attach your net.eth0.
Comment 8 Ole Tange 2003-03-30 14:36:32 UTC
I just tried removing net.eth0. And the problem still exists: 
 
# /etc/init.d/net.eth0 stop 
 * ERROR:  "net.eth0" has not yet been started. 
# /etc/init.d/net.eth1 stop 
 * Bringing eth1 down... 
 *   Waiting for dhcpcd to shutdown.....done                              [ ok ] 
# /etc/init.d/net.eth1 start 
 * Bringing eth1 up...                                                    [ ok ] 
 *   Adding aliases... 
 *     eth1:0... 
SIOCSIFADDR: Invalid argument                                             [ ok ] 
 *     eth1:1... 
 
So even without net.eth0 the problem is still there. 
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-30 14:58:48 UTC
Ok, please attach net.eth1.
Comment 10 Ole Tange 2003-03-30 14:59:38 UTC
Created attachment 10027 [details, diff]
Patch for net.eth1

It seems this patch fixes the bug. It uses perl instead of awk.
Comment 11 Ole Tange 2003-03-30 15:07:03 UTC
Created attachment 10028 [details]
net.eth1

Here is net.eth1
Comment 12 Martin Holzer (RETIRED) gentoo-dev 2003-10-17 11:19:20 UTC
is this still an issue ?
Comment 13 Heinrich Wendel (RETIRED) gentoo-dev 2003-11-19 06:30:43 UTC
please reopen with answer.