网管交换机H3C S5130-28S-SI 如何设置IP地址啊,请教各位专家。设置IP地址后,账号和密码是什么。
(0)
最佳答案
设置ip地址可以对应的接口放通vlan,然后该Int vlan即可配置ip地址,设置用户密码可以通过创建local user来弄,具体可以看看如下配置指导,里边常用的配置都有。
(0)
1、设置IP地址。参考下:
interface vlan-interface 对应vlan
ip address 地址 掩码 。
2、开启HTTP HTTPS功能
[H3C]ip http enable
[H3C]ip https enable
3、创建用户名、密码,并赋予HTTP HTTPS的权限
[H3C]local-user admin
New local user added.
[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
2.1 配置步骤
# 进入系统视图,并开启Telnet服务,默认开启。
<H3C> system-view
[H3C]telnet server enable
# 创建本地账号abc,密码为123456,权限级别为network-admin。//如果现场同一个本地用户既需要通过ssh登录,又需要console登录,则服务器类型需要添加 terminal
[H3C] local-user abc
[H3C-luser-abc] password simple 123456
[H3C-luser-abc] service-type telnet terminal
[H3C-luser-abc] authorization-attribute user-role network-admin
[H3C-luser-abc] quit
# 配置VTY接口认证模式为scheme模式(用户名+密码认证)。用于ssh登录
[H3C] line vty 0 4
[H3C-ui-vty0-4] authentication-mode scheme //另两种认证模式为None(无密码)和Password(单密码)
[H3C-ui-vty0-4] quit
(1)
暂无评论
配置地址:
interface Vlan-interface 1
ip add 1.1.1.1 24
账号/密码需要自行配置,可参考如下:
console口设置密码:
[H3C]line aux 0
[H3C-line-aux0]dis th
#
line aux 0
authentication-mode scheme
user-role network-admin
#
创建用户,设置密码、权限、协议类型:(undo authorization-attribute user-role network- operator删除默认权限)
[H3C]local-user console
[H3C-luser-manage-console]dis th
#
local-user console class manage
password simple qwe123
service-type terminal
authorization-attribute user-role network-admin
#
telnet登陆配置:
[H3C]user-interface vty 0 63
[H3C-line-vty0-63]dis th
#
line vty 0 63
authentication-mode scheme
user-role network-admin
#
创建用户,设置密码、权限、协议类型:(undo authorization-attribute user-role network- operator删除默认权限)
[H3C-luser-manage-telnet]dis th
local-user telnet class manage
authorization-attribute user-role network-admin
[H3C]telnet server enable #使能telnet服务
SSH登陆配置:
#生成RSA密钥对
[H3C]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]:
Generating Keys...
.设置验证方式以及协议类型:
[H3C]line vty 0 63
[H3C-line-vty0-63]dis th
#
line vty 0 63
authentication-mode scheme
user-role network-admin
protocol inbound ssh
#
创建用户,设置密码、权限、协议类型:(undo authorization-attribute user-role network- operator删除默认权限)
[H3C]local-user ssh
[H3C-luser-manage-ssh]dis th
#
local-user ssh class manage
password simple qwe123
service-type ssh
authorization-attribute user-role network-admin
#
[H3C]ssh server enable #使能ssh服务
WEB登陆配置:
[H3C]local-user http
[H3C-luser-manage-http]dis th
#
local-user http class manage
password simple qwe123
service-type http https
authorization-attribute user-role network-admin
#
[H3C]ip http enable #使能http服务
[H3C]ip https enable #使能https服务
(1)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论