华为supervlan+sub address组网模拟与sub vlan互通方法

一 组网说明

Supervlan100,里面有多个sub地址段

二 设备配置

2.1 HX配置

sysname HX

vlan batch 10 20 30 40 100 1000

vlan 10

description subvlan

vlan 20

description subvlan

vlan 30

description subvlan

vlan 40

description subvlan

vlan 100

description supervlan

aggregate-vlan

access-vlan 10 20 30 40

vlan 1000

description TO-R

interface Vlanif100

description supervlan

ipaddress 192.168.4.1 255.255.255.0

ipaddress 192.168.5.1 255.255.255.0 sub

ipaddress 192.168.6.1 255.255.255.0 sub

interface Vlanif1000

description TO-R

ipaddress 1.1.1.1 255.255.255.0

interface GigabitEthernet0/0/1

portlink-type trunk

porttrunk allow-pass vlan 10 20 30 40

interface GigabitEthernet0/0/2

portlink-type access

portdefault vlan 1000

interface LoopBack0

ipaddress 8.8.8.8 255.255.255.255

ip route-static 8.8.8.8 255.255.255.2551.1.1.2

2.2 HJ配置

sysname HJ

vlan batch 10 20 30 40

vlan 10

description subvlan

vlan 20

description subvlan

vlan 30

description subvlan

vlan 40

description subvlan

interface GigabitEthernet0/0/1

portlink-type trunk

porttrunk allow-pass vlan 10 20 30 40

interface GigabitEthernet0/0/2

portlink-type trunk

porttrunk allow-pass vlan 10

interface GigabitEthernet0/0/3

portlink-type trunk

porttrunk allow-pass vlan 20

interface GigabitEthernet0/0/4

portlink-type trunk

porttrunk allow-pass vlan 30

interface GigabitEthernet0/0/5

portlink-type trunk

porttrunk allow-pass vlan 40

2.3 JR01-4段配置

sysname JR01-4

vlan batch 10

interface GigabitEthernet0/0/1

portlink-type trunk

porttrunk allow-pass vlan 10

interface GigabitEthernet0/0/2

portlink-type access

portdefault vlan 10

2.4 JR02-4段配置

sysname JR01-4

vlan batch 20

interface GigabitEthernet0/0/1

portlink-type trunk

porttrunk allow-pass vlan 20

interface GigabitEthernet0/0/2

portlink-type access

portdefault vlan 20

2.5 JR03-5段配置

sysname JR01-4

vlan batch 30

interface GigabitEthernet0/0/1

portlink-type trunk

porttrunk allow-pass vlan 30

interface GigabitEthernet0/0/2

portlink-type access

portdefault vlan 30

2.6 JR04-6段配置

sysname JR01-4

vlan batch 40

interface GigabitEthernet0/0/1

portlink-type trunk

porttrunk allow-pass vlan 40

interface GigabitEthernet0/0/2

portlink-type access

portdefault vlan 40

2.6 R配置

sysname R

vlan batch 1000

interface Vlanif1000

ipaddress 1.1.1.2 255.255.255.0

interface GigabitEthernet0/0/1

portlink-type access

portdefault vlan 1000

ip route-static 192.168.0.0 255.255.0.01.1.1.1

三 业务测试

3.1 PC1测试

Subvlan的相同网段地址不通

3.2 PC2测试

类似PC1

3.2 PC3测试

类似PC1

3.4 PC4测试

类似PC1

四 supervlan虚接口下配置arp代理

4.1 supervlan虚接口下配置

HX-Vlanif100arp-proxy ?

enable Enable proxyARP(Address Resolve Protocol)

inner-sub-vlan-proxy Proxy ARPwithin a VLAN

inter-sub-vlan-proxy Proxy ARPbetween VLANs

HX-Vlanif100arp-proxy

最终配置

interface Vlanif100

description supervlan

ipaddress 192.168.4.1 255.255.255.0

ipaddress 192.168.5.1 255.255.255.0 sub

ipaddress 192.168.6.1 255.255.255.0 sub

arp-proxy inter-sub-vlan-proxy enable //不同vlan之间的相同网段地址

4.2 PC1测试全通

相关推荐
啊阿狸不会拉杆8 小时前
《计算机网络-自顶向下方法》5.4 ISP之间的路由选择:BGP 读书笔记
网络·计算机网络·接口隔离原则
Delite80210 小时前
摆脱实验室束缚:便携式卡尔费休微量水分检测技术与现场应用解析
大数据·网络·人工智能
ACP广源盛1392462567310 小时前
M6/M5 Pro Mac mini 端侧 AI 落地@ACP#YLB3116 中端多盘存储扩展在 AI 服务中的机会与应用场景
大数据·网络·数据库·人工智能·嵌入式硬件·macos
ACP广源盛1392462567310 小时前
M6/M5 Pro Mac mini 端侧 AI 新形态@ACP#GSV5800 Serdes 长距离视频传输在 AI 服务中的机会与落地场景
大数据·网络·数据库·人工智能·嵌入式硬件·macos·音视频
我爱cope11 小时前
【计算机网络 | 传输层3:TCP 协议概述:面向连接、可靠传输到底意味着什么?】
网络·网络协议·学习·tcp/ip·计算机网络·传输层
OIDCAT12 小时前
国产USB转千兆网卡芯片CH398-RTL8153国产替代实测与选型
网络·嵌入式硬件·智能硬件·国产芯片·usb转千兆网卡
M--Y14 小时前
Docker数据持久化与网络架构
网络·docker·架构
myy-learn15 小时前
30-HTTP协议
网络·网络协议·http
开开心心就好15 小时前
免费刷题软件推荐,支持导入题库自动判题
网络·网络协议·tcp/ip·jupyter·智能手机·电脑·idea