交换机设置
- 格式:doc
- 大小:279.50 KB
- 文档页数:5
交换机设置说明
打开超级终端程序
任意输入一个连接名称
选择一个com口
点击还原为默认值,然后确定
进入交换机串口设置模式
************************************************
Welcome to ZXR10 5928 Switch of ZTE Corporation
************************************************
ZXR10>enable 登录ZXR10,超级用户
Password:zxr10 输入密码:zxr10
ZXR10#conf t 进入配置模式(t前面有一空格)
Enter configuration commands, one per line. End with CTRL/Z.
ZXR10(config)#show vlan 查看已有的vlan配置
VLAN Name PvidPorts UntagPorts TagPorts
--------------------------------------------------------------------------------
1 VLAN0001 gei_1/1-24
ZXR10(config)#vlan 101 创建一个id为101的vlan
ZXR10(config-vlan101)#switchport pvid gei_1/1-8 将1~8端口加入到vlan 101
ZXR10(config-vlan101)#show vlan 查看vlan是否设置成功,如果看到红色的一行,就表示vlan设置成功了
VLAN Name PvidPorts UntagPorts TagPorts
--------------------------------------------------------------------------------
1 VLAN0001 gei_1/9-24
101 VLAN0101 gei_1/1-8
下面是将21和22端口设置成光口模式:
ZXR10(config-vlan101)#exit 退出vlan配置模式
ZXR10(config)#int gei_1/21 进入21端口配置模式
ZXR10(config-gei_1/21)#hybrid-attribute fiber 将21端口设置为光口
ZXR10(config-gei_1/21)#exit 退出21端口配置模式
ZXR10(config)#int gei_1/22 进入22端口配置模式
ZXR10(config-gei_1/22)#hybrid-attribute fiber 将22端口设置为光口
ZXR10(config-gei_1/22)#exit 退出22端口配置模式
ZXR10(config)#show interface gei_1/21 查看21端口是否设置成功,有红色字体表明设置成功
gei_1/21 is down, line protocol is down
Description is none
The port is optical
Duplex full
MTU 1500 bytes BW 1000000 Kbits
Last clearing of "show interface" counters never
20 seconds input rate : 0 Bps, 0 pps
20 seconds output rate: 0 Bps, 0 pps
Interface peak rate :
input 0 Bps, output 0 Bps
Interface utilization: input 0%, output 0%
Input:
Packets : 0 Bytes : 0
Unicasts : 0 Multicasts: 0
Broadcasts : 0 Undersize : 0
Oversize : 0 CRC-ERROR : 0
Dropped : 0 Fragments : 0
Jabber : 0 MacRxErr : 0
Output:
Packets : 0 Bytes : 0
Unicasts : 0 Multicasts: 0
Broadcasts : 0 Collision : 0
ZXR10(config)#show interface gei_1/22 再查看22端口是否设置成功
10:24:25 11/17/2010 UTC alarm 512 cleared %PORT% Interface up on gei_1/12 sent
by MCP
gei_1/22 is down, line protocol is down
Description is none
The port is optical
Duplex full MTU 1500 bytes BW 1000000 Kbits
Last clearing of "show interface" counters never
20 seconds input rate : 0 Bps, 0 pps
20 seconds output rate: 0 Bps, 0 pps
Interface peak rate :
input 0 Bps, output 0 Bps
Interface utilization: input 0%, output 0%
Input:
Packets : 0 Bytes : 0
Unicasts : 0 Multicasts: 0
Broadcasts : 0 Undersize : 0
Oversize : 0 CRC-ERROR : 0
Dropped : 0 Fragments : 0
Jabber : 0 MacRxErr : 0
Output:
Packets : 0 Bytes : 0
Unicasts : 0 Multicasts: 0
Broadcasts : 0 Collision : 0
LateCollision: 0
ZXR10(config)#exit 退出设置模式
ZXR10#write 保存配置信息(练习时不要输入)
Building configuration...
...