Есть ubuntu сервер с установленным и настроенным интерфейсом.
Конфиг:
- Код: Выделить всё
# The loopback network interface
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet manual
post-up ip link add link eno1 eno1.440 type vlan proto 802.1ad id 440
post-up ip link set eno1.440 up
auto eno1.440
iface eno1.440 inet manual
post-up ip link add link eno1.440 eno1.440.1 type vlan proto 802.1Q id 1
post-up ip link set eno1.440.1 up
post-up ip link add link eno1.440 eno1.440.770 type vlan proto 802.1Q id 770
post-up ip link set eno1.440.770 up
post-up ip link add link eno1.440 eno1.440.771 type vlan proto 802.1Q id 771
post-up ip link set eno1.440.771 up
auto eno1.440.1
iface eno1.440.1 inet static
address 10.10.254.253
netmask 255.255.0.0
dns-nameservers 8.8.8.8
up route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.10.0.1
auto eno1.440.770
iface eno1.440.770 inet static
address 10.140.1.253
netmask 255.255.255.0
network 10.140.1.0
broadcast 10.140.1.255
vlan_raw_device eno1
auto eno1.440.771
iface eno1.440.771 inet static
address 10.140.2.253
netmask 255.255.255.0
network 10.140.2.0
broadcast 10.140.2.255
vlan_raw_device eno1
Есть cisco 3550, которая умеет QinQ (согласно меню):
- Код: Выделить всё
Building configuration...
Current configuration : 2886 bytes
!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname TEST_3550_24
!
enable secret 5 $1$S8x8$zsHUcwS0PvQm8OHs65bOE0
enable password ena1
!
no aaa new-model
ip subnet-zero
ip routing
!
vtp domain CISCO
vtp mode transparent
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
vlan 1
tb-vlan1 1002
tb-vlan2 1003
!
vlan 440,770-771,1000
!
vlan 1002
tb-vlan1 1
tb-vlan2 1003
!
vlan 1003
tb-vlan1 1
tb-vlan2 1002
parent 1005
!
vlan 1004
bridge 1
stp type ibm
!
vlan 1005
bridge 1
!
!
!
!
!
!
interface FastEthernet0/1
switchport access vlan 440
switchport mode dot1q-tunnel
switchport nonegotiate
no cdp enable
!
interface FastEthernet0/2
switchport mode dynamic desirable
!
...
!interface FastEthernet0/24
switchport mode dynamic desirable
!
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport trunk native vlan 1000
switchport trunk allowed vlan 1,770
switchport mode trunk
!
interface GigabitEthernet0/2
switchport access vlan 440
switchport mode dot1q-tunnel
no cdp enable
!
interface Vlan1
ip address 10.10.13.75 255.255.0.0
!
interface Vlan770
ip dhcp relay information trusted
ip address 10.140.1.1 255.255.255.0
ip helper-address 10.10.254.127
!
ip classless
ip route 0.0.0.0 0.0.0.0 10.10.254.253
ip http server
ip http secure-server
!
!
!
control-plane
!
!
line con 0
line vty 0 4
password nag
login
line vty 5 15
password nag
login
!
end
Пингую с ubuntu 10.140.1.1 - не видит, vlan 1 тоже не видит. Что я делаю не так?
Спасбо.