The Xen virtual opportunity defaults to bind the network adapter to the XENBR0,
So if you need to switch to a different physical NIC, you need to configure the script or execute the command yourself.
1. Add Script Bindings
A. Write a script that specifies the relationship of the NIC to the bridge binding
# Vim/etc/xen/network-wrapper
#!/bin/sh/etc/xen/scripts/network-bridge [email protected] vifnum=0 netdev=eth1 bridge=xenbr0 #... Multiple bindings can be added
B. Edit/etc/xen/xend-config.spx
Comment out (network-script Network-bridge)
Add (Network-script network-wrapper)
C. Restart the Xend service
# Service Xend Restart
2. Direct execution of command bindings (temporarily valid)
# cd/etc/xen/(not exactly remember ...) )
#./network-bridge vifnum=? netdev=eth* bridge=xenbr* Start/stop
Warning: Do not bind two physical network cards to the same bridge! Failure to do so will cause a network loop.
Bind a physical NIC to a Xen bridge in Linux