In practice, ruijie [instance] VLAN + SVI + MSTP + VRRP + port Aggregation

Source: Internet
Author: User

In practice, ruijie [instance] VLAN + SVI + MSTP + VRRP + port Aggregation

The topology is as follows:

PC0, PC1, PC2, and PC3 belong to vlan 10 vlan 20 vlan 30 and vlan40 respectively.
Tutorial steps:
Step 1: Create a vlan on the vswitch and configure the IP address
SW1 # config termial
SW (config) # VLAN 10
SW1 (config-vlan) # exit
SW1 (config) # Vlan 20
SW1 (config-vlan) # exit
SW1 (config) # vlan 30
SW1 (config-vlan) # exit
SW1 (config) # vlan 40
 
SW2 (config) # VLAN 10
SW2 (config-vlan) # exit
SW2 (config) # Vlan 20
SW2 (config-vlan) # exit
SW1 (config) # vlan 30
SW1 (config-vlan) # exit
SW1 (config) # vlan 40
 
 
SW3 (config) # VLAN 10
SW3 (config-vlan) # exit
SW3 (config) # Vlan 20
SW3 (config-vlan) # exit
.
SW4 (config) # vlan 30
SW4 (config-vlan) # exit
SW4 (config) # vlan 40
SW4 (config-vlan) # exit
 
 
SW1 (config) # interface vlan 10
SW1 (config-if) # ip address 192.168.10.1 255.255.255.0
SW1 (config-if) # exit
SW1 (config) # interface Vlan 20
SW1 (config-if) # ip address 192.168.20.1 255.255.255.0
SW1 (config-if) # exit
SW1 (config) # interface vlan 30
SW1 (config-if) # ip address 192.168.30.1 255.255.255.0
SW1 (config-if) # exit
SW1 (config) # interface vlan 40
Sw1 (config-if) # ip address 192.168.40.1 255.255.255.0
SW1 (config-if) # exit
 
SW2 (config) # interface vlan 10
SW2 (config-if) # ip address 192.168.10.2 255.255.255.0
SW2 (config-if) # exit
SW2 (config) # interface Vlan 20
SW2 (config-if) # ip address 192.168.20.2 255.255.255.0
SW2 (config-if) # exit
SW2 (config) # interface vlan 30
SW2 (config-if) # ip address 192.168.30.2 255.255.0
SW2 (config-if) # exit
SW2 (config) # interface vlan 40
SW2 (config-if) # ip address 192.168.40.2 255.255.255.0
SW2 (config-if) # exit

Note: The VLAN data method cannot be used to create a virtual vlan on the ruijie switch.

Step 2: Configure Trunk and link Aggregation
 
SW1 (config) # interface range fastEthernet 0/1-2
SW1 (config-if-range) # switchport mode trunk
SW1 (config-if-range) # exit
SW1 (config) # interface range fastEthernet 0/23-24
SW1 (config-if-range) # port-group 1
SW1 (config-if-range) # exit
SW1 (config) # intface aggregatePort 1
SW1 (config-if) # switchport mode trunk
SW1 (config-if) # exit
 
SW2 (config) # interface range fastEthernet 0/1-2
SW2 (config-if-range) # switchport mode trunk
SW2 (config-if-range) # exit
SW2 (config) # interface range fastEthernet 0/23-24
SW2 (config-if-range) # port-group 1
SW2 (config-if-range) # exit
SW2 (config) # intface aggregatePort 1
SW2 (config-if) # switchport mode trunk
SW2 (config-if) # exit
 
SW3 (config) # interface scope fastEthernet 0/1-2
SW3 (config-if-range) # switchport mode trunk
SW3 (config-if-range) # exit
SW3 (config) # interface range fastEthernet 0/3-14
SW3 (config-if-range) # switchport mode access
SW3 (config) # switchport access vlan 10
SW3 (config-if-range) # exit
SW3 (config) # interface range fastEthernet 0/15-24
SW3 (config-if-range) # switchport mode access
SW3 (config) # switchport access vlan 20
SW3 (config-if-range) # exit
 
SW4 (config) # interface scope fastEthernet 0/1-2
SW4 (config-if-range) # switchport mode trunk
SW4 (config-if-range) # exit
SW4 (config) # interface range fastEthernet 0/3-14
SW4 (config-if-range) # switchport mode access
SW4 (config) # switchport access vlan 30
SW4 (config-if-range) # exit
SW4 (config) # interface range fastEthernet 0/15-24
SW4 (config-if-range) # switchport mode access
SW4 (config) # switchport access vlan 40
SW4 (config-if-range) # exit

Step 3: Configure mstp

