实验一:使用主机的Console口连接到交换机然后对交换机进行相关的配置
对交换机进行配置的方法:
使用主机连接console接口进行连接交换机进行相应配置
双击交换机进入交换机配置界面
远程登录进行配置
设置交换机的名称(在系统视图下)sysname + 需要修改的名称
设置交换机系统时间(在用户视图模式下)clock datetime 12:00:00 2024-03-07
设置交换机时区(在用户视图模式下)clock timezone BJ add 08:00:00
查看交换机时间 display clock
更改语言模式language-mode Chinese (设置语言模式只能设置为中文和英文两个选项)
提示信息关闭(在系统视图下)undo info-center enable
禁止所有类信息输出(在用户视图下)undo terminal monitor
查看mac地址表diaplay mac-address
将主机的mac地址和vlan进行绑定 mac-address static + 主机的mac地址 +端口类型 端口号 + vlan + vlan编号
实验二:设置交换机console接口密码(密码认证)
[Huawei]user-interface console 0
[Huawei-ui-console0]idle-timeout 0
[Huawei-ui-console0]set authentication password ?
cipher 以密文方式设置密码
simple 以明文方式设置密码
[Huawei-ui-console0]set authentication password simple 123456
实验三:设置交换机console接口密码(aaa认证)
[Huawei]user-interface console 0
[Huawei-ui-console0]authentication-mode aaa
[Huawei-ui-console0]quit
[Huawei]aaa
[Huawei-aaa]local-user admin password ?
cipher 用户的密文密码
simple 用户的明文密码
[Huawei-aaa]local-user admin password cipher 123456 //设置允许登的用户及其使用的密码
[Huawei-aaa]local-user admin service-type terminal //设置用户类型Terminal用户
实验四:配置交换机端口的速率
Interface + 端口名称 端口类型
关闭自动协商模式undo negotiation auto
设置端口速率(S3700端口速率只能设置10Mbps或100Mbps)
[Huawei]interface e0/0/6
[Huawei-Ethernet0/0/6]undo negotiation auto
[Huawei-Ethernet0/0/6]speed ?
10 10M 速率模式
100 100M 速率模式
[Huawei-Ethernet0/0/6]speed 10
实验五:配置交换机端口的工作模式
Interface + 端口名称 端口类型
关闭自动协商模式undo negotiation auto
设置端口工作模式(端口速率只能设置全双工模式和半双工两种模式)
[Huawei]interface e0/0/6
[Huawei-Ethernet0/0/6]undo negotiation auto
[Huawei-Ethernet0/0/6]duplex ?
full 全双工模式
half 半双工模式
[Huawei-Ethernet0/0/6]duplex full
实验六:保存当前配置文件
<Huawei>save //实验中save命令保存当前配置文件
将把当前的配置保存到存储设备中。
是否继续?[Y/N]y
提示:请输入文件名(*.cfg,*.zip)[vrpcfg.zip]:
正在将运行时的配置写入到存储设备0。
保存配置成功。