Uploaded image for project: 'netvirt'
  1. netvirt
  2. NETVIRT-1433

data path not working with Trunk port configuration. Packet getting dropped at table 214

    XMLWordPrintable

Details

    • Bug
    • Status: Verified
    • Medium
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None

    Description

      data path not working with Trunk port configuration. Packet getting dropped at table 214

      Configuration:

      Consider the following topology for testing trunk/subport use-case in dual stack network.

      1) 3 networks and 3 ipv4 and 3 ipv6 subnets

      openstack network create net0
      openstack network create net1
      openstack network create net2

       
      neutron subnet-create net0 10.1.0.0/24 --enable-dhcp --name subnet0_IPV4
      neutron subnet-create net1 11.1.0.0/24 --enable-dhcp --name subnet1_IPV4
      neutron subnet-create net2 12.1.0.0/24 --enable-dhcp --name subnet2_IPV4

      openstack subnet create --network net0 --subnet-range 2001:db8:0:3::/64 subnet0_IPV6 --ip-version=6 --ipv6-address-mode=slaac --ipv6-ra-mode=slaac
      openstack subnet create --network net1 --subnet-range 2001:db8:0:4::/64 subnet1_IPV6 --ip-version=6 --ipv6-address-mode=slaac --ipv6-ra-mode=slaac
      openstack subnet create --network net2 --subnet-range 2001:db8:0:5::/64 subnet2_IPV6 --ip-version=6 --ipv6-address-mode=slaac --ipv6-ra-mode=slaac

      2) 3 ports on different subnet sharing same Mac-address

      openstack port create --network net0 port0
      openstack port create --network net0 normal-port
      parent_mac="$( openstack port show port0 | awk '/ mac_address / { print $4 }' )"
      echo $parent_mac
       

      openstack port create --network net1 --mac-address "$parent_mac" port1
      openstack port create --network net2 --mac-address "$parent_mac" port2

      3) Configuring port0 as trunk and port1 and port2 as sub-ports.

      openstack network trunk create --parent-port port0 trunk0
       
      openstack network trunk set --subport port=port1,segmentation-type=vlan,segmentation-id=101 trunk0
      openstack network trunk set --subport port=port2,segmentation-type=vlan,segmentation-id=102 trunk0

      4) Create Router and add all IPv4/IPv6 subnets to router.

      openstack router create router1
      openstack router add subnet router1 subnet0_IPV6
      openstack router add subnet router1 subnet1_IPV6
      openstack router add subnet router1 subnet2_IPV6
      openstack router add subnet router1 subnet0_IPV4
      openstack router add subnet router1 subnet1_IPV4
      openstack router add subnet router1 subnet2_IPV4

      5) VM booted on trunk port.

      openstack server create --flavor ds1G --availability-zone nova:osc-pike-ubuntu16 --image ubuntu --nic port-id=port0 VM1

      openstack server create --flavor ds1G --availability-zone nova:osc-pike-ubuntu16 --image ubuntu --nic port-id=normal-port VM1

       

      Validate data path between normal port to trunk port.

      6) Create sub interface(VLAN) on booted ubuntu VM using below commands.

      vconfig add ens3 101(Same as sub-port VLAN ID)

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rajamk RajaRajan Manickam
            rajamk RajaRajan Manickam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: