交换机基本原理与配置

it2024-10-25  45

目录

交换机基本原理注意:交换机默认MAC地址表刷新周期300秒交换机以太网接口速率eSPN基本命令

交换机基本原理

注意:交换机默认MAC地址表刷新周期300秒

2、以太网帧格式

3、交换机转发原理

4、交换机以太网接口的工作模式

单工:两个数据站之间只能沿单一方向传输

半双工:两个数据站之间可以双向数据传输,但不能同时进行

全双工:两个数据站之间可以双向且同时进行数据传输

交换机以太网接口速率

接口连接时进行协商

协商失败则无法正常通信

eSPN基本命令

用户视图模式切换至系统视图模式【Huawei】

system-view

1、历史命令查询

【Huawei】display history-command

2、配置主机名

system-view

[Huawei] sysname Routerl

3、状态信息查询

display version ###查看VRP版本

display users ###查看用户终端信息

4、进入接口模式并查看信息

sys

[Huawei]int g/0/0/0

[Huawei-GigabitEthernet0/0/0]dis this ####查看当前视图下的配置信息

5、配置文件管理命令

[Huawei]display saved-configuration #####查看设备保存的信息

[Huawei]display current-configuration ###查看设备当前配置的信息

reset save-configuration ###擦除存储设备中的配置文件

compare configuration ###比较当前配置信息与存储设备中的保存文件是否一致

6、关闭华为的信息提示中心

[Huawei]undo info-center enable

或者

undo terminal monitor

7、永不超时

[Huawei]user-interface console 0

[Huawei-ui-console0]idle-timeout 0 0

8、配置双工及速率命令

sys

[Huawei]int g0/0/1

[SW1-Ethernet0/0/1]undo negotiation auto ###关闭自动协商

[SW1-Ethernet0/0/1]speed 100 ###调至速率100M

[SW1-Ethernet0/0/1]duplex full ###调至全双工模式

解释:full :Full-Duplex(全双工模式) half:Half-Duplex(半双工模式)

9、保存被指

save

10、设置远程登陆密码

[Huawei]user-interface vty 0 4

#0是初始值,4是结束之。表示可同时打开5个会话进入进入交换机去配置命令

[Huawei-ui-vty0-4]authentication-mode passwprd

[Huawei-ui-vty0-4]set authentication password simple 222

[Huawei-ui-vty0-4]user privilege level 3

[Huawei-ui-vty0-4]dis this

i-vty0-4]set authentication password simple 222

[Huawei-ui-vty0-4]user privilege level 3

[Huawei-ui-vty0-4]dis this

最新回复(0)