XZL_CE-021
网络拓扑图如下:
0x00 恢复交换机的出厂默认设置
enable
erase startup-config
0x01 设置管理IP和Telnet登录
查看当前配置
show running-config
配置交换机标识和管理IP
configure terminal
hostname XZL_CE-021
interface vlan 1
ip address 10.0.1.12 255.255.255.0
no shutdown
end
检查是否配置成功
配置Telnet登录
configure terminal # 进入特权模式
line vty 0 4 # 设置虚拟终端接口线路数量5个(0-4)
password ins1ght # 设置远程登录的密码
login # 开启远程登录时的密码验证机制
exit # 退出至特权模式
enable password ins1ght@ABC # 设置特权模式的密码
exit
测试配置是否成功
0x02 划分VLAN并添加端口
划分VLAN并查看结果
enable
config
vlan 10 # 划分VLAN 10
exit # 退出VLAN 10的配置
vlan 20
exit
vlan 30
exit
exit
show vlan
为创建的VLAN添加相应的端口
configure terminal
interface range fastEthernet 0/1-6
switchport access vlan 20
exit
interface range fastEthernet 0/7-14
switchport access vlan 30
exit
interface range fastEthernet 0/15-20
switchport access vlan 10
exit
exit
show vlan
0x03 连通性测试
配置PC的IP地址
连通性测试
PC21 Ping PC22
PC22 Ping PC23
PC23 Ping PC24
PC24 Ping PC25
PC25 Ping PC26