Skip to content

VLAN 10 ------创建VLAN 10

VLAN batch 20 30 -------创建不连续VLAN

interface Ethernet 0/0/1 -------进入端口e0/0/1

port link-type access -------接口模式改为access接入模式

port default vlan 10 -------配置端口为VLAN10

quit -----退出

interface Ethernet 0/0/2 -------进入端口e0/0/1 port link-type trunk -------接口模式改为trunk桥接模式

port trunk allow-pass vlan 10 20 ------干到允许通过的vlan有 VLAN10和VLAN20

还有个MSTP的没写,有点迷惑,有空再说 1.portswitch 可以将三层接口转换为二层接口,就可以在端口配置IP

2.默认路由0.0.0.0 0全0优先级最低

3.tracert 路由追踪

4.system-view 进入全局配置模式,可缩写为sys

5.display mac-address 查看mac地址

6.full full-duplex mode 全双工模式 half half-duples mode 半双工模式

7.aging-time 老化时间 display cu 查看全局配置

8.undo info-center enable 关闭提示 可简写为 un in en

9.undo ne au 关闭协商模式

10.display this 查看当前位置配置

11.undo 后接已配置命令 可删除此配置命令

12.speed 100 端口速率设置为100Mbit/s