4etfeww 发表于 2014-9-18 08:56:01

华为S5700划分VLAN

<Huawei>system-view                         进入配置模式
Enter system view, return user view with Ctrl+Z.
sysname center_switch            更改交换机名
创建vlan
vlan 40                           
quit
给vlan配置IP地址            
interface Vlanif 40      
ip address 10.10.40.1 255.255.255.0
将某个端口加入到vlan中
interface port GigabitEthernet 0/0/24
port link-type access
port default vlan40

将交换机中一组端口加入到一个VLAN中
创建vlan
vlan 42
quit
给vlan 配置IP地址
interface Vlanif 42
ip add
ip address 10.10.42.1 255.255.255.0
创建端口组
port-group port1to8forvlan40
将相应的端口加入组中
port-group port1to8forvlan40]group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/8
设置端口方式
port link-type access
设置端口组默认vlan(即之前创建好的vlan ID 42)
port default vlan 42
display vlan
<center_switch>save

display version
显示VRP版本号
display current-configuration
显示系统运行配置信息
display saved-configuration
显示保存的配置信息
display interfaces brief
显示接口配置信息
display ip routing-table
显示路由表
display systname
命令用来显示路由器的名称

42ewe 发表于 2014-10-21 17:58:24

支持一下
页: [1]
查看完整版本: 华为S5700划分VLAN