KVM 网络相关两个配置

1.网络桥接配置:

testhudson@Hudson:/var/lib/libvirt/images$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface

auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
address 192.168.107.15
netmask 255.255.255.0
broadcast 192.168.107.255
gateway 192.168.107.1
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off

#auto eth1
#iface eth1 inet static
#address 192.168.8.15
#netmask 255.255.255.0

 


本文转自 念槐聚 博客园博客,原文链接:http://www.cnblogs.com/haochuang/archive/2012/07/30/2614937.html,如需转载请自行联系原作者

上一篇:2018及以后的热门网络技巧


下一篇:使用vmware克隆虚拟机,配置网卡的时候出现报错