Switching

last person joined: yesterday 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
Expand all | Collapse all

Set a trunk port with access VLAN issue

  • 1.  Set a trunk port with access VLAN issue

    Posted 02-01-2016 08:43

    We are facing the following issue:

     

    With an ex2200 device we set a port as a trunk one with a tagged VLAN

    The we add an untagged VLAN and we set in the native VLAN value the untagged one

     

    If we connect for example a laptop with windows operating System everything is OK and we reach bot VLAN's

    If we connect a linux OS based device, server or latop we can't reach neither the tagged VLAN nor the untagged one

     

    Is there any known issue with this kind of configuration or with this configuration with  linux devices ?

     

    If we set the switch port as access with the untagged VLAN works fine with  linux devices

     

    Thanks in advance for your support

    Best Regards



  • 2.  RE: Set a trunk port with access VLAN issue

    Posted 02-02-2016 02:00

    Please, show EX config of interface in trunk mode.

    Which linux are you using?



  • 3.  RE: Set a trunk port with access VLAN issue

    Posted 02-02-2016 07:23

    We try with centos and debian an we have the same result.

     

    The junuper configuration is:

     

    ge-0/0/10 {

    description Pruebas;

    unit 0 {

    family ethernet-switching {

    port-mode trunk;

    vlan {

    members [ Telefonia NS-ANTEL ];

    }

    native-vlan-id Telefonia;

    }

    }

    }

     

    "NS-ANTEL" is the tagged VLAN and "Telefonia" is the untagged one which is defined as native vlan

     

    Thanks in advance



  • 4.  RE: Set a trunk port with access VLAN issue

    Posted 02-02-2016 08:10

    You don't needed to place the untagged vlan to vlan members list.

    remove it:

    delete interface ge-0/0/10 unit 0 family ethernet-switching vlan members Telefonia

     



  • 5.  RE: Set a trunk port with access VLAN issue

    Posted 02-02-2016 08:27

    That's working configuration from my servers (Centos):

    /etc/sysconfig/network-scripts/ifcfg-eth1.333

    VLAN=yes
    DEVICE=eth1.333
    PHYSDEV=eth1
    TYPE=Ethernet
    BOOTPROTO=static
    ONBOOT=yes
    IPADDR=10.200.0.2
    NETMASK=255.255.255.0
    

    ...and Ubuntu (a part from /etc/networking/interfaces):

     

    auto vlan3004
    iface vlan3004 inet static
            address 10.10.12.5
            netmask 255.255.255.248
            vlan_raw_device eth0
            up route add -net 10.16.0.0 netmask 255.255.255.224 gw 10.10.12.2
    


  • 6.  RE: Set a trunk port with access VLAN issue

    Posted 02-02-2016 11:26

    OK I will try removing the untagged  VLAN form the list and let you know

     

    In your configuration you have the VLAN 333 as tagged and 3004 as untagged is that correct ?



  • 7.  RE: Set a trunk port with access VLAN issue

    Posted 02-02-2016 18:33

    no no no...

    Just are different real servers (Centos and Ubuntu).



  • 8.  RE: Set a trunk port with access VLAN issue

     
    Posted 02-02-2016 18:49

    Sorry to me it makes no sense that one server type works and others do not.  I would not expect and config change to make this all work.  I suggest monitor traffic at the interface and capture packets from working and non-working and compare them.  Use  monitor traffic interace <interface-name> no-resolve  to capture the traffic, or else use port mirror to some device running Wireshack/sniffer and debug this way.



  • 9.  RE: Set a trunk port with access VLAN issue

    Posted 02-03-2016 04:51

    OK thanks for your replay

     

    I know it sounds strange but the problem is not the server, it seem to be the operating system

    With windows operating system it works but with unix it is not

    That's why I though that could be something relate to the configuration, different MTU or similar

     

    Thanks anyway form your time 

    Best Regards



  • 10.  RE: Set a trunk port with access VLAN issue

     
    Posted 02-03-2016 07:13

    Did you try setting MTU to like 9192 or something BIG?  EX device does not know the difference between external server operating systems.  It must be something different in the packet format.



  • 11.  RE: Set a trunk port with access VLAN issue

    Posted 02-03-2016 08:09

    Small ICMP packets are not susceptible by MTU. ICMP works or not?
    First, your config for trunk interface has some mistakes.
    Read carefully this KB: https://kb.juniper.net/InfoCenter/index?page=content&id=KB17419&smlogin=true&actp=search
    You need to remove native-vlan form vlan members list. That is solution for untagged vlan traffic.



  • 12.  RE: Set a trunk port with access VLAN issue

     
    Posted 02-03-2016 08:26

    If this is config issue, why does it work for one type (windows) machine, and not others?



  • 13.  RE: Set a trunk port with access VLAN issue

    Posted 02-03-2016 10:02

    this applies for untagged traffic only. Who knows, maybe win nic driver has a different mechanism of behavior for untagged frames. But problem with tagged traffic must be within linux.



  • 14.  RE: Set a trunk port with access VLAN issue
    Best Answer

    Posted 02-03-2016 12:51

    Thanks for your replies 

     

    Yes I don't know exactly why it works under windows system but not with linux ones.

    The ICMP does not work too

     

    Anyway I will try removing the native VLAN form the tagged list in trunk section and leave it only as native and let you know

     

    Thanks very much form you help

    Best Regards,



  • 15.  RE: Set a trunk port with access VLAN issue

    Posted 02-18-2016 08:23

    Hello

     

    Just to let you know that after deleting the native VLAN from the trunk section and let it only in the native section the problem disappear with linux server

    Now the switch port respond to both (tagged an native) VLANS

     

    I don't know exactly why only linux servers where affected, perhaps something in the packets level

     

    Thanks in advance for your support