动画介绍:一、交换机的基本配置与查看 1、配置主机名: 为交换机配置主机名的命令: Switch(config)#hostname benet
2、查看交换机的配置: Benet#show running-config
Benet#show startup-config
3、使能口令: Benet(config)#enable password 123
4、加密保存的使能口令: Benet(config)#enable secret 123456
5、验证使能口令和加密的使能口令是否生效: Benet(config)#exit Benet>enable Password:
6、配置IP地址:
Benet(config)#interface vlan 1 Benet(config-if)#ip address 192.168.1.1 255.255.255.0 Benet(config-if)#no shutdown
7、配置交换机的网关: Benet(config)#ip default-gateway 192.168.1.10
8、查看交换机的MAC地址: Benet#show mac-address-table
9、line 模式: Line console 0 Password 123456 login Show run
10、开启telnet Line vty 0 4 Login Password 123456 end 11、连续端口设置: Interface range f0/1 - 5 |