Comprehensive Analysis of Route Switch configuration instance applications

Source: Internet
Author: User

It is very useful to know some knowledge about route Switch configuration. Here we mainly introduce the application of Route Switch configuration instance, in Lan, you can use a route switch to configure VLANs to reduce the range of host communication broadcast domains.

When some hosts need to communicate with each other, but the switch does not support layer-3 switching, you can use a routing switch that supports 802.1Q to achieve VLAN interconnection. this requires creating a sub-interface on the Ethernet port, assigning an IP address as the gateway of the VLAN, and starting 802.1Q at the same time. Networking: The vroee0 port is connected to the uplink trunk port (Port 24th) of the vswitch. the downlink port of the vswitch is divided into three VLANs with several hosts. The topology is as follows:

1. Route Switch configuration

 
 
  1. [Router]
  2. [Router] inter e0
  3. [Router-Ethernet0] ip add 10.0.0.1 255.255.255.0
  4. [Router-Ethernet0] inter e0.1 // define sub-interface E0.1
  5. [Router-Ethernet0.1] ip add 172.16.1.1 255.255.255.0
  6. [Router-Ethernet0.1] vlan-type dot1q vid 1 // specify that the Ethernet sub-interface belongs to vlan1. this command is applied to the Ethernet sub-interface.
  7. [Router-Ethernet0.1] inter e0.2 // define sub-interface E0.2
  8. [Router-Ethernet0.2] ip add 172.16.2.1 255.255.255.0
  9. [Router-Ethernet0.2] vlan-type dot1q vid 2 // specify that the Ethernet sub-interface belongs to VLAN2
  10. [Router-Ethernet0.2] inter e0.3 // define sub-interface E0.3
  11. [Router-Ethernet0.3] ip add 172.16.3.1 255.255.255.0
  12. [Router-Ethernet0.3] vlan-type dot1q vid 3 // specify that the Ethernet sub-interface belongs to VLAN3
  13. [Router-Ethernet0.3] inter e0
  14. [Router-Ethernet0] undo shut
  15. % Interface Ethernet0 is up
  16. [Router-Ethernet0] // connect E0 port to S3026 24th port with network cable
  17. % 19: 46: 32: Interface Ethernet0 changed state to UP
  18. % 19: 46: 32: Line protocol ip on interface Ethernet0, changed state to UP
  19. % 19: 46: 32: Line protocol ip on interface Ethernet0.1, changed state to UP
  20. % 19: 46: 32: Line protocol ip on interface Ethernet0.2, changed state to UP
  21. % 19: 46: 32: Line protocol ip on interface Ethernet0.3, changed state
  22.  

2. Switch configuration

 
 
  1. <Quidway> 
  2. <Quidway>sys  
  3. Enter system view , return user view with Ctrl+Z.  
  4. [Quidway]vlan 1  
  5. [Quidway-vlan1]vlan 2  
  6. [Quidway-vlan2]port ethernet 0/17 to eth 0/19 eth 0/22   
  7. [Quidway-vlan2]vlan 3  
  8.  

3. Check whether the network is connected on the workstation. This workstation connects to port S3026 21st, which belongs to vlan2.

 
 
  1. C: \ Documents ents and Settings \ Administrator> ipconfig
  2. Windows 2000 IP Configuration
  3. Ethernet adapter local connection:
  4. Connection-specific DNS Suffix .:
  5. IP Address ......: 172.16.2.22
  6. Subnet Mask ......: 255.255.255.0
  7. Default Gateway ......: 172.16.2.1
  8. C: \ Documents ents and Settings \ Administrator> ping 172.16.3.1
  9. Pinging 172.16.3.1 with 32 bytes of data:
  10. Reply from 172.16.3.1: bytes = 32 time <10 ms TTL = 255
  11. Reply from 172.16.3.1: bytes = 32 time <10 ms TTL = 255
  12. Reply from 172.16.3.1: bytes = 32 time <10 ms TTL = 255
  13. Reply from 172.16.3.1: bytes = 32 time <10 ms TTL = 255
  14. Ping statistics for 172.16.3.1:
  15. Packets: Sent = 4, stored ED = 4, Lost = 0 (0% loss ),
  16. Approximate round trip times in milli-seconds:
  17. Minimum = 0 ms, Maximum = 0 ms, Average = 0 ms
  18.  

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.