回顾
- 接口:RJ-45接口、光网卡
- 介质:双绞线、光纤
- 双绞线:非屏蔽(UTP)、屏蔽(STP)
Cat5、cat5e、cat6、cat7、
2)光纤:单模、多模
3.eNSP模拟程序使用
4.交换组网
5.华为交换机的配置视图
6.基本配置命令
1)恢复出厂默认
<S1>reset saved-configuration
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:y提示是否删除已保存的配置
<S1>reboot
注:执行重启命令后先输入n不保存,再输入y重启
2)取消console口令
<Huawei>system-view
[Huawei]user-interface console 0
[Huawei-ui-console0]authentication-mode password
[Huawei-ui-console0]set authentication password cipher 123
Ctrl+z
Quit
提示输入密码
<Huawei>system-view
[Huawei]user-interface console 0
[Huawei-ui-console0]undo set authentication password取消密码
3)取消终端显示提示信息
<Huawei>undo terminal monitor
4)改变语言模式为中文
<Huawei>language-mode Chinese(中)
language-mode English(英)
辟邪剑谱
<Huawei>u t m关闭日志提示
<S1>dis ver显示版本
<S1>dis cu查看当前配置信息
<S1>sy进入系统视图
[S1]sy Switch更改设备名为Switch
[Switch]int g0/0/1进入接口
[Switch-GigabitEthernet0/0/1]sh禁用接口
[Switch-GigabitEthernet0/0/1]un sh启用接口
Ctrl+z直接返回用户视图
[Switch]user-in co 0进入console口
[Switch-ui-console0]auth p启用密码认证
[Switch-ui-console0]set a p c 123设置密码
[Switch-ui-console0]ret返回用户户视图
<Switch>sa保存
<Switch>qu退出
<Switch>sy
[Switch]user-in co 0进入conslole口
[Switch-ui-console0]i 1440设置超时时间为24小时
<Switch>re sa
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:y 确认恢复
<Switch>reboot重启
n
ext startup:flash:/vrpcfg.zip, Continue?[Y/N]:n不保存
System will reboot! Continue?[Y/N]:y重启
今日内容
- 远程管理交换机
1)优点:通过网络方便管理网络设备,不需要到设备旁边
2)配置SW1交换机管理IP地址
<Huawei>system-view
[Huawei]interface Vlanif 1
[Huawei-Vlanif1]ip address 192.168.1.100 255.255.255.0
[Huawei-Vlanif1]undo shutdown
3) 配置SW2交换机管理IP地址
<Huawei>system-view
[Huawei]interface Vlanif 1
[Huawei-Vlanif1]ip address 192.168.1.10 255.255.255.0
[Huawei-Vlanif1]undo shutdown
4)SW1配置远程访问
<Huawei>system-view
[Huawei]user-interface vty 0 4(配置允许5个终端远程管理)
[Huawei-ui-vty0-4]set authentication password cipher 456(配置远程管理密码)
[Huawei-ui-vty0-4]user privilege level 3(设置管理员权限)
注:leverl 3表示管理级
5)SW2客户端远程登录被管理的交换机
<Huawei>telnet 192.168.1.100
Password:输入密码456
<Huawei>system-view
[Huawei]sysname S1
注:telnet远程管理协议,端口23
2.路由与配置
- 路由:数据从一个网络到另外一个网络之间转发数据包的过程称为路由
- 路由器:连接不同网络,实现不同网段之间的通信
- 路由表:路由器选择数据的传输路径的依据
- 路由器的工作原理
路由器接收数据包
检查数据中的目标IP
在路由表中查找与目标IP相匹配的路由条目
路由表中找到与目标IP相匹配的路由条目后,按照此条目所指的方向将数据转发出去
3.配置直连路由的通信
1)配置路由器接口IP
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.254 24
[R1-GigabitEthernet0/0/0]undo shutdown
[R1]interface GigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.2.254 24
[R1-GigabitEthernet0/0/1]undo shutdown
2)配置PC机IP与网关地址
配置PC1的IP 地址:192.168.1.1、网关:192.168.1.254
配置PC2的IP 地址:192.168.1.2、网关:192.168.1.254
配置PC3的IP 地址:192.168.2.1、网关:192.168.2.254
配置PC4的IP 地址:192.168.2.2、网关:192.168.2.254
3)测试连通性
PC1 ping 192.168.2.1
4)查看路由表
<R1>display ip routing-table