配置h3c s5130-28s-si,绑定ip+mac

1.配置h3c s5130-28s-si管理界面
1.1.配置vlan1接口的ip地址为172.16.2.178,掩码255.255.255.0
system-view
interface vlan-interface 1
ip address 172.16.2.178 255.255.255.0
1.2.配置web用户名为admin,密码admin,服务类型为http,用户角色为network-admin
local-user admin
service-type http
authorization-attribute user-role network-admin
password simple admin
quit
1.3.配置开启http和https
ip http enable
ip https enable

2.配置登陆用户名密码,命令:
2.1无密码方式
system-view
interface vlan-interface 1
telnet server enable
line class vty
save

2.2.有密码方式
system-view
interface vlan-interface 1
telnet server enable
user-interface vty 0 4
authentication-mode scheme
quit
local-user telnet
password simple telnet
service-type telnet
authorization-attribute user-role level-15
quit

3.连接机器ip+mac绑定
system-view
进入交换机端口视图。
interface gigabitethernet 1/0/2
进入接口。
ip verify source ip-address mac-address
开启端口的绑定功能,缺省情况下,接口的IPv4接口绑定功能处于关闭状态。
undo ip verify source
取消ip verify
ip source binding ip-address 172.16.2.9 mac-address 00e0-4c36-01d0
绑定规则
undo ip source binding ip-address 192.168.0.3 mac-address 0001-0203-0405
取消规则
查看ip+mac绑定信息
dis ip source binding

4.查询当前接口下的arp列表
dis arp

5.退出操作
quit

6.保存配置
Save

猜你喜欢

转载自blog.csdn.net/himire/article/details/70799924