您当前的位置: >> 学习园地 >> 网络知识库

华为S5700-52C-SI交换机做IP-MAC绑定防ARP详细配置

交换机版本信息
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.130 (S5700 V200R003C00SPC300)
Copyright (C) 2000-2013 HUAWEI TECH CO., LTD
Quidway S5700-52C-SI Routing Switch uptime is 9 weeks, 5 days, 22 hours, 34 minutes

CX22EMGEC 0(Master) : uptime is 9 weeks, 5 days, 22 hours, 32 minutes
256M bytes DDR Memory
32M bytes FLASH
Pcb      Version :  VER C
Basic  BOOTROM  Version :  221 Compiled at Jun 24 2013, 17:56:55
CPLD   Version : 6
Software Version : VRP (R) Software, Version 5.130 (V200R003C00SPC300)
FANCARD I information
Pcb      Version : FAN VER B
PWRCARD II information
Pcb      Version : PWR VER B

配置过程

1、交换机配IP(全局,中扩号模式sys)
interface Vlanif1
 ip address 10.100.2.3 255.255.255.0
quit

2、交换机配网关(全局,中扩号模式)
ip route-static 0.0.0.0 0.0.0.0 10.100.2.254

3、配远程密码(全局,中扩号模式)
user-interface vty 0 4
 authentication-mode password
 user privilege level 3
 set authentication password cipher *****

4、配置用户静态ip-mac绑定(全局,中扩号模式)
user-bind static ip-address 10.0.3.141 mac-address 50e5-49ef-2d85 vlan 1

5、接口开启检查ip-mac地址绑定功能全局中扩号模式)
interface GigabitEthernet0/0/2
 ip source check user-bind enable

6、保存(特权,大于号模式)
quit
quit
save