你的位置:首页 > 操作系统

[操作系统]kvm 网桥


root@ok Downloads]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0HWADDR=54:EE:75:4E:37:D9TYPE=EthernetUUID=ea35184e-8417-4ce4-9843-dfc37a26a363ONBOOT=yesNM_CONTROLLED=noBOOTPROTO=noneIPV4_FAILURE_FATAL=yesIPV6INIT=noBRIDGE=br0[root@ok Downloads]# cat /etc/sysconfig/network-scripts/ifcfg-br0 DEVICE=br0TYPE=BridgeONBOOT=yesNM_CONTROLLED=noBOOTPROTO=noneIPADDR=192.168.1.10PREFIX=24GATEWAY=192.168.1.1DNS1=202.106.196.115IPV4_FAILURE_FATAL=yesIPV6INIT=no

 

[root@ok Downloads]# chkconfig |grep NetworkManagerNetworkManager 	0:off	1:off	2:off	3:off	4:off	5:off	6:off[root@ok Downloads]# service NetworkManager statusNetworkManager is stopped

[root@ok Downloads]# ifconfigbr0    Link encap:Ethernet HWaddr 54:EE:75:4E:37:D9      inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0     inet6 addr: fe80::56ee:75ff:fe4e:37d9/64 Scope:Link     UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1     RX packets:211324 errors:0 dropped:0 overruns:0 frame:0     TX packets:227274 errors:0 dropped:0 overruns:0 carrier:0     collisions:0 txqueuelen:0      RX bytes:15475676 (14.7 MiB) TX bytes:322088646 (307.1 MiB)eth0   Link encap:Ethernet HWaddr 54:EE:75:4E:37:D9      inet6 addr: fe80::56ee:75ff:fe4e:37d9/64 Scope:Link     UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1     RX packets:212843 errors:0 dropped:0 overruns:0 frame:0     TX packets:227283 errors:0 dropped:0 overruns:0 carrier:0     collisions:0 txqueuelen:1000      RX bytes:19708819 (18.7 MiB) TX bytes:323034073 (308.0 MiB)     Interrupt:20 Memory:f2600000-f2620000 

 

http://www.showerlee.com/archives/309