default コマンド
2008年5月21日 CCIEsw1#sh running-config interface fastEthernet 0/2
Building configuration...
Current configuration : 275 bytes
!
interface FastEthernet0/2
switchport access vlan 666
switchport mode access
switchport port-security
switchport port-security aging time 15
switchport port-security aging type inactivity
macro description Access
dot1x port-control auto
spanning-tree portfast
end
sw1#
Interface FastEthernet0/2 set to default configuration
05:06:26: %LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/2, changed state to down
sw1(config)#default interface fastEthernet 0/2
Interface FastEthernet0/2 set to default configuration
05:06:26: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
sw1(config)#do
05:06:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to upshow run int fast 0/2
Building configuration...
Current configuration : 68 bytes
!
interface FastEthernet0/2
switchport mode dynamic desirable
end
sw1(config)#
便利かも。
sw1(config)#default interface range fastEthernet 0/1 - 24
なんてのも出来る。
コメント