cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1062
Views
0
Helpful
4
Replies

how to replace configuration on the switch interface with new configuration on Cisco SG350 28 P Switch

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.

4 Replies 4

Steven Doremus
Level 1
Level 1

Try to clear the iinterface

default interface Gig25

Add new configuration

 

 

 

 

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 ?

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

!

 

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
!

Review Cisco Networking for a $25 gift card