1、进入系统视图
<H3C>sys
2、创建本地用户admin,并设置登录密码为admin,服务类型为http跟https,用户级别为network-admin
[H3C] local-user admin [H3C-luser-manage-admin] password simple admin [H3C-luser-manage-admin] service-type http https [H3C-luser-manage-admin] authorization-attribute user-role network-admin [H3C-luser-manage-admin] quit
3、配置交换机的管理地址:
<H3C>sys [H3C] interface vlan-interface 1 [H3C -VLAN-interface1] ip address 192.168.0.233 255.255.255.0 [H3C -VLAN-interface1] quit
4、开启http跟https服务
[H3C]ip http enable [H3C]ip https enable
5、保存配置
[H3C]save
The current configuration will be written to the device. Are you sure? [Y/N]:y Please input the file name(*.cfg)[flash:/backup.cfg] (To leave the existing filename unchanged, press the enter key): flash:/backup.cfg exists, overwrite? [Y/N]:y
6、端口配置
一个端口下的端口类型只能有一个,也就是说port link-type 【access|hybrid】二选一,access模式下不能敲hybrid的命令,反之亦然
正确的配置如下:(以下三选一,对端的配置要匹配才行)
trunk模式----
interface Ethernet1/0/1 port link-type trunk port trunk permit vlan 1 5 1000 port trunk pvid vlan 1000
hybrid模式---- (Hybrid是华为、H3C交换机的一种端口模式,这个接口也能够允许多个VLAN帧通过并且还可以指定哪些VLAN数据帧被剥离标签,主要实现高隔离度的波分和复用。)
interface Ethernet1/0/1 port link-type hybrid port hybrid valn 10 tagged port hybrid pvid vlan 20
acccess模式----(一般为终端用户接入端口)
interface Ethernet1/0/1 port link-type access port access vlan 20
http://www.savh.cn/thread-348.htm
转载请注明:Savh.Cn 发表