VLAN ID different than 0 doesn't work

Bug #1510475 reported by Maciej
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
New
Undecided
Hari Prasad Killi

Bug Description

I had issue with VLAN ID. In shortcut in my tests cases work only VLAN configuration with VLAN_ID=0, for other values I didn't get correct IP address from lanner.

I tried with some combinations with configuration of VLAN ID, and the update is that only VLAN_ID 0 works fine for my. I have tried with different configuration and ports, but only VLAN_ID = 0 give me correct IP address and possibility to ping devices in other subnets.

I had Ubuntu 14.04 (kr.3.13.0-65), with enable vlan and 8021q inside. I use vconfig for creating VAN on my NIC.
So to add VAN ID 1 on my machine I run command
vconfig add eth0 1

After that I had interface eth0.1, then I add to /etc/network/interfaces VLAN section:

VLAN 1
auto vlan1
iface vlan1 inet dhcp
vlan_raw_device eth0.1

And for make sure that networking was reloaded I simply restart eth0 and 0.1 interfaces. And no other VLAN_ID than 0 give me IP address. No matter than if I have 2 logical ports on one physical or 1 logical on 1 physical, only VAN_ID_0 works correctly.
So maybe I am doing VLAN with wrong way, but it will be good to make sure that this works or didn't work.

Tags: vrouter
information type: Proprietary → Public
Changed in juniperopenstack:
assignee: nobody → Hari Prasad Killi (haripk)
Revision history for this message
Hari Prasad Killi (haripk) wrote :

In this case, a logical interface should be created on the router with the required vlan id and parent referring to the physical interface. Please confirm whether this was done or not.

tags: added: vrouter
Revision history for this message
Nachi Ueno (nati-ueno) wrote :

Yes. They did it, and it isn't working.

Revision history for this message
Maciej (maciej-grochowski) wrote :
Download full text (3.9 KiB)

Hello Hari,
In case of device that has 2 logical ports, port-1 with vlan_id=0 and port-2 with vlan_id=3

using vif --list give me followed output:

Vrouter Interface Table

Flags: P=Policy, X=Cross Connect, S=Service Chain, Mr=Receive Mirror
       Mt=Transmit Mirror, Tc=Transmit Checksum Offload, L3=Layer 3, L2=Layer 2
       D=DHCP, Vp=Vhost Physical, Pr=Promiscuous, Vnt=Native Vlan Tagged
       Mnp=No MAC Proxy

vif0/0 OS: sproute0 (Speed 10, Duplex 1)
            Type:Physical HWaddr:00:00:00:00:00:00 IPaddr:0
            Vrf:0 Flags:L3L2Vp MTU:1514 Ref:3
            RX packets:299 bytes:109103 errors:0
            TX packets:683 bytes:498998 errors:0

vif0/1 OS: vhost0
            Type:Host HWaddr:08:00:27:01:02:03 IPaddr:0
            Vrf:0 Flags:L3L2 MTU:1514 Ref:3
            RX packets:679 bytes:508336 errors:0
            TX packets:299 bytes:109103 errors:0

vif0/2 OS: pkt0
            Type:Agent HWaddr:00:00:5e:00:01:00 IPaddr:0
            Vrf:65535 Flags:L3 MTU:1514 Ref:2
            RX packets:5 bytes:350 errors:0
            TX packets:1 bytes:70 errors:0

vif0/3 OS: veth_wan (Speed 10000, Duplex 1)
            Type:Physical HWaddr:aa:35:41:da:e0:59 IPaddr:0
            Vrf:0 Flags:TcL3L2Vnt MTU:1514 Ref:3
            RX packets:1 bytes:42 errors:0
            TX packets:1 bytes:42 errors:0

vif0/4 OS: port-1 (Speed 65535, Duplex 255)
            Type:Physical HWaddr:00:90:0b:3a:dc:58 IPaddr:0
            Vrf:0 Flags:L3L2Vnt MTU:1514 Ref:3
            RX packets:0 bytes:0 errors:0
            TX packets:0 bytes:0 errors:0

vif0/5 OS: port-2 (Speed 65535, Duplex 255)
            Type:Physical HWaddr:00:90:0b:3a:dc:59 IPaddr:0
            Vrf:0 Flags:L3L2Vnt MTU:1514 Ref:3
            RX packets:0 bytes:0 errors:0
            TX packets:0 bytes:0 errors:0

vif0/6 OS: port-3 (Speed 65535, Duplex 255)
            Type:Physical HWaddr:00:90:0b:3a:dc:5a IPaddr:0
            Vrf:0 Flags:L3L2Vnt MTU:1514 Ref:2
            RX packets:0 bytes:0 errors:0
            TX packets:0 bytes:0 errors:0

