Switch#configure ter
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface fas
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#swi
Switch(config-if)#switchport acc
Switch(config-if)#switchport access vlan 1
Switch(config-if)#exit
Switch(config)#int
Switch(config)#interface fas
Switch(config)#interface fastEthernet 0/2
Switch(config-if)#sw
Switch(config-if)#switchport acc
Switch(config-if)#switchport access vl
Switch(config-if)#switchport access vlan 1
Switch(config-if)#exit
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#ena
Switch#enable
Switch#con
Switch#conf
Switch#configure ter
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 2
Switch(config-vlan)#exit
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console
show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
2 VLAN0002 active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
2 enet 100002 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
Switch#nt
Switch#conf
Switch#configure ter
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface fas
Switch(config)#interface fastEthernet 0/3
Switch(config-if)#swi
Switch(config-if)#switchport mod
Switch(config-if)#switchport mode acc
Switch(config-if)#switchport mode access
Switch(config-if)#siw
Switch(config-if)#swi
Switch(config-if)#switchport acc
Switch(config-if)#switchport access vl
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit
Switch(config)#int
Switch(config)#interface fas
Switch(config)#interface fastEthernet 0/4
Switch(config-if)#swi
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode acc
Switch(config-if)#switchport mode access
Switch(config-if)#swi
Switch(config-if)#switchport acc
Switch(config-if)#switchport access 0/4
^
% Invalid input detected at '^' marker.
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit
Switch(config)#
%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
Switch con0 is now available
Press RETURN to get started.
Switch>enab
Switch>enable
Switch#conf
Switch#configure ter
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface fast
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#ip ad
Switch(config-if)#ip ad
Switch(config-if)#ip add
Switch(config-if)#ip addr
Switch(config-if)#ip addre
Switch(config-if)#ip address 192.168.1.10 255.255.255.0
^
% Invalid input detected at '^' marker.
Switch(config-if)#ip addr
Switch(config-if)#ex
Switch(config-if)#exit
Switch(config)#int
Switch(config)#interf vl
Switch(config)#interf vlan 1
Switch(config-if)#ip add
Switch(config-if)#ex
Switch(config-if)#exit
Switch(config)#interf vlan 1
Switch(config-if)#ip add
Switch(config-if)#ip address 192.168.1.10/24
^
% Invalid input detected at '^' marker.
Switch(config-if)#ex
Switch(config-if)#exit
Switch(config)#vlan 1
Switch(config-vlan)#ip add
Switch(config-vlan)#ex
Switch(config-vlan)#exit
Switch(config)#int
Switch(config)#interface fas
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#ip add
Switch(config-if)#exit
Switch(config)#int
Switch(config)#interf vlan 1
Switch(config-if)#ip add
Switch(config-if)#ip address 192.168.1.10 255.255.255.0
Switch(config-if)#no sh
Switch(config-if)#no shutdown
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
Switch(config-if)#exit
Switch(config)#use
Switch(config)#username a
Switch(config)#pa
Switch(config)#pass
Switch(config)#user
Switch(config)#username a pass
Switch(config)#username a password b
Switch(config)#Li
Switch(config)#Line vty 0 9
Switch(config-line)#log
Switch(config-line)#login lo
Switch(config-line)#login local
Switch(config-line)#exit
Switch(config)#ena
Switch(config)#enable pas
Switch(config)#enable password c
Switch(config)#
参考文献: