cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
785
Views
0
Helpful
1
Replies

Default Interface Command Modifications

plittle89
Community Member

Hello all,

I was wondering if it was possible to modify the result of the default interface command.  For instance, when issuing the "default g1/0/1" command, can you change what "default" is to where the interface is configured as below:

interface GigabitEthernet1/0/1
switchport mode access
spanning-tree portfast
spanning-tree bpduguard enable
end

I know this can be done with a TCL script or something similar.  I am looking for a way to do this on CLI; maybe with an alias command.

Thanks,

Patrick 

1 Reply 1

Mark Elsen
Hall of Fame
Hall of Fame

   - That can't be done (who would be the new default command....); for this you can use macro's in IOS.

M.



-- Let everything happen to you  
       Beauty and terror
      Just keep going    
       No feeling is final
Reiner Maria Rilke (1899)