is there easier way to configure trunk port in extreme switch


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.

16 replies

Userlevel 7
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
Userlevel 3
I think, there is no such easier way to do it. It's particularity of XOS CLI.
Userlevel 4
EXos is fully rich with cli scripting features.
you can write a simple script to do this.
Userlevel 7
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.
Ron wrote:

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.

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.
Ron wrote:

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.

Any chance you could reupload this script? The dropbox link is dead
Userlevel 7
Ron wrote:

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.

BTW, with current EXOS you can use ranges of VLAN IDs:
configure vlan 22-44 add ports 3,7,9-13 tagged [/code]Erik
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
Userlevel 6
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.
Userlevel 7
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
Userlevel 6
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 r

The 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
Paul Russo wrote:

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 r

The 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

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.
hi Paul,
if possible, could you please tell me where i can find some material about how to write script in XOS?

best regards.
Userlevel 7
Here a link to a post that includes a scripting guide....
https://community.extremenetworks.com/extreme/topics/python-scripting-guide
Userlevel 6
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
Userlevel 6
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 [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

Reply