Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
URGENT virtual interfaces not working [SOLVED] ALMOST!?
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
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 732
Location: Winnipeg, Canada

PostPosted: Sat Sep 16, 2006 6:21 am    Post subject: URGENT virtual interfaces not working [SOLVED] ALMOST!? Reply with quote

I've recently upgrade a few servers to 2006.1 and after rebooting we had an alarming suprise when we discovered that interfaces such as eth0:1 would not work. I've tested a few older kernels but still have the same results.
Code:
magnificent ~ # ifconfig eth0:1 x.x.x.x netmask 255.255.255.0 broadcast x.x.x.x
SIOCSIFBRDADDR: Cannot assign requested address
SIOCSIFFLAGS: Cannot assign requested address


does anyone possibly know what the cause of this could be? the servers all run hardened kernels and worked before the upgrade and frankly the kernel config could not be responsible as it's remained relatively similar since 2.6.11.

Code:
magnificent ~ # emerge --info
Portage 2.1.1 (default-linux/amd64/2006.1/server, gcc-4.1.1, glibc-2.4-r3, 2.6.16-hardened x86_64)
=================================================================
System uname: 2.6.16-hardened x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Gentoo Base System version 1.12.5
Last Sync: Fri, 15 Sep 2006 08:00:07 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.du.se/pub/os/gentoo ftp://ftp.linux.ee/pub/gentoo/distfiles/ ftp://trumpetti.atm.tut.fi/gentoo/ http://ftp.du.se/pub/os/gentoo"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://83.168.212.11/gentoo-portage"
USE="amd64 acl acpi apache2 authdaemond bash-completion berkdb bitmap-fonts bzip2 ccache cgi chroot cjk cli cluster crypt ctype cups curl curlwrappers dba dio dlloader dri elibc_glibc erandom exif expat extensions fortran ftp gcc64 gdbm glibc-omitfp gmp gpm hardened icu idn imagemagick imap innodb input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog ithreads java javamail kernel_linux ldap libg++ logrotate logwatch maildir mailwrapper memlimit mmext mpi mysql mysqli nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses neural nls nptl nptlonly objc odbc offensive pam pam_chroot pcntl pcre perl pg-hier pg-intdatetime pg-vacuumdelay php pic posix postgres ppds pppd procmail python readline reflection ruby sasl sendfile session sftplogging shaper shared sharedext sharedmem simplexml snmp sockets softquota spl sqlite ssl sysvipc szip tcl tcpd threads truetype truetype-fonts type1-fonts udev unicode urandom userland_GNU vda video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i810 video_cards_mga video_cards_neomagic video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo virtual-users virus-scan wddx wmf xinetd xml xml2 xmlrpc xorg xsl zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!


Last edited by ali3nx on Sat Sep 16, 2006 5:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 732
Location: Winnipeg, Canada

PostPosted: Sat Sep 16, 2006 6:41 am    Post subject: Reply with quote

well just an update... I've recompiled a fresh "stable" gentoo-sources kernel without grsec and pax and oddly the same behavior has persisted...

Code:
magnificent ~ # uname -a
Linux magnificent 2.6.17-gentoo-r8 #1 SMP Sat Sep 16 08:33:00 CEST 2006 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ GNU/Linux
magnificent ~ # ifconfig eth0:1 up
SIOCSIFFLAGS: Cannot assign requested address

_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Back to top
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Sat Sep 16, 2006 7:49 am    Post subject: Reply with quote

I once saw an error similar to this and the solution was a bit unexpected: re-emerging net-tools (package containing ifconfig) made everything work again. So if kernel is not to blame, then this might be the reason for you, too.
_________________
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 732
Location: Winnipeg, Canada

PostPosted: Sat Sep 16, 2006 5:25 pm    Post subject: Reply with quote

well i left this for the night and came back after letting a full world rebuild do it's magic. Someone on irc last night mentioned checking the kernel's routing table with iproute so I figured what could i possibly have to loose To my amazement all the ip addresses which do not show up in ifconfig are attached and pingable as listed by ip add. Even stranger yet is this is after a complete world rebuild which went flawlessly... If there's a bug in net-tools i'm unaware of that anyone knows of i'm certainly interested in it now.. One other interesting mention is I have this happening on multiple servers so it's not an isolated issue. :?

