华为S5700 vlan 简单配置练习1

sys                         进入配置模式

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname center_switch            更改交换机名

创建vlan

[center_switch]vlan 40                           

[center_switch-vlan40]q

给vlan配置IP地址           

[center_switch]interface Vlanif 40       

[center_switch-Vlanif40]ip address 192.168.0.254 255.255.255.0

将某个端口加入到vlan中

[center_switch] int g0/0/1

[center_switch-GigabitEthernet0/0/1]port link-type access

[center_switch-GigabitEthernet0/0/24]port default vlan 40

-----------------------------------------------------------------------------

//删除某个vlan

[center_switch]undo vlan 40
Error: The VLAN has a L3 interface. Please delete it first.
[center_switch]undo int vlan 40

//......ok

[center_switch]undo vlan 40

//.....ok

//删除后需重启交换机

//使用组给一段端口配置vlan

[Huawei]sys

[Huawei]vlan 1001

[Huawei-vlan1001]q

[Huawei]interface Vlanif 1001

[Huawei-Vlanif1001]ip address 192.168.0.1 255.255.255.0

[Huawei-Vlanif1001]q

[Huawei]port-group group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/3

[Huawei-port-group]port default vlan 1001

//ok

 

 

你可能感兴趣的:(计算机网络)