Copy port configuration to another port?

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered
  • (Edited)
Configuration Port ? which command can make same configuration Port same another port previously prepared?
Photo of MUNIR ENG

MUNIR ENG

  • 1,256 Points 1k badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of David Coglianese

David Coglianese, Embassador

  • 5,944 Points 5k badge 2x thumb
I do not believe there is an option to mirror the config from one port to another
Photo of MUNIR ENG

MUNIR ENG

  • 1,256 Points 1k badge 2x thumb

thank you David,

but could you please  provide me a steps for do that , like I would configure port 3 like port1

ex: configure ports 1 auto on speed 1000 duplex full , Vlan 1,2,3


(Edited)
Photo of David Coglianese

David Coglianese, Embassador

  • 5,944 Points 5k badge 2x thumb
You would have to look at the port configured the way you want
Show port X:XX info detail
Then manually configure all those attributes on the new port.

The only shortcut I could think of would be:
sho config | include 1:6
configure vlan AH-Guest add ports 1:6, 1:12, 1:48, 1:50, 1:52, 2:6 tagged  configure vlan AH-MGMT add ports 1:6, 1:12, 1:48, 1:50, 1:52, 2:6 tagged  
configure vlan Data add ports 1:4, 1:6, 1:11-12, 1:21, 1:44, 1:48-50, 1:52, 2:1-3, 2:6 tagged  
configure vlan Voice add ports 1:3-4, 1:6, 1:10, 1:12, 1:15, 1:21, 1:48-50, 1:52, 2:1, 2:3, 2:6, 2:45 tagged  
configure vlan WAN add ports 1:4, 1:6, 1:12, 1:21, 1:48-50, 1:52, 2:1, 2:6 tagged  
configure qosprofile QP5 minbw 0 maxbw 100 ports 1:6
enable cdp ports 1:6
configure inline-power detection bypass ports 1:6

You could then clean that up in a text editor and past it back in with the new port number:
configure vlan AH-Guest add ports x:xx tagged  
configure vlan AH-MGMT add ports x:xx tagged  
configure vlan Data add ports x:xx tagged  
configure vlan Voice add ports x:xx tagged  
configure vlan WAN add ports x:xx tagged  
configure qosprofile QP5 minbw 0 maxbw 100 ports x:xx
enable cdp ports x:xx
configure inline-power detection bypass ports x:xx

Hope this helps
Photo of MUNIR ENG

MUNIR ENG

  • 1,256 Points 1k badge 2x thumb
I got it , thank you