is there easier way to configure trunk port in extreme switch

  • 0
  • 1
  • Question
  • Updated 1 year ago
  • Answered
I'm just starting to use extreme switch, and the switch type is X450a-48t, and SW version is 12.0.3.16. when I configure the trunk port in the switch, i found that it's not convenient as Cisco Switch I used before. for example, if you configure trunk port,

in extreme switch:
create vlan tag_test
config vlan tag_test tag 100
config vlan tag_test add port 2 tagged

in cisco switch:
interface gi-0/2
switchport trunk allowed vlan add 1,100

if the vlans i want to tag to port is few, then i think this way is acceptable, but if there are many vlans which need to be tagged, then how should i perform it? for example, i want vlan 1-100 tagged in port 2, in cisco switch, it's very easy to realize by switchport trunk allowed vlan add 1-100. but in extreme switch, should i create 100 vlans one by one and add to port 2? is it inconvenient? but i'm newbie for the extreme, so maybe there is easier way to create trunk port which i don't know. who can help me about it? thanks in advance.

best regards.
Photo of wang maple

wang maple

  • 140 Points 100 badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 45,306 Points 20k badge 2x thumb
Here a link to a post about the legacy CLI mode.. (never used it myself)....

https://community.extremenetworks.com/extreme/topics/cisco_ios_commands_on_xos_device
Photo of eyeV

eyeV

  • 2,484 Points 2k badge 2x thumb
I think, there is no such easier way to do it. It's particularity of XOS CLI.
Photo of PARTHIBAN CHINNAYA

PARTHIBAN CHINNAYA, Alum

  • 4,362 Points 4k badge 2x thumb
EXos is fully rich with cli scripting features.
you can write a simple script to do this.
Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 45,306 Points 20k badge 2x thumb
The problem ... not everyone is a programmer and/or has your skill level and experience.

What I've read in the forum so far about XOS is "nice" but we'd need to unterstand that not every customer/user is able to use the scripting functions.
They like to have an easy to use CLI build in.

I've run into a similar issue... I want a command to show my VLANs / port in one simple view like it was available on the Enterasys platform with "show vlan portinfo"
https://community.extremenetworks.com/extreme/topics/xos_show_vlan_portinfo

Looks like I'll never get such command as I don't have any clue how do write such script.
Photo of wang maple

wang maple

  • 140 Points 100 badge 2x thumb
Script thing doesn't bother me, as long as I know the grammar, i think i can do it. but it's always nice that XOS has more direct way to do it.

And about the show command, i fully agree with you, what I need is clear and simple mapping relationship between port and vlan, but in the XOS, that's not so direct.
Photo of Tom

Tom

  • 154 Points 100 badge 2x thumb
Any chance you could reupload this script? The dropbox link is dead 
Photo of Erik Auerswald

Erik Auerswald, Embassador

  • 12,782 Points 10k badge 2x thumb
BTW, with current EXOS you can use ranges of VLAN IDs:
configure vlan 22-44 add ports 3,7,9-13 tagged
Erik
Photo of Michael Suggs

Michael Suggs

  • 100 Points 100 badge 2x thumb
i am not aware of a way to set a tagged port on multiple vlans. this is not what you asked but you can set multiple ports on a single vlan " config tag_test add port 2,3,4,5,6,7,8,9 tag" or config tag a po 2-9 tag
Photo of Paul Russo

Paul Russo, Alum

  • 9,694 Points 5k badge 2x thumb
Hey Wang

There is a script that has already been created.  Let me test it and I will repost when I have that done with a dropbox link to down load it.
Photo of Grosjean, Stephane

Grosjean, Stephane, Employee

  • 12,582 Points 10k badge 2x thumb
Hi,

EXOS 12.0 is really, really, old.

That being said, the legacy xmod is one way to solve your issue.
A script is another way and is quite simple to do.
Native support in EXOS CLI is not excluded for the future :)

To remove a port from many vlans at once, there's the trick to configure on it mirroring :)

Rgds,
Stephane
Photo of Paul Russo

Paul Russo, Alum

  • 9,694 Points 5k badge 2x thumb
Hey Wang

The script is located here https://www.dropbox.com/sh/017smngq3p4hrdp/AAC8iBgchTqjxVzUIxaakh4oa?dl=0

To use the script type the command load script Trunk <p> r

The <p> is the port ypou are using as the trunk.  The r is to remove the port as a trunk port.


I hope that helps.  Please test it and know that any script posted here is at your risk and is not supported.

You may need to upgrade the code but not sure


Thanks
P
Photo of wang maple

wang maple

  • 140 Points 100 badge 2x thumb
hi Paul,

Really thanks for your help and effort, but it seems a little bit different from what i need, this script  will tag all vlans on specific port, but what i need is tagging specific vlans on specific port, not all. but again, thanks for your script.

best regards.
Photo of wang maple

wang maple

  • 140 Points 100 badge 2x thumb
hi Paul,
if possible, could you please tell me where i can find some material about how to write script in XOS?

best regards.
Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 45,306 Points 20k badge 2x thumb
Here a link to a post that includes a scripting guide....
https://community.extremenetworks.com/extreme/topics/python-scripting-guide
Photo of Paul Russo

Paul Russo, Alum

  • 9,694 Points 5k badge 2x thumb
Hey Wang

you can probably manipulate the script to accept the variable of the range of VIDs when you load the script and then use that range as a counter for a do while to add the port to those VLANs Tagged.

Let me see if I can come up with something and I will post.  Not sure of the time frame may be today or this week.

P
Photo of Paul Russo

Paul Russo, Alum

  • 9,694 Points 5k badge 2x thumb
Hello Wang

I added another simple script to the one I had there before.  This works similar but it just takes a range of VLANs and makes them tagged on the port.

For example lets say you have 30 VLANs and they start with VID 1 and go to VID 30 and you want to add VLANs with VID 10-20 to a trunk port.  Use this script

load script <portnum> <first VID> <Last VID> [r] In the case of the example it would be load script trunk_range 1 10 20

the script takes the range of 10-20 looks at those VLANs and adds port 1 to them tagged.  To remove enter the same command and finish with an 'r' load script trunk_range 1 10 20 r

I created and tested this using 15.6 code

Use the dropbox link in earlier post and grab the script trunk_range.xsf

Let me know if it helps
P