华为交换机的配置——S2700
<Quidway>system-view //进入配置模式
[Quidway]sysname B1 //给交换机命名为B1
[B1]http server load flash:/S2700?.... zip //加载WEB管理程序
[B1]http server enable //开启WEB管理功能
[B1]user-interface console 0 //进入console 0端口的配置
[B1-ui-con0]authentication-mode password //启用密码认证
[B1-ui-con0]set authentication password cipher qqgroup //设置密文密码[B1-ui-con0]user privilege level 3 //安全级别为3
[B1-ui-con0]quit //退出
[B1]user-interface vty 0 4 //进入VTY配置
[B1-ui-vty0-4]authentication-mode password
[B1-ui-vty0-4]set authentication password cipher qq
[B1-ui-vty0-4]user privilege level 3
[B1-ui-vty0-4]quit
[B1]vlan 10 //创建VLAN 10
[B1-vlan10]interface Ethernet 0/0/1 //进入交换机的端口
[B1-ethernet 0/0/1]port link-type access //设置端口模式为接入模式[B1-ethernet 0/0/1]port default vlan 10 //把该端口加入VLAN10 [B1-ethernet 0/0/1]interface Ethernet 0/0/24
[B1-ethernet 0/0/24]port link-type trunk //设置端口模式为TRUNK [B1-ethernet 0/0/24]port trunk permit vlan 10 //设置TRUNK允许通过
的VLAN
[B1-ethernet 0/0/24]quit
[B1]interface vlan 10 //进入VLAN接口
[B1]ip add 192.168.10.1 24 //给VLAN配置管理地址。
[B1]quit
<B1>save //保存。