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

相关推荐
fei_sun3 小时前
开放最短路径优先OSPF----基于链路状态
网络
精明的身影4 小时前
网络计划WebApp求解:融合Python与AI决策的项目管理系统
网络·python·web app
Let's Chat Coding5 小时前
对称密钥认证:主机和设备共享同一把密钥
运维·服务器·网络
技术不好的崎鸣同学7 小时前
[极客大挑战 2019]EasySQL 思路及解法
网络·安全·web安全
Web极客码7 小时前
跨国网络抖动下的 AI 爬虫流调优:我如何用 Claude 打造“智能退避”资讯清洗管道
网络·人工智能·爬虫
念何架构之路8 小时前
moby-http-api-server
网络·网络协议·http
namexingyun8 小时前
Scaling Law bug实战启示:从“虚胖“到“精瘦“的算力效率革命
开发语言·网络·人工智能·bug·ai编程
阿拉斯攀登8 小时前
NAT 穿透详解:STUN / TURN / ICE
运维·服务器·网络·webrtc·nat
云栖梦泽在8 小时前
原生 IP、机房 IP、住宅 IP、广播 IP 有何不同?从网络身份到 ASN 识别的技术科普
网络·网络协议·tcp/ip·性能优化
AI创界者9 小时前
【实战演练】基于 Kali Linux 的自动化漏洞扫描与安全加固指南
网络·安全·web安全