Wired Intelligent Edge

last person joined: yesterday 

Bring performance and reliability to your network with the HPE Aruba Networking Core, Aggregation, and Access layer switches. Discuss the latest features and functionality of your switching devices, and find ways to improve security across your network to bring together a mobile-first solution
Expand all | Collapse all

Switchport config

This thread has been viewed 11 times
  • 1.  Switchport config

    Posted Mar 15, 2019 12:45 PM

    Hi there,

     

    I'm migrating from Cisco switch to Aruba switch 3810. How can I configure the interface in Aruba switch for this config in cisco :

     

    interface GigabitEthernet1/1
    switchport access vlan 64
    switchport trunk native vlan 64
    switchport trunk allowed vlan 64
    switchport mode access



  • 2.  RE: Switchport config

    EMPLOYEE
    Posted Mar 15, 2019 01:07 PM

    Greetings!

     

    Most VLAN configuration on ArubaOS-Switch is performed in the VLAN context rather than at the interface context. For example, to create VLAN 64 and assign it to interface 1 as an access (or "untagged") VLAN:

     

    switch(config)# vlan 64
    switch(vlan-64)# untagged 1
    

    Once a VLAN has been created, you also have the option of performing VLAN assignments from the interface context, as in the following examples:

     

    switch(config)# interface 2-8 untagged vlan 64
    switch(config)# interface 24 tagged vlan 64

     



  • 3.  RE: Switchport config

    Posted Mar 16, 2019 12:10 PM
    Thank you so much for your reply; if you could help which exactly the config I should use in Aruba-OS switch for Cisco the example as I'm still confused!
    interface GigabitEthernet1/1
    switchport access vlan 64
    switchport trunk native vlan 64
    switchport trunk allowed vlan 64
    switchport mode access

    Will VLAN 64 be tagged or untagged, what about native VLAN 64? Allowed VLAN64?


  • 4.  RE: Switchport config

    MVP GURU
    Posted Mar 16, 2019 01:21 PM

    Maybe I'm wrong but

     

    interface GigabitEthernet1/1
      switchport access vlan 64
      switchport trunk native vlan 64
      switchport trunk allowed vlan 64
      switchport mode access

    is a pretty strange interface configuration (read, as example, here).

     

    Is the Interface 1/1 set in Access mode (in Cisco jargon) or is it set with Trunk mode (again, in Cisco jargon)?

     

    You shouldn't have both, Access and Trunk...it is Access or Trunk.

     

    If the Interface 1/1 is set in Access mode (so the switchport mode access is valid) then this would translate into what @Matthew wrote first above:

     

    switch(config)# vlan 64
    switch(vlan-64)# untagged 1

    or, from the interface 1 standpoint, just the very same:

     

    switch(config)# interface 1 untagged vlan 64

    If, instead, your Interface 1/1 is set in Trunk mode (switchport mode trunk) then this translates into:

     

    switch(config)# interface 1 tagged vlan 64

    implying that Interface 1 is STILL untagged member of VLAN 1 (Default) but is now tagged member of VLAN 64...so this means it can transport VLAN 64 tagged packets.

     

    Cisco side:

     

    Potentially...you config would be - if interconnecting to Switches and passing JUST one VLAN (your VLAN 64):

     

    interface 1/1
    switchport encapsulation dot1q
    switchport mode trunk
    switchport trunk native vlan 64
    switchport trunk allowed vlan 64

    With this configuration VLAN 64 will be untagged on Interface 1/1 (note the native) and will also be the only one VLAN allowed to be transported through it (note the allowed) ...but, generally, the Trunk mode is often used when you want a switch interface - logical of physical - to carry MULTIPLE concurrent VLANs between two peer Switches (or between a Switch and a Host capable of VLAN tagging), not just simply one...still that is totally possible.



  • 5.  RE: Switchport config

    Posted Mar 25, 2019 09:51 AM

    Alright then, what about this inteface which vlan should be tagged or untagged : (is VLAN 119 should be untagged)?

     

    interface FastEthernet0/3
    description DATA & VOICE PORT
    switchport trunk native vlan 119
    switchport trunk allowed vlan 10,119
    switchport mode trunk
    priority-queue out
    spanning-tree portfast



  • 6.  RE: Switchport config

    MVP GURU
    Posted Mar 26, 2019 03:59 PM

    What you set untagged for vlan it is allowed with tag...



  • 7.  RE: Switchport config

    Posted Mar 26, 2019 05:25 PM

    Please be aware that cisco and aruba differ in the terms of vlan tagging.

     

    You need to make sure if your connected device needs a vlan tag (example uplink or most VoiP phones), or if it needs access to the vlan without tagging (untagged). 

     

    Cisco's defintion is:

    Trunk - A port enabled for VLAN tagging

    Access - A port that does not tag and only accepts a single VLAN