一、设备创建和网卡桥接
- NIC:ip为192.168.56.1/24 设备用户名admin密码123
二、配置管理 ip地址
<H3C>system-view #进入系统视图
[H3C]interface Vlan-interface 1 #创建Vlan1管理接口
[H3C-Vlan-interface1]ip address 192.168.56.5 24 #配置管理ip地址
[H3C-Vlan-interface1]display this #查看当前配置
#
interface Vlan-interface1
ip address 192.168.56.5 255.255.255.0
[H3C-Vlan-interface1]display interface Vlan-interface brief #查看端口信息
Brief information on interfaces in route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Primary IP Description
Vlan1 UP UP 192.168.56.5
三、配置telnet ssh https 远程连接服务
①、视图与用户配置
[H3C]user-interface vty 0 4 #进入vty用户接口配置视图
[H3C-line-vty0-4]authentication-mode scheme #配置登录用户的认证方式为AAA认证
[H3C-line-vty0-4]protocol inbound ? #允许远程用户登录协议
all All protocols
ssh SSH protocol
telnet Telnet protocol
[H3C-line-vty0-4]protocol inbound all
[H3C-line-vty0-4]user-role network-admin #配置用户角色权限级别
[H3C-line-vty0-4]user-role level-15 # 配置用户界面角色级别
[H3C-line-vty0-4]quit
[H3C]local-user admin # 进入本地用户配置界面
[H3C-luser-manage-admin]password simple 123 # 配置用户密码
[H3C-luser-manage-admin]service-type ? #本地用户登录服务类型
ftp FTP service
http HTTP service type
https HTTPS service type
pad X.25 PAD service
ssh Secure Shell service
telnet Telnet service
terminal Terminal access service
[H3C-luser-manage-admin]service-type telnet ssh https
[H3C-luser-manage-admin]authorization-attribute user-role network-admin
[H3C-luser-manage-admin]authorization-attribute user-role level-15 #配置用户角色级别
[H3C-luser-manage-admin]quit
②、开启服务
[H3C]telnet server enable # 开启telnet服务
[H3C]ip https enable # 开启https服务
#开启ssh服务前生成本地密钥对
[H3C]public-key local create dsa # 生成本地用户DSA
[H3C]public-key local create rsa # 生成本地用户RSA
[H3C]ssh server enable # 开启ssh服务
③、测试远程连接
登录成功!!!end