KVM work with bridge network problems

Posted by isware on Server Fault See other posts from Server Fault or by isware
Published on 2010-11-16T10:43:58Z Indexed on 2011/03/07 0:12 UTC
Read the original article Hit count: 520

Filed under:
|

I try to configure bridge network for KVM(refer to http://www.linux-kvm.org/page/Networking), and it worked for Guest OS, but I have two problems with my Fedora host OS:

1?I can not access internet on host

2?The bridge configuration lost after reboot, I need to execute "service network restart" again to bring it up

I checked here(http://serverfault.com/questions/168119/kvm-network-bridge-with-public-static-ip-for-both-host-and-guests) for the first problem, it seems not working for me.

Any advice is appreciated!

ifconfig -a

eth0      Link encap:Ethernet  HWaddr 48:5B:39:ED:EB:5A  
          inet6 addr: fe80::4a5b:39ff:feed:eb5a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:231340 errors:0 dropped:0 overruns:0 frame:0
          TX packets:413424 errors:0 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:1000 
          RX bytes:15335606 (14.6 MiB)  TX bytes:114755796 (109.4 MiB)
          Interrupt:44 

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:119307 errors:0 dropped:0 overruns:0 frame:0
          TX packets:119307 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:57151264 (54.5 MiB)  TX bytes:57151264 (54.5 MiB)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  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:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

sw0       Link encap:Ethernet  HWaddr 48:5B:39:ED:EB:5A  
          inet addr:192.168.1.133  Bcast:255.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::4a5b:39ff:feed:eb5a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:229584 errors:0 dropped:0 overruns:0 frame:0
          TX packets:401232 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:11047463 (10.5 MiB)  TX bytes:113891533 (108.6 MiB)

tap0      Link encap:Ethernet  HWaddr F2:86:1A:48:E2:55  
          inet6 addr: fe80::f086:1aff:fe48:e255/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:232 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2744 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:24842 (24.2 KiB)  TX bytes:243899 (238.1 KiB)

virbr0    Link encap:Ethernet  HWaddr 9A:7C:09:6B:85:65  
          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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:5513 (5.3 KiB)

© Server Fault or respective owner

Related posts about kvm

Related posts about bridge