当前位置:文档之家› VLAN划分命令

VLAN划分命令

模式下运下以下命令
language-mode切换语言模式
reset saved-configuration清除flash内已有配置信息。

reboot重启

sy //进入全局模式

在[Quidway]模式下运行以下命令
vlan 100 //新建一个vlan 100
name office //给这个VLAN起名为office#
interface gi 0/1 //进入端口"1"为端口号,0为槽号
port acc vlan 100 //把这个端口设入VLAN 100中

display vlan 100 //查看vlan 100的详细配置
interface gi 0/1 //进入端口1
undo vlan 100 //把这个端口从VLAN 100中删除

vlan 100 //新建VLAN 100
port gi 0/1 to gi 0/24 //把从1-24端口全部加入到vlan 100里面去
undo port gi 0/1 to gi 0/24 //把从1-24端口全部从VLAN 100中删除
undo vlan 100 //删除vlan 100

设置交换机管理IP地址

interface vlan-interface 1

ip add 192.168.1.1 255.255.255.0

设置汇聚端口和镜像端口

sys

monitor-port g0/24设置汇聚端口

mirroring-port g0/1 inbound(此处可选inbound或outbound或者both或者to后面跟接口范围)设置镜像端口

sa保存配置

华为交换机设置用户密码

local-user admin //新建用户admin
service-type telnet //设置服务类型为telnet
password cipher 123456 //设置密码为123456

quit //退出

user-interface vty 0 4
authentication-mode password //利用用户终端接口的口令认证

或者
super password level 3 cipher 123456 //设置密文密码为123456

user-interface vty 0 4 //进入vty模式

set authentication password cipher 123456 //设置认证密文密码为123456

sa //保存

相关主题
文本预览
相关文档 最新文档