Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] strange eth0 alias problem [warning: drunk posting]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
qubix
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2003
Posts: 146
Location: Warsaw/Poland

PostPosted: Sun Jan 03, 2010 4:37 pm    Post subject: [solved] strange eth0 alias problem [warning: drunk posting] Reply with quote

Hi!

I can't get my alias eth0:0 interface to work. I use it successfully on a number of gentoo boxes, but I've got a problem only with one of them. What am I doing wrong, what should I check?

/etc/conf.d/net:
Code:
config_eth0=( "192.168.67.2/24" "192.168.67.3/24" )
routes_eth0=( "default via 192.168.67.1" )
dns_servers_eth0=( "192.168.67.2" )


some bash stuff:
Code:
batou ~ # uname -a
Linux batou 2.6.28-hardened-r9-q #1 SMP Sat Dec 19 12:56:24 CET 2009 i686 Intel(R) Pentium(R) D CPU 3.40GHz GenuineIntel GNU/Linux
batou ~ # ifconfig eth0:0 192.168.67.3  up
SIOCSIFADDR: File exists
SIOCSIFFLAGS: Cannot assign requested address
SIOCSIFFLAGS: Cannot assign requested address
batou ~ # ifcfg eth0 add 192.168.67.3
Forwarding is ON or its state is unknown (5). OK, No RDISC.
RTNETLINK answers: File exists
Error: failed to add 192.168.67.3/24 on eth0.
batou ~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:18:f3:51:ad:80 
          inet addr:192.168.67.2  Bcast:192.168.67.255  Mask:255.255.255.0
          inet6 addr: fe80::218:f3ff:fe51:ad80/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:249336191 errors:0 dropped:0 overruns:0 frame:0
          TX packets:144097392 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3966216907 (3.6 GiB)  TX bytes:1467365198 (1.3 GiB)
          Interrupt:16

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1399803 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1399803 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:952258569 (908.1 MiB)  TX bytes:952258569 (908.1 MiB)

batou ~ # lsmod | grep tg3
tg3                   114799  0
libphy                 27426  1 tg3


_________________
qubix


Last edited by qubix on Sun Jan 03, 2010 5:12 pm; edited 3 times in total
Back to top
View user's profile Send private message
aidanjt
Veteran
Veteran


Joined: 20 Feb 2005
Posts: 1118
Location: Rep. of Ireland

PostPosted: Sun Jan 03, 2010 4:42 pm    Post subject: Reply with quote

Do you have iproute2 installed?
_________________
juniper wrote:
you experience political reality dilation when travelling at american political speeds. it's in einstein's formulas. it's not their fault.
Back to top
View user's profile Send private message
qubix
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2003
Posts: 146
Location: Warsaw/Poland

PostPosted: Sun Jan 03, 2010 4:51 pm    Post subject: Reply with quote

yes, I do.

And it's strange - ifcfg is part of iproute2 and gentoo bootscripts (/etc/init.d/net.lo and .eth0) should use iproute to bring up the devices properly...
_________________
qubix
Back to top
View user's profile Send private message
aidanjt
Veteran
Veteran


Joined: 20 Feb 2005
Posts: 1118
Location: Rep. of Ireland

PostPosted: Sun Jan 03, 2010 5:07 pm    Post subject: Reply with quote

I would have thought so too. Might be a driver issue, can you test with another NIC to double check?
_________________
juniper wrote:
you experience political reality dilation when travelling at american political speeds. it's in einstein's formulas. it's not their fault.
Back to top
View user's profile Send private message
qubix
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2003
Posts: 146
Location: Warsaw/Poland

PostPosted: Sun Jan 03, 2010 5:11 pm    Post subject: Reply with quote

sorry, one beer to many today:

Code:
batou ~ # ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:18:f3:51:ad:80 brd ff:ff:ff:ff:ff:ff
    inet 192.168.67.2/24 brd 192.168.67.255 scope global eth0
    inet 192.168.67.3/24 brd 192.168.67.255 scope global secondary eth0
    inet6 fe80::218:f3ff:fe51:ad80/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:18:f3:51:ad:81 brd ff:ff:ff:ff:ff:ff


so it's working... nvm...
_________________
qubix
Back to top
View user's profile Send private message
aidanjt
Veteran
Veteran


Joined: 20 Feb 2005
Posts: 1118
Location: Rep. of Ireland

PostPosted: Sun Jan 03, 2010 5:14 pm    Post subject: Reply with quote

qubix wrote:
sorry, one beer to many today:

No bother. We've all had a few of those moments. :lol:
_________________
juniper wrote:
you experience political reality dilation when travelling at american political speeds. it's in einstein's formulas. it's not their fault.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum