思科Vlan配置过程
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Vlan配置过程
Switch>
Switch>en
Switch#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#vlan 5 新建vlan 5
Switch(config-vlan)#vlan 10 新建vlan10
Switch(config-vlan)#vlan 15 新建vlan 15
Switch(config-vlan)#vlan 20 新建vlan 20
Switch(config-vlan)#exit
Switch(config)#
Switch(config)#interface range fastethernet 0/1-5 进入fa/1-5端口Switch(config-if-range)#
Switch(config-if-range)#switchport access vlan 5 划分fa/1-5端口到vlan5 Switch(config-if-range)#exit
Switch(config)#
Switch(config)#interface range fastethernet 0/6-10
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#exit
Switch(config)#interface range fastethernet 0/11-15
Switch(config-if-range)#switchport access vlan 15
Switch(config-if-range)#exit
Switch(config)#
Switch(config)#interface range fastethernet 0/16-20
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#exit
Switch(config)#
Switch(config)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#
Switch#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
5 VLAN0005 active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5
10 VLAN0010 active Fa0/6, Fa0/7, Fa0/8, Fa0/9
Fa0/10
15 VLAN0015 active Fa0/11, Fa0/12, Fa0/13, Fa0/14
Fa0/15
20 VLAN0020 active Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20
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
5 enet 100005 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
15 enet 100015 1500 - - - - - 0 0
20 enet 100020 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(config)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#
Switch#write memory 保存命令Building configuration...
[OK]
Switch#