H3C交换机普通配置

1、启用lldp
lldp enable    //开启邻居

stp enable //开启生成树

2、启用gvrp
gvrp    //开启同步vlan

3、创建vlan信息

例:vlan 2 3 4

4、配置交换机互联接口

interface GigabitEthernet1/0/1
description XXXX //描述
port link-type trunk // 启用trunk
port trunk permit vlan all //允许所有vlan
gvrp //启用gvrp

5、设置默认路由
ip route-static 0.0.0.0 0.0.0.0 1.1.1.1

6、配置ssh
1.使能 ssh 服务
ssh server enable
public-key local create rsa
The range of public key modulus is (512 ~ 2048).
If the key modulus is greater than 512, it will take a few minutes.
Press CTRL+C to abort.
Input the modulus length [default = 1024]: 回车
2.创建用户
local-user yourname //用户名
password cipher 123456 //密码
authorization-attribute level 3 //用户权限等级
service-type ssh telnet terminal //授权登陆类型
3.VTY 线下调用
user-interface aux 0 //console 线程
authentication-mode scheme //调用 3A 认证
user-interface vty 0 15 //远程登陆线程(有 63 线程的版本请输入 vty 0 63)
authentication-mode scheme //调用 3A 认证

 

posted @ 2022-10-21 16:20  昵称昵称昵称  阅读(571)  评论(0)    收藏  举报