第 12 章 配​​​​​​​置​​​​​​​网​​​​​​​络​​​​​​​应​​​​​​​用​​​​​​​


把​​​​​​​红​​​​​​​帽​​​​​​​虚​​​​​​​拟​​​​​​​化​​​​​​​系​​​​​​​统​​​​​​​集​​​​​​​成​​​​​​​到​​​​​​​你​​​​​​​的​​​​​​​网​​​​​​​络​​​​​​​体​​​​​​​系​​​​​​​里​​​​​​​是​​​​​​​一​​​​​​​个​​​​​​​复​​​​​​​杂​​​​​​​的​​​​​​​过​​​​​​​程​​​​​​​,且​​​​​​​依​​​​​​​赖​​​​​​​于​​​​​​​基​​​​​​​础​​​​​​​架​​​​​​​构​​​​​​​,它​​​​​​​可​​​​​​​能​​​​​​​需​​​​​​​要​​​​​​​自​​​​​​​定​​​​​​​义​​​​​​​的​​​​​​​配​​​​​​​置​​​​​​​来​​​​​​​部​​​​​​​署​​​​​​​多​​​​​​​个​​​​​​​以​​​​​​​太​​​​​​​网​​​​​​​接​​​​​​​口​​​​​​​和​​​​​​​设​​​​​​​置​​​​​​​桥​​​​​​​接​​​​​​​。​​​​​​​
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 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​使​​​​​​​用​​​​​​​两​​​​​​​个​​​​​​​ shell 脚​​​​​​​本​​​​​​​来​​​​​​​执​​​​​​​行​​​​​​​网​​​​​​​络​​​​​​​和​​​​​​​新​​​​​​​的​​​​​​​虚​​​​​​​拟​​​​​​​接​​​​​​​口​​​​​​​的​​​​​​​初​​​​​​​始​​​​​​​配​​​​​​​置​​​​​​​。​​​​​​​这​​​​​​​些​​​​​​​脚​​​​​​​本​​​​​​​为​​​​​​​所​​​​​​​有​​​​​​​的​​​​​​​虚​​​​​​​拟​​​​​​​接​​​​​​​口​​​​​​​配​​​​​​​置​​​​​​​单​​​​​​​一​​​​​​​的​​​​​​​网​​​​​​​桥​​​​​​​。​​​​​​​你​​​​​​​可​​​​​​​以​​​​​​​自​​​​​​​定​​​​​​​义​​​​​​​这​​​​​​​些​​​​​​​脚​​​​​​​本​​​​​​​来​​​​​​​配​​​​​​​置​​​​​​​其​​​​​​​他​​​​​​​的​​​​​​​路​​​​​​​由​​​​​​​和​​​​​​​网​​​​​​​桥​​​​​​​。​​​​​​​
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 启​​​​​​​动​​​​​​​或​​​​​​​停​​​​​​​止​​​​​​​时​​​​​​​,这​​​​​​​个​​​​​​​脚​​​​​​​本​​​​​​​初​​​​​​​始​​​​​​​化​​​​​​​或​​​​​​​者​​​​​​​停​​​​​​​止​​​​​​​虚​​​​​​​拟​​​​​​​网​​​​​​​络​​​​​​​。​​​​​​​之​​​​​​​后​​​​​​​,初​​​​​​​始​​​​​​​化​​​​​​​过​​​​​​​程​​​​​​​创​​​​​​​建​​​​​​​网​​​​​​​桥​​​​​​​ xen—br0 并​​​​​​​把​​​​​​​ eth0 移​​​​​​​至​​​​​​​这​​​​​​​个​​​​​​​网​​​​​​​桥​​​​​​​上​​​​​​​,且​​​​​​​修​​​​​​​改​​​​​​​对​​​​​​​应​​​​​​​的​​​​​​​路​​​​​​​由​​​​​​​。​​​​​​​当​​​​​​​ xend 最​​​​​​​后​​​​​​​退​​​​​​​出​​​​​​​时​​​​​​​,它​​​​​​​删​​​​​​​除​​​​​​​这​​​​​​​个​​​​​​​网​​​​​​​桥​​​​​​​和​​​​​​​ eth0,由​​​​​​​此​​​​​​​恢​​​​​​​复​​​​​​​原​​​​​​​始​​​​​​​的​​​​​​​ IP 和​​​​​​​路​​​​​​​由​​​​​​​配​​​​​​​置​​​​​​​。​​​​​​​
vif-bridge - 对​​​​​​​于​​​​​​​域​​​​​​​里​​​​​​​的​​​​​​​每​​​​​​​个​​​​​​​虚​​​​​​​拟​​​​​​​接​​​​​​​口​​​​​​​,这​​​​​​​个​​​​​​​脚​​​​​​​本​​​​​​​都​​​​​​​被​​​​​​​调​​​​​​​用​​​​​​​。​​​​​​​它​​​​​​​配​​​​​​​置​​​​​​​防​​​​​​​火​​​​​​​墙​​​​​​​规​​​​​​​则​​​​​​​且​​​​​​​能​​​​​​​够​​​​​​​把​​​​​​​ vif 加​​​​​​​入​​​​​​​到​​​​​​​合​​​​​​​适​​​​​​​的​​​​​​​网​​​​​​​桥​​​​​​​上​​​​​​​。​​​​​​​
你​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​其​​​​​​​他​​​​​​​脚​​​​​​​本​​​​​​​在​​​​​​​你​​​​​​​的​​​​​​​网​​​​​​​络​​​​​​​里​​​​​​​设​​​​​​​立​​​​​​​Red Hat虚​​​​​​​拟​​​​​​​化​​​​​​​系​​​​​​​统​​​​​​​,如​​​​​​​ network-route、​​​​​​​network-nat、​​​​​​​vif-route, 和​​​​​​​ vif-nat。​​​​​​​或​​​​​​​者​​​​​​​这​​​​​​​些​​​​​​​脚​​​​​​​本​​​​​​​可​​​​​​​以​​​​​​​用​​​​​​​自​​​​​​​定​​​​​​​义​​​​​​​的​​​​​​​变​​​​​​​量​​​​​​​来​​​​​​​替​​​​​​​代​​​​​​​。​​​​​​​
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.