WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] xen 3.4.3 on CentOS 5.5 dom0: multiple nic issue -- eth1 won

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] xen 3.4.3 on CentOS 5.5 dom0: multiple nic issue -- eth1 won't restart
From: "Joe Linoff" <jlinoff@xxxxxxxxxx>
Date: Sat, 12 Feb 2011 09:55:02 -0800
Cc: Joe Linoff <jlinoff@xxxxxxxxxx>
Delivery-date: Sat, 12 Feb 2011 09:56:25 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcvK3fjMK/cC9aO8SICkZl+r41UvOg==
Thread-topic: xen 3.4.3 on CentOS 5.5 dom0: multiple nic issue -- eth1 won't restart
Hi Folks:

I have a strange problem with multiple (2) NICs on a CentOS 5.5 dom0
setup running xen 3.4.3 and have been struggling to fix it for some
time. I could not find anything by googling or searching through this
list but that is probably because I couldn't figure out the correct
search terms.

After I configure my bridges the command "system network restart" fails
for eth1 but xenbr1 shows up correctly and everything seems to work: my
dom0 and domUs can see the network.

Here is the error message:

  dom0 # service network restart
  Shutting down interface eth0:                              [  OK  ]
  Shutting down loopback interface:                          [  OK  ]
  Bringing up loopback interface:                            [  OK  ]
  Bringing up interface eth0:                                [  OK  ] 
  Bringing up interface eth1:  bnx2 device eth1 does not seem to be
present, delaying initialization.
                                                             [FAILED]

How can I get rid of the error message? My guess is that I am doing
something wrong but I can't figure out what it is.

Any help would be greatly appreciated.

Here is the ifconfig output. As you can see xenbr1 is there but it
contains the "inet addr" and HWaddr" I would expect to see on eth1. Is
that okay? I assumed it was because everything works but its existence
means that eth1 doesn't exist.

  dom 0 # ifconfig
  eth0      Link encap:Ethernet  HWaddr A4:BA:DB:09:7A:B3  
            inet addr:172.16.45.22  Bcast:172.16.45.255
Mask:255.255.255.0
            inet6 addr: fe80::a6ba:dbff:fe09:7ab3/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:63134 errors:0 dropped:0 overruns:0 frame:0
            TX packets:42495 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:0 
            RX bytes:17957819 (17.1 MiB)  TX bytes:10063941 (9.5 MiB)
  
  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:30281 errors:0 dropped:0 overruns:0 frame:0
            TX packets:30281 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:0 
            RX bytes:8903977 (8.4 MiB)  TX bytes:8903977 (8.4 MiB)
  
  peth0     Link encap:Ethernet  HWaddr A4:BA:DB:09:7A:B3  
            inet6 addr: fe80::a6ba:dbff:fe09:7ab3/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:1397263 errors:0 dropped:0 overruns:0 frame:0
            TX packets:348931 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000 
            RX bytes:1989300171 (1.8 GiB)  TX bytes:32449801 (30.9 MiB)
            Interrupt:25 Memory:da000000-da012800 
  
  peth1     Link encap:Ethernet  HWaddr A4:BA:DB:09:7A:B4  
            inet6 addr: fe80::a6ba:dbff:fe09:7ab4/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:508724 errors:0 dropped:0 overruns:0 frame:0
            TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000 
            RX bytes:43249113 (41.2 MiB)  TX bytes:10196 (9.9 KiB)
            Interrupt:26 Memory:dc000000-dc012800 
  
  vif3.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
            inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:906 errors:0 dropped:0 overruns:0 frame:0
            TX packets:1657 errors:0 dropped:22 overruns:0 carrier:0
            collisions:0 txqueuelen:32 
            RX bytes:51014 (49.8 KiB)  TX bytes:142082 (138.7 KiB)
  
  vif3.1    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
            inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:1280 errors:0 dropped:0 overruns:0 frame:0
            TX packets:143108 errors:0 dropped:2341 overruns:0 carrier:0
            collisions:0 txqueuelen:32 
            RX bytes:138023 (134.7 KiB)  TX bytes:11646832 (11.1 MiB)
  
  virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
            inet addr:192.168.122.1  Bcast:192.168.122.255
Mask:255.255.255.0
            inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
            TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:0 
            RX bytes:0 (0.0 b)  TX bytes:6935 (6.7 KiB)
  
  xenbr1    Link encap:Ethernet  HWaddr A4:BA:DB:09:7A:B4  
            inet addr:172.16.44.22  Bcast:0.0.0.0  Mask:255.255.255.0
            inet6 addr: fe80::a6ba:dbff:fe09:7ab4/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:508604 errors:0 dropped:0 overruns:0 frame:0
            TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:0 
            RX bytes:34079662 (32.5 MiB)  TX bytes:6336 (6.1 KiB)

I setup the multiple NICs support as follows:

  dom0 # mv /etc/xen/scripts/network-bridge{,-xen}
  dom0 # # create new network-bridge file
  dom0 # cat /etc/xen/scripts/network-bridge
  #!/bin/sh
  # Exit if anything goes wrong.
  set -e
  
  # First arg is the operation.
  OP=$1
  shift
  
  script=/etc/xen/scripts/network-bridge-xen
  
  case ${OP} in
      start)
        $script start vifnum=0 bridge=xenbr0 netdev=eth0
        $script start vifnum=1 bridge=xenbr1 netdev=eth1
                # $script start vifnum=2 bridge=xenbri netdev=dummy0
        ;;
  
      stop)
          $script stop vifnum=0 bridge=xenbr0 netdev=eth0
          $script stop vifnum=1 bridge=xenbr1 netdev=eth1
          # $script stop vifnum=2 bridge=xenbri netdev=dummy0
          ;;
  
      status)
          $script status vifnum=0 bridge=xenbr0 netdev=eth0
          $script status vifnum=1 bridge=xenbr1 netdev=eth1
          # $script status vifnum=2 bridge=xenbri netdev=dummy0
          ;;
  
      *)
         echo 'Unknown command: ' ${OP}
         echo 'Valid commands are: start, stop, status'
         exit 1
  esac
  dom0 # chmod a+x /etc/xen/scripts/network-bridge
  dom0 # service xend restart
  dom0 # # check ifcfg-eth1
  dom0 # cat /etc/sysconfig/network-scripts/ifcfg-eth1
  # Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet
  DEVICE=eth1
  HWADDR=A4:BA:DB:09:7A:B4
  ONBOOT=yes
  BOOTPROTO=none
  IPADDR=172.16.44.22
  NETMASK=255.255.255.0
  TYPE=Ethernet
  USERCTL=no
  IPV6INIT=no
  PEERDNS=yes
  HOTPLUG=no
  # service network restart
  <output snipped -- this is where the error occurred>

Best regards,

Joe




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] xen 3.4.3 on CentOS 5.5 dom0: multiple nic issue -- eth1 won't restart, Joe Linoff <=