bt5
bridge networking
#cat /etc/network/interfaces
- auto lo
-
iface lo inet loopback
-
-
auto eth0
-
#iface eth0 inet dhcp
-
iface eth0 inet static
-
address 192.168.10.105
-
netmask 255.255.255.0
-
gateway 192.168.10.252
-
-
-
-
auto eth1
-
iface eth1 inet dhcp
-
-
auto eth2
-
iface eth2 inet dhcp
-
-
auto ath0
-
iface ath0 inet dhcp
-
-
auto wlan0
-
iface wlan0 inet dhcp
-
-
auto tap0
-
iface tap0 inet manual
-
up ifconfig $IFACE 0.0.0.0 up
-
down ifconfig $IFACE down
-
tunctl_user root
-
-
-
-
-
#auto br0
-
#iface br0 inet static
-
# address 192.168.10.101
-
# netmask 255.255.255.0
-
# broadcast 192.168.10.255
-
# gateway 192.168.10.254
-
# bridge_ports tap0
-
# bridge_fd 9
-
# bridge_hello 2
-
# bridge_maxage 12
-
# bridge_stp off
我开始配的时候 经常 ignore
是把 iface br0 写成 iface bro了
悲剧了一下午,
如果每次虚拟几都用kvm-img kvm -drive 都命令这么装真都很麻烦,
所以就有 libvirt
virt-manager
我觉着 virt-manager主要是通过图形界面来操作
如果你想写程序来 操作guest 系统,或者获取guest系统都信息,
你可以借用 libvirt的api
其实 编程真的就是那么回事,别怕, 但也别小瞧
阅读(1013) | 评论(0) | 转发(0) |