RHEL6.2_x86_64 configure Bridge for KVM
1@@@@
[root@station63 network-scripts]# pwd
/etc/sysconfig/network-scripts
[root@station63 network-scripts]# cat ifcfg-br0
DEVICE=br0
TYPE=Bridge
BOOTPROTO=none
IPADDR=192.168.0.63
NETMASK=255.255.255.0
GATEWAY=192.168.0.63
ONBOOT=yes
[root@station63 network-scripts]# cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
NM_CONTROLLED=yes
ONBOOT=yes
BRIDGE=br0
[root@station63 network-scripts]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 br0
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
link-local * 255.255.0.0 U 1004 0 0 br0
default station63.examp 0.0.0.0 UG 0 0 0 br0
[root@station63 network-scripts]# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.0021cc72ce7e no eth0
pan0 8000.000000000000 no
virbr0 8000.525400fd7ebb yes virbr0-nic
vnet0
[root@station63 network-scripts]# ifconfig
br0 Link encap:Ethernet HWaddr 00:21:CC:72:CE:7E
inet addr:192.168.0.63 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::221:ccff:fe72:ce7e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:259156 errors:0 dropped:0 overruns:0 frame:0
TX packets:261100 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16526313 (15.7 MiB) TX bytes:1561722531 (1.4 GiB)
eth0 Link encap:Ethernet HWaddr 00:21:CC:72:CE:7E
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:20 Memory:f3900000-f3920000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:30272 errors:0 dropped:0 overruns:0 frame:0
TX packets:30272 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:173879110 (165.8 MiB) TX bytes:173879110 (165.8 MiB)
virbr0 Link encap:Ethernet HWaddr 52:54:00:FD:7E:BB
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1218 errors:0 dropped:0 overruns:0 frame:0
TX packets:240 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:86872 (84.8 KiB) TX bytes:20091 (19.6 KiB)
vnet0 Link encap:Ethernet HWaddr FE:54:00:52:21:E4
inet6 addr: fe80::fc54:ff:fe52:21e4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1221 errors:0 dropped:0 overruns:0 frame:0
TX packets:2062 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:104449 (102.0 KiB) TX bytes:112940 (110.2 KiB)