We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

Proxmox - Modo KVM - Error en la configuración de red


ruben_2014
24/02/2015, 20:34
Buenas tardes foreros,

Estoy intentando configurar la red de un KVM en PROXMOX con Centos 6.4, pero todavía no hace ping, si me podéis echar una mano, o ver que ajustes hay que aplicar:

Configuración del Host:

/etc/network/ interfaces
Código:
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

iface eth2 inet manual

iface eth3 inet manual

auto vmbr1
iface vmbr1 inet manual
        bridge_ports dummy0
        bridge_stp off
        bridge_fd 0
        post-up /etc/pve/kvm-networking.sh

auto vmbr0
iface vmbr0 inet static
        address  94.23.x.x
        netmask  255.255.255.0
        gateway  94.23.x.254
        broadcast  94.23.x.255
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        network 94.23.x.0
        post-up echo 1 > /proc/sys/net/ipv4/conf/vmbr0/proxy_arp
        post-up iptables-restore < /etc/iptables.up.rules
ifconfig:
Código:
dummy0    Link encap:Ethernet  HWaddr 9a:d6:35:8e:cc:97
          inet6 addr: fe80::98d6:35ff:fe8e:cc97/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1095 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:72306 (70.6 KiB)

eth0      Link encap:Ethernet  HWaddr 00:25:90:7e:41:e4
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:127136 errors:0 dropped:0 overruns:0 frame:0
          TX packets:93511 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:43300711 (41.2 MiB)  TX bytes:57659315 (54.9 MiB)

eth0.1    Link encap:Ethernet  HWaddr 00:25:90:7e:41:e4
          inet6 addr: fe80::225:90ff:fe7e:41e4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1127 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:74702 (72.9 KiB)

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

tap104i0  Link encap:Ethernet  HWaddr 8e:7e:5f:6c:f6:62
          inet6 addr: fe80::8c7e:5fff:fe6c:f662/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:830 (830.0 B)  TX bytes:3636 (3.5 KiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet6 addr: fe80::1/128 Scope:Link
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:3 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vmbr0     Link encap:Ethernet  HWaddr 00:25:90:7e:41:e4
          inet addr:94.23.x.x  Bcast:94.23.x.255  Mask:255.255.255.0
          inet6 addr: fe80::225:90ff:fe7e:41e4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:120328 errors:0 dropped:0 overruns:0 frame:0
          TX packets:88483 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:41207741 (39.2 MiB)  TX bytes:57361075 (54.7 MiB)

vmbr1     Link encap:Ethernet  HWaddr 9a:d6:35:8e:cc:97
          inet6 addr: fe80::98d6:35ff:fe8e:cc97/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:578 (578.0 B)

vmbr0v1   Link encap:Ethernet  HWaddr 00:25:90:7e:41:e4
          inet6 addr: fe80::225:90ff:fe7e:41e4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:31 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1836 (1.7 KiB)  TX bytes:468 (468.0 B)
route:
Código:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
x.x *               255.255.255.255 UH    0      0        0 vmbr0
94.23.x.0     *               255.255.255.0   U     0      0        0 vmbr0
default         vss-gw-6k.fr.eu 0.0.0.0         UG    0      0        0 vmbr0
KVM - Máquina Virtual Centos 6.4:

Código:
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=151.80.x.254
IPADDR=151.80.x.x
NETMASK=255.255.255.255
GATEWAY=151.80.x.254
ONBOOT=yes
HWADDR=MAC_SYS_E_UNICA
ifconfig - funcionando la eth0 y lo