EXOS how to reset a port to factory default


Userlevel 2
Is there a way to reset a port back to factory default. For instance if I have a port with 7 vlans tagged and 1 untagged with elrp on the port, how can I get the port back to just vlan default untagged without having to delete each vlan manually and disabling elrp manually. Thanks in advance!

16 replies

Userlevel 6
Hey Blake

Adding a port to a VLAN is a VLAN function not a Port function so unless we create a script that looks at at ports info detail and then automatically deletes it from each VLAN using a do while loop.

I would have to play with it to see how that would work if it can.

P
Userlevel 4
There is no direct command available to remove all the port configuration from the port.
Userlevel 2
No prob. Thanks for the feed back!
This Forum is probably the best forum that i have ever used and i would just like to say how proud i am to be a member of this forum
Userlevel 2
You can remove all the vlans from a port easily.

enable mirroring to port X
then
disable mirroring

This command I have to run quite frequently since it is a hassle to remove over 100 vlans from one port.

I wish there was a enable port default-settings port X
then with a question to confirm this.
Userlevel 2
@Andrea, thanks for the idea. When you turn on mirroring it removes all settings, is that correct? I quick command to clear everything. Again, I like the idea.
Userlevel 2
Yes that is correct it removes stp etc and such from the port not sure about ethtype etc but it removes all the vlan information at least.
como no se me ocurrio, gracias Andrea. Excelente. Yo buscaba esto.
as I could not think, thanks Andrea. Excellent. I was looking for this.
Great Tip, Thx!
Best tip ever, thanks
what other configuration does that command remove ?
For me port mirroring doesn't work, I get an error:

switch # enable mirror to port 10:33
Error: Port mirroring cannot be enabled on a trunk member port 10:33
Configuration failed on backup MSM, command execution aborted!

switch #

Anyone has an alternative idea how to change a tagged port to an untagged access port?
I also tried to delete it from all vlans, but it doesn't work.
Userlevel 7
Endre Varga wrote:

For me port mirroring doesn't work, I get an error:

switch # enable mirror to port 10:33
Error: Port mirroring cannot be enabled on a trunk member port 10:33
Configuration failed on backup MSM, command execution aborted!

switch #

Anyone has an alternative idea how to change a tagged port to an untagged access port?
I also tried to delete it from all vlans, but it doesn't work.

port 10:33 seems to be a typo. Chassis or stack have a maximum of 8 slots.
Userlevel 6
Hi Endre, that message indicates this port belongs to a LAG. You can confirm that by using "show ports sharing" command.

Do you want to mirror the traffic to a local or remote port?
Userlevel 2
Anybody have an alternative to set a port to default settings. without enable port mirroring? An Script maybe? thanks

Reply