VLAN综合练习

Posted 大大大S

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VLAN综合练习相关的知识,希望对你有一定的参考价值。

VLAN综合练习

  • 实验拓扑图
    在这里插入图片描述
  • 实验要求
    1.如图所示,在左侧S2交换机上完成聚合VLAN 88的配置。
    2.如图所示,在右侧S3交换机上完成聚合VLAN 99的配置。
    3.在S1、S2、S3交换机上配置VLAN 100和VLAN 200的相关内容。
    4.在S1、S2、S3交换机上配置配置RIP V2版本路由协议,使得全网通信。

提示:借助VLAN 100完成S2和S1的通信,VLAN200完成S1和S3的通信。

  • 配置
    交换机S2:
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable 
Info: Information center is disabled.
<Huawei>system-view 
[Huawei]vlan batch 10 20 100
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]port link-type access 
[Huawei-Ethernet0/0/1]port default vlan 10
[Huawei-Ethernet0/0/1]int e0/0/2
[Huawei-Ethernet0/0/2]port link-type access 
[Huawei-Ethernet0/0/2]port default vlan 10
[Huawei-Ethernet0/0/2]int e0/0/3
[Huawei-Ethernet0/0/3]port link-type access 
[Huawei-Ethernet0/0/3]port default vlan 20
[Huawei-Ethernet0/0/4]port link-type access 
[Huawei-Ethernet0/0/4]port default vlan 20
[Huawei-Ethernet0/0/4]int e0/0/5
[Huawei-Ethernet0/0/5]port link-type access 
[Huawei-Ethernet0/0/5]port default vlan 100
[Huawei-Ethernet0/0/5]quit 

创建Super-VLAN88,并将VLAN10 20指定为VLAN88的Sub-VLAN

[Huawei]vlan 88
[Huawei-vlan88]aggregate-vlan  #将VLAN88设置为Super-VLAN
[Huawei-vlan88]access-vlan 10 20
[Huawei-vlan88]quit 

配置Super-VLAN的VLANIF

[Huawei]interface Vlanif 88
[Huawei-Vlanif88]ip address 192.168.1.99 24
[Huawei-Vlanif88]arp-proxy inter-sub-vlan-proxy enable  //sub-vlan之间通信
[Huawei-Vlanif88]quit 

[Huawei]interface Vlanif 100
[Huawei-Vlanif100]ip address 1.1.1.1 24
[Huawei-Vlanif100]quit 

配置RIP V2版本路由协议

[Huawei]rip
[Huawei-rip-1]version 2
[Huawei-rip-1]network 192.168.1.0
[Huawei-rip-1]network 1.0.0.0
[Huawei-rip-1]quit 
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Save the configuration successfully.

交换机S3:

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable 
Info: Information center is ditabled.
<Huawei>system-view 
[Huawei]vlan batch 30 40 200
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]port link-type access 
[Huawei-Ethernet0/0/1]port default vlan 30
[Huawei-Ethernet0/0/1]int e0/0/2
[Huawei-Ethernet0/0/2]port link-type access 
[Huawei-Ethernet0/0/2]port default vlan 30
[Huawei-Ethernet0/0/2]int e0/0/3
[Huawei-Ethernet0/0/3]port link-type access 
[Huawei-Ethernet0/0/3]port default vlan 40
[Huawei-Ethernet0/0/3]int e0/0/4
[Huawei-Ethernet0/0/4]port link-type access 
[Huawei-Ethernet0/0/4]port default vlan 40
[Huawei-Ethernet0/0/4]int e0/0/5
[Huawei-Ethernet0/0/5]port link-type access 
[Huawei-Ethernet0/0/5]port default vlan 200
[Huawei-Ethernet0/0/5]quit 

创建Super-VLAN99,并将VLAN30 40指定为VLAN99的Sub-VLAN

[Huawei]vlan 99
[Huawei-vlan99]aggregate-vlan  #将VLAN99设置为Super-VLAN
[Huawei-vlan99]access-vlan 30 40
[Huawei-vlan99]q

配置Super-VLAN的VLANIF

[Huawei]interface Vlanif 99
[Huawei-Vlanif99]ip address 192.168.2.99 24
[Huawei-Vlanif99]arp-proxy inter-sub-vlan-proxy enable #sub-vlan之间通信
[Huawei-Vlanif99]quit 

[Huawei]interface Vlanif 200
[Huawei-Vlanif200]ip address 2.2.2.1 24
[Huawei-Vlanif200]quit 

配置RIP V2版本路由协议

[Huawei]rip
[Huawei-rip-1]version 2
[Huawei-rip-1]network 192.168.2.0
[Huawei-rip-1]network 2.0.0.0

[Huawei-rip-1]q
[Huawei]q
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Save the configuration successfully. 

交换机S1:

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable 
[Huawei]vlan batch 10 20 30 40 100 200
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type access 
[Huawei-GigabitEthernet0/0/1]port default vlan 100
[Huawei-GigabitEthernet0/0/1]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type access 
[Huawei-GigabitEthernet0/0/2]port default vlan 200
[Huawei-GigabitEthernet0/0/2]quit 

[Huawei]interface  Vlanif 100
[Huawei-Vlanif100]ip address 1.1.1.2 24 
[Huawei-Vlanif100]q

[Huawei]interface Vlanif 200
[Huawei-Vlanif200]ip address 2.2.2.2 24
[Huawei-Vlanif200]quit 

配置RIP V2版本路由协议

[Huawei]rip
[Huawei-rip-1]version 2
[Huawei-rip-1]network 1.0.0.0
[Huawei-rip-1]network 2.0.0.0
[Huawei-rip-1]quit 
[Huawei]q
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Save the configuration successfully. 
  • 测试
    PC2 ping PC1
    在这里插入图片描述
    PC2 ping PC3
    在这里插入图片描述
    PC2 ping PC7
    在这里插入图片描述

以上是关于VLAN综合练习的主要内容,如果未能解决你的问题,请参考以下文章

Packet Tracer - 综合技能练习

网络拓扑综合练习

HCIA的综合实验

DHCP和VLAN的综合使用(Cisco)

Cisco的DHCP和VLAN综合实验

HCIA/HCIP使用eNSP模拟VLAN综合实验1