华为S5700交流机vlan装备指令
华为S5700交流机vlan装备指令
<Huawei>system-view 进入装备办法
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname center_switch 更改交流机名
创立vlan
[center_switch]vlan 40
[center_switch-vlan40]quit
给vlan装备IP地址
[center_switch]interface Vlanif 40
[center_switch-Vlanif40]ip address 10.10.40.1 255.255.255.0
将某个端口参加到vlan中
[center_switch] interface port GigabitEthernet 0/0/24
[center_switch-GigabitEthernet0/0/24]port link-type access
[center_switch-GigabitEthernet0/0/24]port default vlan40
将交流机中一组端口参加到一个VLAN中
创立vlan
[center_switch]vlan 42
[center_switch-vlan42]quit
给vlan 装备IP地址
[center_switch]interface Vlanif 42
[center_switch-Vlanif42]ip add
[center_switch-Vlanif42]ip address 10.10.42.1 255.255.255.0
创立端口组
[center_switch]port-group port1to8forvlan40
将相应的端口参加组中
[center_switch]port-group port1to8forvlan40]group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/8
设置端口办法
[center_switch-port-group-port1to8forvlan42]port link-type access
设置端口组默许vlan(即之前创立好的vlan ID 42)
[center_switch-port-group-port1to8forvlan42]port default vlan 42
[center_switch]display vlan
<center_switch>save
[Quidway] display version
闪现VRP版别号
[Quidway] display current-configuration
闪现体系工作装备信息
[Quidway] display saved-configuration
闪现保留的装备信息
[Quidway] display interfaces brief
闪现接口装备信息
[Quidway]display ip routing-table
闪现路由表
[Quidway]display systname
指令用来闪现路由器的称谓
上一篇:华为机顶盒设置事务帐号暗码是多少
下一篇:生成树协议算法进程