libvirt network problem
Tom H
tomh0665 at gmail.com
Mon Aug 22 20:21:39 UTC 2011
2011/8/22 Lázaro Morales <lazaro at frioclima.com.cu>:
>
> After a fresh install of libvirt in a box with one physical interface
> (eth0), I tried to set up a bridged network in br0:
>
> [ifcfg-eth0:]
>
> DEVICE=eth0
> HWADDR=48:5b:39:ba:f9:2a
> NM_CONTROLLED=no
> BRIDGE="br0"
> ONBOOT=yes
> NETMASK=255.255.255.0
> IPADDR=192.168.0.10
> GATEWAY=192.168.0.2
> DNS2=192.168.0.6
> TYPE=Ethernet
> BOOTPROTO=none
> DNS1=192.168.0.5
> IPV6INIT=no
> USERCTL=no
>
> [ifcfg-br0]
>
> DEVICE=br0
> TYPE=Bridge
> BOOTPROT="dhcp"
> ONBOOT=yes
> DELAY=0
> NM_CONTROLLED=no
> BOOTPROTO=dhcp
> IPV6INIT=no
> USERCTL=no
>
> After that I get this:
>
> br0 Link encap:Ethernet HWaddr 48:5B:39:BA:F9:2A
> inet addr:192.168.0.122 Bcast:192.168.0.255 Mask:255.255.255.0
> inet6 addr: fe80::4a5b:39ff:feba:f92a/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:398 errors:0 dropped:0 overruns:0 frame:0
> TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:36074 (35.2 KiB) TX bytes:23902 (23.3 KiB)
>
> eth0 Link encap:Ethernet HWaddr 48:5B:39:BA:F9:2A
> inet6 addr: fe80::4a5b:39ff:feba:f92a/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:417 errors:0 dropped:0 overruns:0 frame:0
> TX packets:167 errors:0 dropped:0 overruns:0 carrier:2
> collisions:0 txqueuelen:1000
> RX bytes:43047 (42.0 KiB) TX bytes:24860 (24.2 KiB)
> Interrupt:28
>
> 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: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)
>
> virbr0 Link encap:Ethernet HWaddr 8E:37:DB:3B:46:3F
> 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: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)
>
> And now I don't have an IP address in eth0, but I have one br0.
eth0 won't and shouldn't have an IP address.
More information about the users
mailing list