Добрый день. Имеется следующая штука: ес2 на амазоне, к нему подключено 3 сетевых интерфейса, прикручено 12 статических ip-адресов (по 4 на каждый интерфейс)
Согласно амазоновским манам по данному вопросу был создан yaml-файл следующего содержания:
network:
version: 2
ethernets:
ens6:
addresses:
- 172.31.24.254/20
- 172.31.23.41/20
- 172.31.23.226/20
- 172.31.19.241/20
dhcp4: no
routes:
- to: 0.0.0.0/0
via: 172.31.16.1 # Default gateway
table: 1000
- to: 172.31.24.254
via: 0.0.0.0
scope: link
table: 1000
- to: 172.31.23.41
via: 0.0.0.0
scope: link
table: 1000
- to: 172.31.23.226
via: 0.0.0.0
scope: link
table: 1000
- to: 172.31.19.241
via: 0.0.0.0
scope: link
table: 1000
routing-policy:
- from: 172.31.24.254
table: 1000
- from: 172.31.23.41
table: 1000
- from: 172.31.23.226
table: 1000
- from: 172.31.19.241
table: 1000
ens7:
addresses:
- 172.31.18.160/20
- 172.31.24.120/20
- 172.31.22.168/20
- 172.31.28.164/20
dhcp4: no
routes:
- to: 0.0.0.0/0
via: 172.31.16.1 # Default gateway
table: 1000
- to: 172.31.18.160
via: 0.0.0.0
scope: link
table: 1000
- to: 172.31.24.120
via: 0.0.0.0
scope: link
table: 1000
- to: 172.31.22.168
via: 0.0.0.0
scope: link
table: 1000
- to: 172.31.28.164
via: 0.0.0.0
scope: link
table: 1000
routing-policy:
- from: 172.31.18.160
table: 1000
- from: 172.31.24.120
table: 1000
- from: 172.31.22.168
table: 1000
- from: 172.31.28.164
table: 1000
Интерфейс ens6 функционирует полностью, пингуется извне. Ens7 пингуется только с самого сервера, извне не пингуется. Где собака зарыта?
Спасибо!
P.S. Вывод ip addr
ubuntu@ip-172-31-17-117:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc mq state UP group default qlen 1000
link/ether 0e:80:69:25:ae:58 brd ff:ff:ff:ff:ff:ff
inet 172.31.17.117/20 brd 172.31.31.255 scope global dynamic ens5
valid_lft 3593sec preferred_lft 3593sec
inet6 fe80::c80:69ff:fe25:ae58/64 scope link
valid_lft forever preferred_lft forever
3: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 0e:6b:0a:32:91:7a brd ff:ff:ff:ff:ff:ff
inet 172.31.24.254/20 brd 172.31.31.255 scope global ens6
valid_lft forever preferred_lft forever
inet 172.31.23.41/20 brd 172.31.31.255 scope global secondary ens6
valid_lft forever preferred_lft forever
inet 172.31.23.226/20 brd 172.31.31.255 scope global secondary ens6
valid_lft forever preferred_lft forever
inet 172.31.19.241/20 brd 172.31.31.255 scope global secondary ens6
valid_lft forever preferred_lft forever
inet6 fe80::c6b:aff:fe32:917a/64 scope link
valid_lft forever preferred_lft forever
4: ens7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc mq state UP group default qlen 1000
link/ether 0e:29:4b:8f:d2:b2 brd ff:ff:ff:ff:ff:ff
inet 172.31.18.160/20 brd 172.31.31.255 scope global dynamic ens7
valid_lft 322sec preferred_lft 322sec
inet 172.31.22.168/20 brd 172.31.31.255 scope global secondary ens7
valid_lft forever preferred_lft forever
inet 172.31.28.164/20 brd 172.31.31.255 scope global secondary ens7
valid_lft forever preferred_lft forever
inet 172.31.24.120/20 brd 172.31.31.255 scope global secondary ens7
valid_lft forever preferred_lft forever
inet6 fe80::c29:4bff:fe8f:d2b2/64 scope link
valid_lft forever preferred_lft forever