华为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测试全通

相关推荐
TechWayfarer3 分钟前
批量查IP归属地,在线API、脚本、离线库怎么选?三种方案实测对比
网络·python·网络协议·tcp/ip
ryan_9964 小时前
MCP Transport 完整指南:stdio 与 Streamable HTTP 到底怎样传消息
网络·网络协议·http
数据知道7 小时前
网络安全实战:子域名接管实战——从 CNAME 配置错误到完全控制
网络·安全·web安全·网络安全
lf13210277 小时前
用 JSON Schema 管装修节点记录:从照片台账到可校验工程数据
网络·数据库·人工智能·经验分享·物联网·json·智能家居
LayZhangStrive7 小时前
后端通识 - 远程服务调用RPC
网络·网络协议·rpc·sentinel·openfeign·远程服务调用
华清远见成都中心9 小时前
FreeRTOS事件组(Event Group)的工作机制分析
服务器·网络·网络协议
xiaoxiangsiyan9 小时前
RHCE2026云原生路线EX188和EX288完整备考指南
运维·网络·云原生·自动化
西安景驰电子9 小时前
《PTP精确时间协议系列》第二篇:工程部署、调试与性能优化
运维·服务器·网络·数据库·windows·性能优化
虹科网络安全10 小时前
KnowBe4 SAT 是什么?安全意识培训平台功能与应用详解
网络
艺杯羹11 小时前
古典密码学攻防演进全景:从凯撒移位、频率分析到一次一密与恩尼格玛机破译
网络·人工智能·安全·网络安全·密码学·密码安全