配置路由式Proxy ARP示例
配置路由式Proxy ARP示例
组网需求
如图1所示,Switch的两个以太网接口10GE1/0/1和10GE1/0/2分别连接两个局域网,两个局域网的网段均为172.16.0.0/16。两台服务器ServerA和ServerB没有配置默认网关,要求在Switch上配置路由式Proxy ARP,使分处在两个局域网的服务器能互通。
操作步骤
- 创建VLAN2,并将10GE1/0/2加入到VLAN中
<HUAWEI> system-view [~HUAWEI] sysname Switch [*HUAWEI] commit [~Switch] vlan 2 [*Switch-vlan2] quit [*Switch] interface 10ge 1/0/2 [*Switch-10GE1/0/2] port default vlan 2 [*Switch-10GE1/0/2] quit [*Switch] commit
- 创建并配置接口VLANIF2
[~Switch] interface vlanif 2 [*Switch-Vlanif2] ip address 172.16.1.1 255.255.255.0
- 在VLANIF2上使能路由式Proxy ARP功能
[*Switch-Vlanif2] arp proxy enable [*Switch-Vlanif2] quit [*Switch] commit
- 创建VLAN3,并将10GE1/0/1加入到VLAN中
[~Switch] vlan batch 3 [*Switch] interface 10ge 1/0/1 [*Switch-10GE1/0/1] port default vlan 3 [*Switch-10GE1/0/1] quit [*Switch] commit
- 创建并配置接口VLANIF3
[~Switch] interface vlanif 3 [*Switch-Vlanif3] ip address 172.16.2.1 255.255.255.0
- 在VLANIF3上使能路由式Proxy ARP功能
[*Switch-Vlanif3] arp proxy enable [*Switch-Vlanif3] quit [*Switch] commit
- 配置服务器
# 配置ServerA的IP地址为172.16.1.2/16。
# 配置ServerB的IP地址为172.16.2.2/16。
- 验证配置结果
# 服务器ServerA上ping服务器ServerB,可以ping通。
阅读剩余
版权声明:
作者:SE_YT
链接:https://www.cnesa.cn/6325.html
文章版权归作者所有,未经允许请勿转载。
THE END