如何配置redhat中虛擬機的網絡bridge

1. 在 redhat host機器上:
### Create br0 file on proper folder of host and input data.
[root@ilx0fc06a network-scripts]# pwd 
/etc/sysconfig/network-scripts
 
[root@ilx0fc06a network-scripts]# vi ifcfg-br0
 
DEVICE="br0"
IPADDR=9.11.216.37
NETMASK=255.255.254.0
GATEWAY=9.11.216.1
TYPE=Bridge
STP=on
DELAY=0
 
2.在 redhat host機器上:
### Check the bridge created correctly as:
[root@ilx0fc06a network-scripts]# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.e41f13da124a yes eth2 vnet0
virbr0 8000.525400621050 yes virbr0-nic


3. 到redhat Host VMM GUI 上, 將 虛擬機 網絡的 adapter 設爲 br0 

4. 在 redhat 虛擬機上 Set IP:
ifconfig etch1 9.11.216.74 netmask 255.255.254.0 up 
route add default gw 9.11.216.1 dev eth1
service network restart
 
 
 
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章