乾颐堂 发表于 2023-9-14 17:26:13

HCIP Datacom必备实验:VLAN高级特性实验

https://editor-material.365editor.com/style/20230220167686474063f2ece47a929material.gif
一、VLAN聚合

https://editor-user.365editor.com/98/85/4933185/1694681705859226.png

1.SW1创建vlan 10 20 100

vlan b 10 20 100

2.PC1、PC2接口设置成access,加入对应的vlan10、20

int g0/0/1
p l a
int g0/0/2
p l a
p d vlan 20

3.将vlan100设置成Super-VLAN,vlan10、20设置成子sub vlan

vlan 100
aggregate-vlan   //创建聚合VLAN超级VLAN (能够为多个子VLAN服务)
access-vlan10 20

4.vlanif100设置IP使能Sub-VLAN间的Proxy ARP功能

int vlan 100
ip add 192.168.1.254 24   //VLANIF IP作为多个子vlan的网关
arp-proxyinter-sub-vlan-proxyen

5.验证PC1能ping同PC2

https://editor-user.365editor.com/98/85/4933185/1694681755960420.png

PC1 ping PC2时,

在g0/0/1抓包,目的MAC为代理vlanif100的mac地址

https://editor-user.365editor.com/98/85/4933185/1694681774747201.png
https://editor-user.365editor.com/98/85/4933185/1694681810652968.png

在g0/0/2接口抓包观察源MAC为代理vlanif100的mac地址

https://editor-user.365editor.com/98/85/4933185/1694681833111074.png

二、MUX VLAN聚合

https://editor-user.365editor.com/98/85/4933185/1694681851260693.png

1.SW1创建vlan 10 20 30 100

vlan b 10 20 30 100

2.所有接口设置为成access,加入相应的vlan

p l a
p d vlan 10
p l a
p d vlan 10
p l a
p d vlan 20
p l a
p a lan 20
p l a
p d vlan 30
p l a
p d vlan 30
p l a
p d vlan 100

3.MUX VLAN配置

vlan 100
mux-vlan   //设置VLAN100为主VLAN
subordinate group 10 20   //设置VLAN10, 20为互通型从VLAN
subordinate separate 30   //设置VLAN30为隔离型从VLAN
port mux-vlanenable   //(所有接口)开启MUX VLAN功能

4.验证配置display mux-vlanPrincipal Subordinate Type         Interface
100       -         principal    GigabitEthernet0/0/7
100       30          separate   GigabitEthernet0/0/6
100       10          group      GigabitEthernet0/0/1 GigabitEthernet0/0/2
100       20          group      GigabitEthernet0/0/3 GigabitEthernet0/0/4

PC1与PC2、服务器能互通

https://editor-user.365editor.com/98/85/4933185/1694681961945298.png

PC3与PC4、服务器能互通

https://editor-user.365editor.com/98/85/4933185/169468197957579.png

PC5、PC6只能与服务器互通

https://editor-user.365editor.com/98/85/4933185/1694681995582081.png

https://editor-material.365editor.com/style/20230220167686474063f2ece49a3d3material.gifhttps://editor-material.365editor.com/style/20230220167686474063f2ece4b7c43material.gif
页: [1]
查看完整版本: HCIP Datacom必备实验:VLAN高级特性实验