目录
拓扑图:
本地网卡配置:
添加默认网卡:
添加本地网卡:
最终配置;
web端连接渠道配置:
防火墙登录(初始):admin / Admin@123
首次登录需要修改账户密码。
[USG6000V1]int g0/0/0
[USG6000V1-GigabitEthernet0/0/0]display this
#
interface GigabitEthernet0/0/0
undo shutdown
ip binding vpn-instance default
ip address 192.168.0.1 255.255.255.0
alias GE0/METH
#
return
//查询当前端口ip地址,管理口默认192.168.0.1/24
[USG6000V1-GigabitEthernet0/0/0]service-manage all permit
*对此端口开通所有权限
[USG6000V1-GigabitEthernet0/0/0]display this
#
interface GigabitEthernet0/0/0
undo shutdown
ip binding vpn-instance default
ip address 192.168.0.1 255.255.255.0
alias GE0/METH
service-manage http permit
service-manage https permit
service-manage ping permit
service-manage ssh permit
service-manage snmp permit
service-manage telnet permit
#
return
(*端口权限已全部开启)
[USG6000V1-GigabitEthernet0/0/0]display web-manager configuration
Httpd server is enable.
Httpd security server is enable.
HTTP port is 80.
HTTPS port is 8443.
rootdir is CFCARD:/web/.
default file name is /default.html.
Httpd ssl-renegotiation is disable
(*web服务信息确认)
web管理页面前端登录:
*配置后仍然无法ping通或无法访问web,请综合参考:
SSH会话连接渠道:
[USG6000V1-GigabitEthernet0/0/0]service-manage ssh permit
*开启端口SSH权限
[USG6000V1-GigabitEthernet0/0/0]display this
#
interface GigabitEthernet0/0/0
undo shutdown
ip binding vpn-instance default
ip address 192.168.0.1 255.255.255.0
alias GE0/METH
service-manage http permit
service-manage https permit
service-manage ping permit
service-manage ssh permit
service-manage snmp permit
service-manage telnet permit
#
return
[USG6000V1]ssh user lujiazui *创建ssh用户lujiazui
[USG6000V1]ssh user lujiazui service-type stelnet *配置服务类型
[USG6000V1]ssh user lujiazui authentication-type password *配置此用户认证方式
[USG6000V1]user-interface vty 0 4 *虚拟用户接口
[USG6000V1-ui-vty0-4]authentication-mode aaa
Warning: The level of the user-interface(s) will be the default level of AAA use
rs, please check whether it is correct.
[USG6000V1-ui-vty0-4]protocol inbound ssh
(命令protocol inbound { all | ssh | telnet }用来配置允许登录接入用户类型的协议。protocol inbound telnet为默认配置;如配置为protocol inbound ssh时,telnet将无法登录;如果配置为protocol inbound all,则都可以登录。)
[USG6000V1-ui-vty0-4]quit
[USG6000V1]aaa
[USG6000V1-aaa]manager-user lujiazui
*进入用户试图
[USG6000V1-aaa-manager-user-lujiazui]password cipher [密码]
Info: You are advised to config on man-machine mode.
*提示建议使用man-machine模式设置密码
[USG6000V1-aaa-manager-user-lujiazui]service-type ssh
*指定服务类型为ssh
[USG6000V1-aaa-manager-user-lujiazui]level 3
*权限等级为3
[USG6000V1-aaa-manager-user-lujiazui]q
[USG6000V1-aaa]q
[USG6000V1]stelnet server enable
*开启SSH服务
使用SSH连接。
telnet会话连接渠道
[USG6000V1]telnet server enable *开启telnet服务
[USG6000V1]aaa
[USG6000V1-aaa]manager-user [用户名] *创建管理员用户
[USG6000V1-aaa-manager-user-pudong]password cipher [登录密码]
[USG6000V1-aaa-manager-user-pudong]service-type telnet *配置服务类型
[USG6000V1-aaa-manager-user-pudong]level 3 *配置用户等级
[USG6000V1-aaa-manager-user-pudong]q
[USG6000V1-aaa]q
[USG6000V1]user-interface vty 0 4 *vty界面
[USG6000V1-ui-vty0-4]authentication-mode aaa *认证模式
[USG6000V1-ui-vty0-4]protocol inbound telnet *允许接入telbet协议
本地console仅密码登录渠道
选择串口连接
PC处连接:
[USG6000V1]user-interface console 0 *进入用户接口;0是console口位置
[USG6000V1-ui-console0]authentication-mode password *配置模式为密码认证
//一定要先配置密码认证模式才能设置密码,否则会报错。
[USG6000V1-ui-console0]set authentication password cipher huawei123 *配置密码
[USG6000V1-ui-console0]user privilege level 3 *配置用户权限
[USG6000V1-ui-console0]dis this *展示详细信息
#
user-interface con 0
authentication-mode password
user privilege level 3
set authentication password cipher $1c$ZfRG="#PNL$*zID2R{Mu:R'GXRs,'RB/.bj.;h_k
:,/:w*g6CD+$
user-interface vty 0 4
authentication-mode aaa
protocol inbound ssh
user-interface vty 16 20
#
return
重启防火墙,使用PC2串口连接生效: