Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
章 12. 在網路上的使用設定
將 Red Hat 虛擬化整合入您的網路架構是項很複雜的程序,並且這也依照您的基礎架構,這可能會需要自定的設定來展開多重乙太網路介面以及橋接設定的部署。
Each domain network interface is connected to a virtual network interface in
dom0
by a point to point link. These devices are vif
<domid>
and <vifid>
. vif1.0
for the first interface in domain 1; vif3.1
for the second interface in domain 3.
為了要能處理這些虛擬介面的流量, domain0 使用標準的 Linux 常規來橋接、路徑選擇、速率限制等等。xend daemon 使用了兩個 shell script 來執行您的網路以及新的虛擬介面最初的設定。這些 script 會為所有的虛擬介面設定一個單獨的橋接。您能夠自定這些 script 來設定其他的選路與橋接。
Red Hat Virtualization's virtual networking is controlled by the two shell scripts,
network-bridge
and vif-bridge
. xend calls these scripts when certain events occur. Arguments can be passed to the scripts to provide additional contextual information. These scripts are located in the /etc/xen/scripts
directory. You can change script properties by modifying the xend-config.sxp configuration file located in the /etc/xen
directory.
network-bridge
— 當 xend 啟動或者是停止後,這個 script 便會隨著它開啟或者是關閉虛擬網路。之後設定的初始化便會建立 xen—br0
這個橋接器然後將 eth0
移動至這個橋接器上並隨著更改路由的選擇。當 xend 最後終於跳出之後,它就會將這個橋接器刪除掉然後移除 eth0
,並由此來復原至原本的 IP 以及選路設定。
網域上的所有虛擬介面都引用了
vif-bridge
這個 script。它能設定防火牆的規則,並且也能將 vif
附加至適當的橋接器上。
您還有一些其他能夠用來幫助將 Red Hat 虛擬化設定在您系統上的 script,就像是
network-route
、network-nat
、vif-route,
、以及 vif-nat
。或是這些 script 也能以自定的變體來替代。