telnet登陆设置
Switch>
Switch>en
Switch>enable
Switch#conf
Switch#configure t
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#en
Switch(config)#enab
Switch(config)#enable se
Switch(config)#enable secret admin
Switch(config)#
Switch(config)#line
Switch(config)#line vt
Switch(config)#line vty 0 4
Switch(config-line)#pass
Switch(config-line)#password admin123456
Switch(config-line)#login
Switch(config-line)#
Switch(config-line)#
Switch(config-line)#no shut
Switch(config-line)#exit
Switch(config)#
Switch(config)#int vlan
Switch(config)#int vlan 1
Switch(config)#int vlan 1
Switch(config-if)#ip add
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shut
Switch(config-if)#no shutdown
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up
Switch(config-if)#
Switch(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
首先要确保交换机和终端设备是在同一个网段。
其次是确保链接的是直通线。然后要设置好特权模式的密码和telnet登陆的密码。
补充一条 设置console口的密码。
Switch(config)#line co
Switch(config)#line console 0
Switch(config-line)#pass
Switch(config-line)#password admin1234567
Switch(config-line)#
划分端口vlan
Switch>en
Switch>enable
Switch#conf
Switch#configure t
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int vlan 1
Switch(config-if)#sw
Switch(config-if)#exit
Switch(config)#
Switch(config)#int fa 0/1
Switch(config-if)#sw
Switch(config-if)#switchport acc
Switch(config-if)#switchport access vlan 1
Switch(config-if)#ex
Switch(config-if)#exit
Switch(config)#int fa 0/12
Switch(config-if)#sw
Switch(config-if)#switchport acc
Switch(config-if)#switchport access vlan 2
% Access VLAN does not exist. Creating vlan 2
Switch(config-if)#no shut
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#
Switch(config)#int fa 0/24
Switch(config-if)#sw
Switch(config-if)#switchport acc
Switch(config-if)#switchport access v
Switch(config-if)#switchport access vlan 3
% Access VLAN does not exist. Creating vlan 3
Switch(config-if)#no shut
Switch(config-if)#no shutdown
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#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/13
Fa0/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/19, Fa0/20, Fa0/21
Fa0/22, Fa0/23
2 VLAN0002 active Fa0/12
3 VLAN0003 active Fa0/24
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
3 enet 100003 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Remote SPAN VLANs
------------------------------------------------------------------------------
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
Switch#
Switch#
Switch#
Switch#conf
Switch#configure t
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa 0/24
Switch(config-if)#sw
Switch(config-if)#switchport m
Switch(config-if)#switchport mode t
Switch(config-if)#switchport mode trunk
这里将24端口设置为trunk模式。
本文出自 “筑梦小组-执行策划韦毅” 博客,谢绝转载!