vlan interface not work

Bug #1838980 reported by Bruce
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Netplan
New
Undecided
Unassigned

Bug Description

Hi Team,

My config file as below, the issue in short is, the vlan interface cannot send any traffic.

for example:
vlan3001. I capture traffic on ens224, and ping a host in same subnet.
there isn't any traffic send out, no arp no icmp no dot1q encap packets send out.
I had review official doc and config example, there isn't help.
could you please file a bug for this issue?

cisco@k8snode1:~$ arp -a
? (100.64.0.10) at <incomplete> on vlan3001

cisco@k8snode1:~$ more /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
network: {config: disabled}

cisco@k8snode1:~$ more /etc/netplan/50-cloud-init.yaml
network:
    ethernets:
        ens192:
            addresses:
            - 10.124.35.190/25
            gateway4: 10.124.35.129
            nameservers:
                addresses:
                - 10.124.46.4
        ens224:
            match:
                    macaddress: 00:50:56:82:79:04
            set-name: ens224
            mtu: 9000
    vlans:
        vlan3967:
            link: ens224
            id: 3967
            dhcp4: true
            routes:
            - to: 224.0.0.0/4
              via: 0.0.0.0
        vlan3001:
            id: 3001
            link: ens224
            addresses:
            - 100.64.0.101/16
            routes:
            - to: 100.65.0.0/16
              via: 100.64.0.1
            - to: 100.64.0.0/16
              via: 100.64.0.1
    version: 2

cisco@k8snode1:~$ ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
        inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
        ether 02:42:e6:fd:b1:57 txqueuelen 0 (Ethernet)
        RX packets 0 bytes 0 (0.0 B)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 0 bytes 0 (0.0 B)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
        inet 10.124.35.190 netmask 255.255.255.128 broadcast 10.124.35.255
        inet6 fe80::250:56ff:fe82:d8c9 prefixlen 64 scopeid 0x20<link>
        ether 00:50:56:82:d8:c9 txqueuelen 1000 (Ethernet)
        RX packets 423 bytes 53288 (53.2 KB)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 322 bytes 47073 (47.0 KB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ens224: flags=4099<UP,BROADCAST,MULTICAST> mtu 9000
        ether 00:50:56:82:79:04 txqueuelen 1000 (Ethernet)
        RX packets 0 bytes 0 (0.0 B)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 0 bytes 0 (0.0 B)
        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
        inet6 ::1 prefixlen 128 scopeid 0x10<host>
        loop txqueuelen 1000 (Local Loopback)
        RX packets 239 bytes 20580 (20.5 KB)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 239 bytes 20580 (20.5 KB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vlan3001: flags=4099<UP,BROADCAST,MULTICAST> mtu 9000
        inet 100.64.0.101 netmask 255.255.0.0 broadcast 100.64.255.255
        ether 00:50:56:82:79:04 txqueuelen 1000 (Ethernet)
        RX packets 0 bytes 0 (0.0 B)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 0 bytes 0 (0.0 B)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vlan3967: flags=4099<UP,BROADCAST,MULTICAST> mtu 9000
        ether 00:50:56:82:79:04 txqueuelen 1000 (Ethernet)
        RX packets 0 bytes 0 (0.0 B)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 0 bytes 0 (0.0 B)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Revision history for this message
Bruce (ccieliu) wrote :

Please feel free contact me if you need any log from this issue env.

Revision history for this message
Bruce (ccieliu) wrote :

root@k8snode1:~# netplan --debug apply
** (generate:11403): DEBUG: 13:39:47.274: Processing input file /etc/netplan/50-cloud-init.yaml..
** (generate:11403): DEBUG: 13:39:47.274: starting new processing pass
** (generate:11403): DEBUG: 13:39:47.274: ens224: setting default backend to 1
** (generate:11403): DEBUG: 13:39:47.274: ens192: setting default backend to 1
** (generate:11403): DEBUG: 13:39:47.274: vlan3967: setting default backend to 1
** (generate:11403): DEBUG: 13:39:47.274: vlan3001: setting default backend to 1
** (generate:11403): DEBUG: 13:39:47.275: Generating output files..
** (generate:11403): DEBUG: 13:39:47.275: NetworkManager: definition ens224 is not for us (backend 1)
** (generate:11403): DEBUG: 13:39:47.275: NetworkManager: definition ens192 is not for us (backend 1)
** (generate:11403): DEBUG: 13:39:47.275: NetworkManager: definition vlan3967 is not for us (backend 1)
** (generate:11403): DEBUG: 13:39:47.275: NetworkManager: definition vlan3001 is not for us (backend 1)
DEBUG:netplan generated networkd configuration exists, restarting networkd
DEBUG:no netplan generated NM configuration exists
DEBUG:ens192 not found in {}
DEBUG:ens224 not found in {'ens192': {'addresses': ['10.124.35.190/25'], 'gateway4': '10.124.35.129', 'nameservers': {'addresses': ['10.124.46.4']}}}
DEBUG:vlan3967 not found in {}
DEBUG:vlan3001 not found in {'vlan3967': {'link': 'ens224', 'id': 3967, 'dhcp4': True, 'routes': [{'to': '224.0.0.0/4', 'via': '0.0.0.0'}]}}
DEBUG:Merged config:
network:
  bonds: {}
  bridges: {}
  ethernets:
    ens192:
      addresses:
      - 10.124.35.190/25
      gateway4: 10.124.35.129
      nameservers:
        addresses:
        - 10.124.46.4
    ens224:
      match:
        macaddress: 00:50:56:82:79:04
      mtu: 9000
      set-name: ens224
  vlans:
    vlan3001:
      addresses:
      - 100.64.0.101/16
      id: 3001
      link: ens224
      routes:
      - to: 100.65.0.0/16
        via: 100.64.0.1
      - to: 100.64.0.0/16
        via: 100.64.0.1
    vlan3967:
      dhcp4: true
      id: 3967
      link: ens224
      routes:
      - to: 224.0.0.0/4
        via: 0.0.0.0
  wifis: {}

DEBUG:Skipping non-physical interface: lo
DEBUG:device ens192 operstate is up, not changing
DEBUG:Skipping non-physical interface: vlan3001
DEBUG:Skipping non-physical interface: vlan3967
DEBUG:Skipping non-physical interface: docker0
DEBUG:{}
DEBUG:netplan triggering .link rules for lo
DEBUG:netplan triggering .link rules for ens192
DEBUG:netplan triggering .link rules for ens224
DEBUG:netplan triggering .link rules for vlan3001
DEBUG:netplan triggering .link rules for vlan3967
DEBUG:netplan triggering .link rules for docker0

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.