EXOS how to reset a port to factory default

  • 0
  • 1
  • Question
  • Updated 10 months ago
  • Answered
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!
Photo of bw447

bw447

  • 906 Points 500 badge 2x thumb

Posted 4 years ago

  • 0
  • 1
Photo of Paul Russo

Paul Russo, Alum

  • 9,694 Points 5k badge 2x thumb
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
Photo of Sumit Tokle

Sumit Tokle, Alum

  • 5,738 Points 5k badge 2x thumb
There is no direct command available to remove all the port configuration from the port. 
Photo of bw447

bw447

  • 906 Points 500 badge 2x thumb
No prob.  Thanks for the feed back!
Photo of ZakaMede1

ZakaMede1

  • 100 Points 100 badge 2x thumb
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
Photo of andreas

andreas

  • 1,218 Points 1k badge 2x thumb
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.


Photo of bw447

bw447

  • 906 Points 500 badge 2x thumb

@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.

Photo of andreas

andreas

  • 1,218 Points 1k badge 2x thumb
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.


Photo of Jhonn Bejar

Jhonn Bejar

  • 320 Points 250 badge 2x thumb
as I could not think, thanks Andrea. Excellent. I was looking for this.
Photo of Tomer Petel

Tomer Petel

  • 60 Points
Great Tip, Thx!
Photo of Stephanos

Stephanos

  • 94 Points 75 badge 2x thumb
Best tip ever, thanks 
Photo of Stephanos

Stephanos

  • 94 Points 75 badge 2x thumb
what other configuration does that command  remove ?
Photo of Endre Varga

Endre Varga

  • 60 Points
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.
Photo of Grosjean, Stephane

Grosjean, Stephane, Employee

  • 12,482 Points 10k badge 2x thumb
port 10:33 seems to be a typo. Chassis or stack have a maximum of 8 slots.
Photo of Henrique

Henrique, Employee

  • 10,302 Points 10k badge 2x thumb
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?
Photo of Elena Madrigal

Elena Madrigal

  • 494 Points 250 badge 2x thumb
Anybody have an alternative to set a port to default settings. without enable port mirroring? An Script maybe? thanks