SW1 (config) # spanning-tree // enable the spanning tree
SW1 (config) # spanning-tree mode mstp // mode: MSTP mode
SW1 (config) # spanning-tree mst configuration // enter the mstp Mode
SW1 (config-mst) # instance 1 vlan 10, 30 // Vlan 10 and 30 are added to instance 1
SW1 (config-mst) # instance 2 vlan 20, 40
SW1 (config-mst) # name abc
SW1 (config-mst) # revision 1 // corrected the version number
SW1 (config-mst) # exit
SW2 (config) # spanning-tree // enable the spanning tree
SW2 (config) # spanning-tree mode mstp // mode: MSTP mode
SW2 (config) # spanning-tree mst configuration // enter the mstp Mode
SW2 (config-mst) # instance 1 vlan 10, 30 // Vlan 10 and 30 are added to instance 1
SW2 (config-mst) # instance 2 vlan 20, 40
SW2 (config-mst) # name abc
SW2 (config-mst) # revision 1 // corrected the version number
SW2 (config-mst) # exit

Step 4: Configure VRRP

SW1 (config) # interface VLAN 10
SW1 (config-if) # vrrp 10 priority 120
! Divide switch SW1 into VRRP group 10 and configure a higher priority of 120 to become the master in VRRP group 10.
SW1 (config-if) vrrp 10 ip address 192.168.10.254
SW1 (config-if) vrrp 11 ip 192.168.10.253
! Divides switch SW1 into VRRP group 11 with a default priority of 100.
SW1 (config-if) exit
 
SW1 (config) # interface VLAN 20
SW1 (config-if) # vrrp 20 ip address 192.168.255.254
! Divide switch SW1 into VRRP group 20
SW1 (config-if) # vrrp 21 priority 120
! Divide switch SW1 into VRRP group 21 and set priority to 120
SW1 # (config-if) vrrp 21 ip 192.168.255.253
! Divide switch SW1 into VRRP group 21
SW1 (config-if) # exit
 
SW1 (config) # interface VLAN 30
SW1 (config-if) # vrrp 30 priority 120
! Divide switch SW1 into VRRP group 30 and configure a higher priority of 120
SW1 (config-if) vrrp 30 ip address 192.168.30.254
SW1 (config-if) vrrp 31 ip 192.168.30.253
! Divide switch SW1 into VRRP group 31
SW1 (config-if) exit
 
SW1 (config) # interface VLAN 40
SW1 (config-if) # vrrp 40 ip address 192.168.40.254
! Divide switch SW1 into VRRP group 40
SW1 (config-if) # vrrp 41 priority 120
! Divide switch SW1 into VRRP group 41 and set the priority to 120.
SW1 # (config-if) vrrp 41 ip 192.168.40.253
 
 
SW2 (config) # interface VLAN 10
SW2 (config) # vrrp 10 ip address 192.168.10.254
SW2 (config-if) # vrrp 11 priority 120
SW2 (config-if) vrrp 11 ip 192.168.10.253
SW2 (config-if) exit
 
SW2 (config) # interface VLAN 20
SW2 (config-if) # vrrp 20 priority 120
SW2 # (config-if) vrrp 20 ip address 192.168.255.254
SW2 # (config-if) vrrp 21 ip 192.168.255.253
 
SW2 (config) # interface VLAN 30
SW2 (config) # vrrp 30 ip address 192.168.30.254
SW2 (config-if) # vrrp 31 priority 120
SW2 (config-if) vrrp 31 ip 192.168.30.253
SW2 (config-if) exit
 
SW2 (config) # interface VLAN 40
SW2 (config-if) # vrrp 40 priority 120
SW2 # (config-if) vrrp 40 ip address 192.168.40.254
SW2 # (config-if) vrrp 41 ip 192.168.40.253
SW2 (config-if) exit
In the above experiment,
Summary:
1. VLAN10 and Vlan30 go through SW1, Vlan20 and vlan40 go through SW2. Vlan10 and vlan30 are in instance 1, and vlan20 and vlan40 are in instance 2. Each instance runs a spanning tree independently.
2. in MSTP configuration, you must configure two instances in both SW1 and SW2. For SW1, configure instance 1 and instance 2, and for SW2, configure instance 1 and instance 2.
3. the correct number and name of the same instance must be the same.
4. If VRRP is configured in a layer-3 switch, the virtual IP addresses configured for them enter the vlan configuration. The vro is configured only when the vro is used.
5. understanding VRRP load: In the experiment, vlan10 serves as a master in 10 groups and backup in 11 groups. In the outside world, 10 groups and 11 groups are actually built into a virtual router, the IP address of this vro is 192.168.10.254 and exists in SW1, and 192.168.10.253 is used as the backup IP address in SW2. Normally, the PC in vlan10 goes through SW1 (Gateway 192.168.10.254 ), however, if SW1 fails, it will switch to SW2, that is, the PC in vlan10 will go through SW2 (Gateway 192.168.10.253), but no matter the master in SW1 (192.168.10.254) or the backup (192.168.10.253) in SW2 is in a vro.
6. Load Balancing is implemented by multiple VRRP groups. For example, SW1 is both the master of vlan10 and the backup of vlan20, as well as the master of vlan30 and the backup of vlan40. This reduces the number of layer-3 switches or routers.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.