Bind a physical NIC to a Xen bridge in Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.