Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Adding a NIC to Xen 4.1
- # 1.
- ifconfig eth1 0.0.0.0
- ip link set dev eth1 name peth1 # renaming eth1 to peth1, because we want a free eth1
- brctl addbr eth1 # create bridge from eth1
- brctl addif eth1 peth1 # assign peth1 to the bridge
- ifconfig eth1 x.x.x.20 netmask 255.255.255.0 broadcast x.x.x.255 # bring up eth1 bridge
- brctl show # check
- # 2.
- # Create: /etc/xen/scripts/my-bridges
- #!/bin/sh
- dir=$(dirname "$0")
- $dir/network-bridge $@ vifnum=0 netdev=eth0 bridge=eth0
- $dir/network-bridge $@ vifnum=1 netdev=eth1 bridge=eth1
- # 3.
- # modify /etc/xen/xend-config.sxp
- --- (network-script network-bridge)
- +++ (network-script my-bridges)
- # 4.
- # modify: vm1.conf
- vif = ['ip=1.2.3.4, vifname=vifvm129.0, mac=de:ad:be:ef:ca:fe, bridge=eth1']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement