Huawei Network - tier exchange configuration

  • The use of three-tier exchange technology to achieve communication between vlan

  • Third floor of the exchange exchange = + 3 forwarding

  • Layer 3 forwarding process to reseal layer 2

  • On Layer 3 switches, a third layer of the first packet of data flow processing engine

  • Once routing, switching times

blob.png

Experimental topology

Here Insert Picture Description

Experimental Procedure:

1, configuration switch sw2


<Huawei>sys
[Huawei]sysname SW2
[SW2]vlan batch 10 20  ##创建vlan10 20
[SW2]int e0/0/2[SW2-Ethernet0/0/2]port link-type access   ##设置access
[SW2-Ethernet0/0/2]port default vlan 10    ##将接口放到vlan中
[SW2-Ethernet0/0/2]un sh
[SW2-Ethernet0/0/2]int e0/0/3
[SW2-Ethernet0/0/3]port link-type access
[SW2-Ethernet0/0/3]port default vlan 20
[SW2-Ethernet0/0/3]un sh
[SW2-Ethernet0/0/3]int e0/0/1
[SW2-Ethernet0/0/1]port link-type trunk      ##设置trunk
[SW2-Ethernet0/0/1]port trunk allow-pass vlan all   ##允许所有的vlan通过
[SW2-Ethernet0/0/1]un sh
[SW2-Ethernet0/0/1]int g0/0/1
[SW2-GigabitEthernet0/0/1]port link-type trunk  
[SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan all 
[SW2-GigabitEthernet0/0/1]un sh

2、配置sw3交换机(与sw2的配置一样)


<Huawei>sys   
[Huawei]sysname SW3   
[SW3]vlan batch 10 20  
[SW3]int e0/0/2 
[SW3-Ethernet0/0/2]port link-type access 
[SW3-Ethernet0/0/2]port default vlan 10
[SW3-Ethernet0/0/2]un sh
[SW3-Ethernet0/0/2]int e0/0/3
[SW3-Ethernet0/0/3]port link-type access    
[SW3-Ethernet0/0/3]port default vlan 20
[SW3-Ethernet0/0/3]un sh
[SW3-Ethernet0/0/3]int e0/0/1
[SW3-Ethernet0/0/1]port link-type trunk 
[SW3-Ethernet0/0/1]port trunk allow-pass vlan all 
[SW3-Ethernet0/0/1]un sh

3、配置sw1三层交换机

<Huawei>sys
[Huawei]sysname SW1
[SW1]vlan batch 10 20 1000
[SW1]int g0/0/1
[SW1-GigabitEthernet0/0/1]port link-type trunk 
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan all 
[SW1-GigabitEthernet0/0/1]un sh
[SW1-GigabitEthernet0/0/1]int g0/0/2   
[SW1-GigabitEthernet0/0/2]port link-type access   
##三层交换连接路由的不能配置trunk
[SW1-GigabitEthernet0/0/2]port default vlan 1000
[SW1-GigabitEthernet0/0/2]un sh
[SW1-GigabitEthernet0/0/2]q
[SW1]int vlanif 10   ##进入逻辑接口[SW1-Vlanif10]ip add 192.168.10.1 24  ##设置网关
[SW1-Vlanif10]int vlanif 20[SW1-Vlanif20]ip add 192.168.20.1 24
[SW1]int vlanif 1000
[SW1-Vlanif1000]ip add 11.0.0.1 30
[SWl-Vlanif1000] Q
[SW1] ip route-static 0.0.0.0 0.0.0.0 11.0.0.2 ## to set the default route, the default upward, downward static

4, arranged route R1

<The Huawei> SYS 
[the Huawei] Sysname Rl 
[Rl] int G0 / 0/0 interface ## is provided ip address 
[Rl-the GigabitEthernet0 / 0/0] ip 11.0.0.2 the Add 30 
[Rl-the GigabitEthernet0 / 0/0] UN SH 
[Rl-the GigabitEthernet0 / 0/0] 0 ## int into the loopback interface Loopback provided IP 
[Rl-LoopBack0] 1.1.1.1 IP the Add 30 
[Rl-LoopBack0] Q 
[Rl] static IP 192.168.10.0 route-24 11.0 ## .0.1 static routing 
[R1] ip route-static 192.168.20.0 24 11.0.0.1

5, the whole network interoperability test

Here Insert Picture Description

Here Insert Picture Description

Here Insert Picture DescriptionHere Insert Picture Description


Completion of the experiment.

More home into my home page view.

Guess you like

Origin blog.51cto.com/14475876/2450839