vif0/7 OS: port-4 (Speed 65535, Duplex 255)
            Type:Physical HWaddr:00:90:0b:3a:dc:5b IPaddr:0
            Vrf:0 Flags:L3L2Vnt MTU:1514 Ref:2
            RX packets:0 bytes:0 errors:0
            TX packets:0 bytes:0 errors:0

vif0/8 OS: NULL Vlan(o/i)(,S): 0/0 Bridge Index: 0 Parent:vif0/3
            Type:Virtual(Vlan) HWaddr:aa:35:41:da:e0:59 IPaddr:0
            Vrf:1 Flags:PL3L2Mnp MTU:1514 Ref:7
            RX packets:1 bytes:42 errors:0
            TX packets:1 bytes:42 errors:0

vif0/10 OS: NULL Vlan(o/i)(,S): 0/0 Bridge Index: 0 Parent:vif0/4
            Type:Virtual(Vlan) HWaddr:00:90:0b:3a:dc:58 IPaddr:0
            Vrf:2 Flags:PL3L2Mnp MTU:1514 Ref:1
            RX packets:0 bytes:0 errors:0
            TX packets:0 bytes:0 errors:0

vif0/12 OS: NULL Vlan(o/i)(,S): 3/3 Bridge Index: 0 Parent:vif0/5
            Type:Virtual(Vlan) HWaddr:00:90:0b:3a:dc:59 IPaddr:0
            Vrf:3 Flags:PL3L2Mnp MTU:1514 Ref:6
            RX packets:0 bytes:0 errors:0
            TX packets:0 bytes:0 errors:0

vif0/4350 OS: pkt3
            Type:Stats HWaddr:00:00...

Read more...

Revision history for this message
Anand H. Krishnan (anandhk) wrote :

A few questions:

What type of interfaces are port1, port2 and port3? Are these actual physical NICS? I see that speed and duplex values are invalid. I also see from the output you have given that the statistics are all 0.

Please run tcpdump on these interfaces to see what kind of packets are ingressing and egressing and let us know your observations

In the successful case, are you sure that you haven't connected your physical device to 'veth_wan' interface?

Thanks

Revision history for this message
Maciej (maciej-grochowski) wrote :
Download full text (13.9 KiB)

Thank You for command, I will try to show as best as I can our device structure. After reading rest of this message please let me know if I can also show another additional command to help you.

Our hardware is lanner box http://www.lannerinc.com/download-center/Datasheets/x86-Network-Appliances/?download=1541. So we had 6 NIC-s

Few command to show structure of this hardware:

root@esehost:/rfshome/eseuser# lspci -tv
-[0000:00]-+-00.0 Intel Corporation Atom processor C2000 SoC Transaction Router
           +-01.0-[01]----00.0 Intel Corporation I210 Gigabit Network Connection
           +-02.0-[02]----00.0 Intel Corporation I210 Gigabit Network Connection
           +-03.0-[03]--
           +-04.0-[04]--
           +-0b.0 Intel Corporation Atom processor C2000 nCPM
           +-0e.0 Intel Corporation Atom processor C2000 RAS
           +-0f.0 Intel Corporation Atom processor C2000 RCEC
           +-13.0 Intel Corporation Atom processor C2000 SMBus 2.0
           +-14.0 Intel Corporation Ethernet Connection I354
           +-14.1 Intel Corporation Ethernet Connection I354
           +-14.2 Intel Corporation Ethernet Connection I354
           +-14.3 Intel Corporation Ethernet Connection I354
           +-16.0 Intel Corporation Atom processor C2000 USB Enhanced Host Controller
           +-17.0 Intel Corporation Atom processor C2000 AHCI SATA2 Controller
           +-18.0 Intel Corporation Atom processor C2000 AHCI SATA3 Controller
           +-1f.0 Intel Corporation Atom processor C2000 PCU
           \-1f.3 Intel Corporation Atom processor C2000 PCU SMBus

root@esehost:/rfshome/eseuser# lshw -class network
PCI (sysfs)
  *-network
       description: Ethernet interface
       product: I210 Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: port-1
       version: 03
       serial: 00:90:0b:3a:dc:58
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=igb driverversion=5.0.5-k firmware=3.20, 0x80000551 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:16 memory:dfd00000-dfd7ffff ioport:d000(size=32) memory:dfd80000-dfd83fff
  *-network
       description: Ethernet interface
       product: I210 Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: port-2
       version: 03
       serial: 00:90:0b:3a:dc:59
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=igb driverversion=5.0.5-k firmware=3.20, 0x80000551 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:17 memory:dfc00000-dfc7ffff ioport:c000(size=32) memory:dfc80000-dfc83fff
  *-network:0
       description: Ethernet interface
...

Revision history for this message
Maciej (maciej-grochowski) wrote :

