XEN: reattaching network devices after the network bridge is restarted
This document (7001931) is provided subject to the disclaimer at the end of this document.
Novell SUSE Linux Enterprise Server 10 Service Pack 2
Each virtual NIC essentially also has a "virtual cable." The cable is attached to a network bridge in Dom0. When the bridge is stopped, the virtual cable is unplugged. In order to reattach the cable, the bridge and the end of the cable need to be identified.
The method of re-attaching the virtual NIC to the bridge device is the same regardless of whether or not the DomU is para-virtual or fully virtual.
- Identify the bridge that the DomU is supposed to be attached to. Replace "DOMU" with the name or ID of the DomU in question.xm list -l DOMU | grep bridgeExample output:(bridge eth0)
- Identify what virtual NIC (cable) the DomU is attached to:The bolded part of the output defines the VIF device. In this case it would be "vif32.0". To convert it simply remove the first slash and replace the last slash with a period.xm network-list DOMUExample output:
Idx BE MAC Addr. handle state evt-ch tx-/rx-ring-ref BE-path
0 0 00:16:3e:21:7d:2a 0 4 11 520 /521 /local/domain/0/backend/vif/34/0
- Attach the VIF device identified in step 2 to the bridge identified in step 1syntax: brctl addif BRIDGE VIF
example: brctl addif br0 vif34.0
This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7001931
- Creation Date:18-NOV-08
- Modified Date:27-APR-12
- SUSESUSE Linux Enterprise Server