一、交换机的工作原理
1、基于源Mac地址的学习
2、基于已知目标Mac地址的转发
3、当目标Mac地址未知时,泛洪处理
4、交换机收到广播,组播帧时,无条件泛洪处理
5、交换机一个接收可以学习多个Mac地址
6、交换机学习同一个Mac地址,但是从不同端口学习到的,此时将Mac与后学习到的端口绑定起来
二、交换机以太网口的工作模式 :单工‘、半双工、全双工
三、华为模拟器ensp关于交换机常用的命令
用户视图 >system-view #仅仅能查看和调试用如ping telnet
系统视图 [ ] 配置、查看
一级退出 quit
完全退出 return
重命名 [ ] sysname R1 #如重命名为R1
设置永不超时 user-interface console 0
idle-timeout 0 0
关闭弹出信息 <> undo terminal monitor
启始文件 saved-configuration
当前配置文件 current-configuration
查看 display
保存 save
擦除起始文件 reset saved-config (用户视图下)
开启接口 undo shutdown
四、ensp实验用crt连接交换机
1、熟悉上面的常用的命令
配置云的方法,如下添加两个网卡
· 2、配置好,后连接交换机,然后就能实现启动了如下,框选后启动
3、常用命令学习
The device is running!
<Huawei>
<Huawei>undo ter
<Huawei>undo terminal mo
<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>sy
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname SW1
[SW1]user-in
[SW1]user-interface cons
[SW1]user-interface console 0
[SW1-ui-console0]idle
[SW1-ui-console0]idle-timeout 0 0
[SW1-ui-console0]q
[SW1]disp
[SW1]display cur
[SW1]display current-configuration
#
sysname SW1
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http
#
interface Vlanif1
#
interface MEth0/0/1
[SW1]disa
[SW1]disa
[SW1]disp
[SW1]display save
[SW1]display saved-configuration
[SW1]qu
[SW1]quit
<SW1>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<SW1>reset
<SW1>reset sav
<SW1>reset saved-configuration
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:n
<SW1>sy
<SW1>system-view
Enter system view, return user view with Ctrl+Z.
[SW1]int e0/0/1
[SW1-Ethernet0/0/1]ip add 192.168.2.66 24
^
Error: Unrecognized command found at '^' position.
[SW1-Ethernet0/0/1]q
[SW1]int vlanif 1
[SW1-Vlanif1]ip add 192.168.1.66 24
[SW1-Vlanif1]undo shutdown
Info: Interface Vlanif1 is not shutdown.
[SW1-Vlanif1]dis this
#
interface Vlanif1
ip address 192.168.1.66 255.255.255.0
#
return
[SW1-Vlanif1]q
[SW1]user-in
[SW1]user-interface vty 0 4
[SW1-ui-vty0-4]aut
[SW1-ui-vty0-4]authentication-mode pass
[SW1-ui-vty0-4]authentication-mode password ?
<cr>
[SW1-ui-vty0-4]authentication-mode password set au
[SW1-ui-vty0-4]authentication-mode password set auth
[SW1-ui-vty0-4]set authentication-mode password ?
^
Error: Unrecognized command found at '^' position.
[SW1-ui-vty0-4]set auth
[SW1-ui-vty0-4]set authentication passw
[SW1-ui-vty0-4]set authentication password sim
[SW1-ui-vty0-4]set authentication password ?
cipher Set the password with cipher text
simple Set the password in plain text
[SW1-ui-vty0-4]set authentication password sim
[SW1-ui-vty0-4]set authentication password simple huawei
[SW1-ui-vty0-4]user pri
[SW1-ui-vty0-4]user privilege lev
[SW1-ui-vty0-4]user privilege level 3
4、用telnet连接网络地址
上面用telnet连接有点问题先不管的
五、实现了用密码telnetWS1交换机
如图ws1配置不变 配置ws2的配置上图