KVM Guest: Network dies not work

compdoc compdoc at hotrodpc.com
Thu Oct 16 13:40:36 UTC 2014


>Robert doth spake:
>Unfortunately within the guest the network is not accesible. I can only
ping localhost successfully.

I think there are several problems with your network configuration. Or at
least things I don't understand, and I've been doing this for some time. I
don't have time to go over everything, but heres a start:


>broadcast 176.9.142.31
This is just wrong. Best not to define it and let the system define it
automatically.

>pointopoint 176.9.142.1
Never seen this directive used before.

>up route add -net 176.9.142.0 netmask 255.255.255.224 gw 176.9.142.1 eth0
No need for this route. 

> auto virbr2
>iface virbr2 inet static
It's my belief that the interfaces named virbr1, virbr2, etc., are
automatically generated by the system and should not be used by users. 

>   address 176.9.142.21
Two interfaces with the same IP address cannot work

> netmask 255.255.255.255
This is not a good choice.

>   bridge_ports none
>   bridge_stp off
>   bridge_fd 0
You're trying to define a bridge, but not setting a bridge port. 

 >pre-up brctl addbr virbr2
>up ip route add 176.9.163.129/32 dev virbr2
>down ip route del 176.9.163.129/32 dev virbr2
No need for any of this.







More information about the ubuntu-users mailing list