Не работает сеть на виртуалке
Ядро 3.10.0 XEN 4.2.2-r1
На сервер основной ip 100.100.100.178/27 со шлюзом 100.100.100.161
Дополнительно есть 3 IP из 200.200.200.230-233/28
сеть на ноде
node xen # ifconfig
enp6s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 6c:62:6d:a0:71:c7 txqueuelen 1000 (Ethernet)
RX packets 165628 bytes 57468988 (54.8 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 139863 bytes 59380035 (56.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 0 (Local Loopback)
RX packets 501 bytes 119285 (116.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 501 bytes 119285 (116.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vif2.0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether fe:ff:ff:ff:ff:ff txqueuelen 32 (Ethernet)
RX packets 8676 bytes 246904 (241.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 23268 bytes 1726409 (1.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
xenbr0: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
inet 100.100.100.178 netmask 255.255.255.224 broadcast 100.100.100.191
ether 6c:62:6d:a0:71:c7 txqueuelen 0 (Ethernet)
RX packets 964 bytes 737219 (719.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 405 bytes 146215 (142.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
бридж поднимается через init.d, поэтому в конфиге ксена не указываю его поднятие node # cat /etc/xen/xend-config.sxp
(logfile /var/log/xen/xend.log)
(loglevel DEBUG)
(xend-relocation-server yes)
(xend-relocation-hosts-allow '^localhost$ ^localhost\\.localdomain$')
(vif-script vif-bridge)
(dom0-min-mem 196)
(enable-dom0-ballooning yes)
(total_available_memory 0)
(dom0-cpus 0)
(vncpasswd '')
node # cat /etc/conf.d/net.xenbr0
config_enp6s0=("null")
bridge_xenbr0="enp6s0"
config_xenbr0="100.100.100.178 netmask 255.255.255.224 brd 100.100.100.191"
routes_xenbr0=("default via 100.100.100.61")
node conf.d # arp -n
Address HWtype HWaddress Flags Mask Iface
200.200.200.231 ether 00:16:3e:00:00:01 C xenbr0
100.100.100.161 ether 00:11:88:11:ff:27 C xenbr0
Конфиг виртуалки
node # cat /etc/xen/config/one
kernel = '/opt/xen'
extra = "console=hvc0 xencons=xvc0"
builder = 'linux'
vcpus = 2
memory = '2048'
disk = [ 'phy:/dev/virtuals/one,xvda,w' ]
name = 'one'
root = "/dev/xvda ro"
vif = [ 'mac=00:16:3e:00:00:01, bridge=xenbr0, ip=200.200.200.231' ]
acpic=1
acpi=1
sdl=0
stdvga=0
usb=0
on_reboot = 'restart'
on_crash = 'destroy'
on_poweroff = 'destroy'
one ~ # cat /etc/conf.d/net.eth0
config_eth0="200.200.200.231 netmask 255.255.255.0 brd 200.200.200.255"
Из виртуалки не досупны ни сама нода, ни ее шлюз, ни соответственно внешка
arping между нодой и виртуалкой проходят
one ~ # arping -I eth0 100.100.100.178
ARPING 100.100.100.178 from 200.200.200.231 eth0
Unicast reply from 100.100.100.178 [6c:12:5a:a0:12:c7] 0.628ms
one ~ # arp -n
Address HWtype HWaddress Flags Mask Iface
100.100.100.161 (incomplete) eth0
100.100.100.178 ether 6c:12:5a:a0:12:c7 C eth0
node # arping -I xenbr0 200.200.200.231
ARPING 200.200.200.231 from 100.100.100.178 xenbr0
Unicast reply from 200.200.200.231 [00:16:3E:00:00:01] 0.722ms