Also, I will try to debug ports with tcpdump, and share my observations. But I think that hardware structure (last message) from my device also can be helpful for you.

According to point:
"In the successful case, are you sure that you haven't connected your physical device to 'veth_wan' interface?"
Could You explain a little bit more about this? How can I check this? (In previous message I send you output of 'ip a' command, is possible to make sure that we didn't do this)

Revision history for this message
Anand H. Krishnan (anandhk) wrote :

From the output you sent me, it looks like none of the port-X interfaces have link up.

Revision history for this message
Maciej (maciej-grochowski) wrote :
Download full text (5.3 KiB)

Yes, that is correct, I was trying to show You how the structure looks like with these port-1:4 interfaces because they are physical.
Please let me know which commands will be good to see with link-up.

I connected to port-1 end point device (with VLAN_ID=0) and using tcpdump I didn't see anything that could be troubling, at this point.
Maybe you would like to see VLAN_ID=2 or 3? Please let me know because there are many things that can be examinate, but I don't know which of them will be helpful for you.

Again vif --list show similar output. (port-1 link-up vlan-id=0)

root@9a093ec1-1b1b-47b4-ad51-ec267dfe1ceb:/# vif --list
Vrouter Interface Table

Flags: P=Policy, X=Cross Connect, S=Service Chain, Mr=Receive Mirror
       Mt=Transmit Mirror, Tc=Transmit Checksum Offload, L3=Layer 3, L2=Layer 2
       D=DHCP, Vp=Vhost Physical, Pr=Promiscuous, Vnt=Native Vlan Tagged
       Mnp=No MAC Proxy

vif0/0 OS: sproute0 (Speed 10, Duplex 1)
            Type:Physical HWaddr:00:00:00:00:00:00 IPaddr:0
            Vrf:0 Flags:L3L2Vp MTU:1514 Ref:6
            RX packets:83391 bytes:85923228 errors:0
            TX packets:57096 bytes:30768463 errors:0

vif0/1 OS: vhost0
            Type:Host HWaddr:08:00:27:01:02:03 IPaddr:0
            Vrf:0 Flags:L3L2 MTU:1514 Ref:3
            RX packets:55501 bytes:31033287 errors:0
            TX packets:81968 bytes:85636463 errors:0

vif0/2 OS: pkt0
            Type:Agent HWaddr:00:00:5e:00:01:00 IPaddr:0
            Vrf:65535 Flags:L3 MTU:1514 Ref:2
            RX packets:239 bytes:40429 errors:0
            TX packets:1330 bytes:153385 errors:0

vif0/3 OS: veth_wan (Speed 10000, Duplex 1)
            Type:Physical HWaddr:86:ff:4d:bf:37:e5 IPaddr:0
            Vrf:0 Flags:TcL3L2Vnt MTU:1514 Ref:3
            RX packets:34 bytes:1750 errors:0
            TX packets:31 bytes:1314 errors:0

vif0/4 OS: port-1 (Speed 1000, Duplex 1)
            Type:Physical HWaddr:00:90:0b:3a:dc:58 IPaddr:0
            Vrf:0 Flags:L3L2Vnt MTU:1514 Ref:3
            RX packets:1779 bytes:165773 errors:512
            TX packets:31 bytes:5931 errors:0

vif0/5 OS: port-2 (Speed 65535, Duplex 255)
            Type:Physical HWaddr:00:90:0b:3a:dc:59 IPaddr:0
            Vrf:0 Flags:L3L2Vnt MTU:1514 Ref:3
            RX packets:0 bytes:0 errors:0
            TX packets:0 bytes:0 errors:0

vif0/6 OS: port-3 (Speed 65535, Duplex 255)
            Type:Physical HWaddr:00:90:0b:3a:dc:5a IPaddr:0
            Vrf:0 Flags:L3L2Vnt MTU:1514 Ref:3
            RX packets:0 bytes:0 errors:0
            TX packets:0 bytes:0 errors:0

vif0/7 OS: port-4 (Speed 65535, Duplex 255)
            Type:Physical HWaddr:00:90:0b:3a:dc:5b IPaddr:0
            Vrf:0 Flags:L3L2Vnt MTU:1514 Ref:2
            RX packets:0 bytes:0 errors:0
            TX packets:0 bytes:0 errors:0

vif0/11 OS: NULL Vlan(o/i)(,S): 3/3 Bridge Index: 0 Parent:vif0/5
            Type:Virtual(Vlan) HWaddr:00:90:0b:3a:dc:59 IPaddr:0
            Vrf:1 Flags:PL3L2Mnp MTU:1514 Ref:6
            RX packets:0 bytes:0 errors:0
            TX packets:0 bytes:0 errors:0

vif0/12 OS: NULL Vlan(o/i)(,S): 0/0 Bridge Index: 0 Parent:vif0/...

Read more...

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.