Code:
magnificent ~ # ip add
1: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:e0:81:5a:0c:01 brd ff:ff:ff:ff:ff:ff
    inet 83.x.x.x/32 scope global eth0
    inet 172.16.35.41/24 brd 172.16.35.255 scope global eth0
    inet 83.x.x.x/24 brd 83.x.x.x scope global eth0
    inet 83.x.x.x/24 brd 83.x.x.x scope global secondary eth0
    inet 83.x.x.x/24 brd 83.x.x.x scope global secondary eth0
    inet 83.x.x.x/24 brd 83.x.x.x scope global secondary eth0
    inet 83.x.x.x/24 brd 83.x.x.x scope global secondary eth0
    inet 83.x.x.x/24 brd 83.x.x.x scope global secondary eth0
    inet 83.x.x.x/24 brd 83.x.x.x scope global secondary eth0
    inet 83.x.x.x/24 brd 83.x.x.x scope global secondary eth0
    inet 83.x.x.x/24 brd 83.x.x.x scope global secondary eth0
    inet 83.x.x.x/24 brd 83.x.x.x scope global secondary eth0
    inet 83.x.x.x/24 brd 83.x.x.x scope global secondary eth0
    inet 83.x.x.x/24 brd 83.x.x.x scope global secondary eth0
    inet 83.x.x.x/24 brd 83.x.x.x scope global secondary eth0
    inet 83.x.x.x/24 brd 83.x.x.x scope global secondary eth0
    inet 83.x.x.x/24 brd 83.x.x.x scope global secondary eth0
    inet6 fe80::2e0:81ff:fe5a:c01/64 scope link
       valid_lft forever preferred_lft forever
2: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue
    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
3: tunl0: <NOARP> mtu 1480 qdisc noop
    link/ipip 0.0.0.0 brd 0.0.0.0
4: gre0: <NOARP> mtu 1476 qdisc noop
    link/gre 0.0.0.0 brd 0.0.0.0
5: sit0: <NOARP> mtu 1480 qdisc noop
    link/sit 0.0.0.0 brd 0.0.0.0
magnificent ~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:81:5A:0C:01
          inet addr:83.x.x.x  Bcast:0.0.0.0  Mask:255.255.255.255
          inet6 addr: fe80::2e0:81ff:fe5a:c01/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11476232 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12083461 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1049246589 (1000.6 Mb)  TX bytes:1654760994 (1578.1 Mb)
          Interrupt:217

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:967 errors:0 dropped:0 overruns:0 frame:0
          TX packets:967 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:72980 (71.2 Kb)  TX bytes:72980 (71.2 Kb)

_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 732
Location: Winnipeg, Canada

PostPosted: Sat Sep 16, 2006 5:37 pm    Post subject: Reply with quote

Much thanks to agaffney for pointing out that the ifconfig method for virtual aliases is being depreciated or may be...

Code:
<ali3nx> agaffney, are you possibly aware of any current bugs in net-tools?
<ali3nx> you might be interested in this one :)
<ali3nx> http://forums.gentoo.org/viewtopic-t-498774.html
<ali3nx> iproute2 will show virtual interfaces listed but ifconfig will not
<ali3nx> on amd64/2006,1
<agaffney> yep, I was bit by this the other day
<agaffney> jakub pointed the new way out to me
<ali3nx> had me in a panic last night
<ali3nx> :/
<ali3nx> new way?
<ali3nx> as in using iproute2?
<agaffney> yes
<ali3nx> ah
<agaffney> I was freaked out the other day because ifconfig didn't show any of my 15 ip aliases
<agaffney> for my T1-facing interface
<ali3nx> yessssss
<agaffney> but 'ip a s' showed them all
<agaffney> and they still worked
<ali3nx> we have a full public pair of /24's
<ali3nx> for game servers
<ali3nx> and non listed :)
<agaffney> I've got a /28
<ali3nx> certainly had me wiping my eyeballs

_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Back to top
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Sat Sep 16, 2006 6:08 pm    Post subject: Reply with quote

Cool. Nice to know ifconfig is fading away.
_________________
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
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