06-13-2019 02:18 PM
Hi i have a Cisco SG350 28 P Switch. On GigabitEthernet25 it has the following configuration:
show run interface gigabitethernet25
interface GigabitEthernet25
description FHG-FW01
port security max 10
port security mode max-addresses
no spanning-tree portfast
spanning-tree bpduguard enable
switchport access vlan 119
switchport trunk allowed vlan 1,119
macro description "ip_phone_desktop "
!next command is internal.
macro auto smartport dynamic_type unknown
!
I want the above entire configuration to be gone and i want the following configuration to be put in it's place:
interface gigabitethernet25
description FHG-FW01
switchport mode access
switchport access vlan 119
!
I tired putting no infront of each command but it fails to clear out.
Looking forward to a quick reply.
Thanks,
Vik.
06-13-2019 03:24 PM - edited 06-13-2019 05:12 PM
Try to clear the iinterface
default interface Gig25
Add new configuration
06-13-2019 04:19 PM
Hello,
unfortunately the SG switches do not run a full IOS command set, so the 'default interface' command is not available, as far as I recall. You are therefore 'stuck' with the 'no' version of the commands you want to get rid of. What exactly does not work when you manually negate the commands on the interface ?
06-13-2019 04:58 PM
Dear Georg,
On this Swtich the current configuration on interface 25 is:
interface GigabitEthernet25
description FHG-KIN-FW01-FE2
storm-control broadcast level 10
storm-control multicast level 10
port security max 10
port security mode max-addresses
port security discard trap 60
spanning-tree portfast
spanning-tree bpduguard enable
switchport access vlan 119
switchport trunk allowed vlan 1,119
macro description "ip_phone_desktop "
!next command is internal.
macro auto smartport dynamic_type unknown
!
and i want to replace it with:
interface gigabitethernet25
description FHG-KIN-FW01-FE2
switchport mode access
switchport access vlan 119
!
06-14-2019 10:06 AM
Dear Georg,
You were right i tried the default interface gigabitethernet 25 command but it did not work. Basically i want to disable the Macros on this interface. The current configuration of this interface is as under:
interface GigabitEthernet25
description FHW1
port security max 10
no spanning-tree portfast
switchport access vlan 119
switchport trunk allowed vlan 1,119
no macro auto smartport
!next command is internal.
macro auto smartport dynamic_type unknown
!
I even tried the commands:
macro auto disabled
no macro auto processing
But still no results...
Basically this is how i want the configuration on this interface:
interface gigabitethernet25
description FW1
switchport mode access
switchport access vlan 119
!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide