Cisco single-Arm routing technology

Source: Internet
Author: User

Cisco single-arm routing

Demand:

The VLAN is terminated through a three-layer interchange.

Ideas:

1. Create a VLAN

2. VLAN Partitioning is correct

3. Creating sub-interfaces

4. dividing sub-interfaces to VLANs

5. Configure the desired relay port


Topology:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/54/71/wKioL1SCyxbSwTAXAAFJXjEzhps073.jpg "title=" topology. png "alt=" Wkiol1scyxbswtaxaafjxjezhps073.jpg "/>

Steps:

1. Partitioning VLANs on SW1, SW2

SW1 (config) #vlan 10

SW1 (Config-vlan) #vlan 20

SW2 (config) #vlan 10

SW2 (Config-vlan) #vlan 20

View the VLAN under the current switch with show Vlan-s b

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/54/73/wKiom1SCyQvzU7VTAAEHT34P7q4476.jpg "style=" float: none; "title=" Sw1.png "alt=" Wkiom1scyqvzu7vtaaeht34p7q4476.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/71/wKioL1SCyZvC1UAVAAEWCOClmyQ618.jpg "style=" float: none; "title=" Sw2.png "alt=" Wkiol1scyzvc1uavaaewcoclmyq618.jpg "/>



2. Dividing the interface and establishing the trunk port

SW1 (config) #int F1/1

SW1 (config-if) #switchport Access VLAN 10

SW1 (config-if) #int F1/2

SW1 (config-if) #switchport Access VLAN 20

SW2 (config) #int F1/1

SW2 (config-if) #switchport Access VLAN 10

SW2 (config-if) #int F1/2

SW2 (config-if) #switchport Access VLAN 20

Check:


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/54/71/wKioL1SCydTDPgt9AAEGEO5zEGU154.jpg "style=" float: none; "title=" Sw01.png "alt=" Wkiol1scydtdpgt9aaegeo5zegu154.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/54/73/wKiom1SCyUOx3af3AAEFnVE1rbo716.jpg "style=" float: none; "title=" Sw02.png "alt=" Wkiom1scyuox3af3aaefnve1rbo716.jpg "/>


SW1 (config-if) #int F1/15

SW1 (config-if) #switchport mode trunk //Create a relay port

SW2 (config-if) #int F1/15

SW2 (config-if) #switchport mode trunk


3. Configure the gateway for two switches:

SW1 (config) #ip default-gateway 192.168.10.1 //Configure switch default gateway

SW1 (config) #int vlan 1

SW1 (config-if) #ip add 192.168.10.10 255.255.255.0       

SW1 (config-if) #no shut

SW2 (config-if) #int VLAN 1

SW2 (config-if) #ip add 192.168.10.20 255.255.255.0

SW2 (config-if) #no shut

SW2 (config-if) #ex

SW2 (config) #ip Default-gateway 192.168.10.1


4. On the router creating sub-interfaces

R1 (config) #int f0/0.1

R1 (config-subif) #encapsulation dot1q //Define Encapsulation protocol type

R1 (config-subif) #ip add 192.168.1.1 255.255.255.0

R1 (config-subif) #no shut

R1 (config-subif) #int f0/0.2

R1 (config-subif) #encapsulation dot1q 20

R1 (config-subif) #ip add 192.168.2.1 255.255.255.0

R1 (config-subif) #no shut

R1 (config-subif) #int f0/0.10

R1 (config-subif) #encapsulation dot1q 1

R1 (config-subif) #ip add 192.168.10.1 255.255.255.0

R1 (config-subif) #no shut

Note: The gateway where the configured PC belongs to which VLAN the sub-interface is created should also be the gateway for the PC


5. Configure the IP of the PC

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/71/wKioL1SCyj6zhb0FAAExFRcfQPo514.jpg "style=" float: none; "title=" Pc.png "alt=" Wkiol1scyj6zhb0faaexfrcfqpo514.jpg "/>

6. Verification

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/71/wKioL1SCyj_CRV3sAAIY_lENMic428.jpg "style=" float: none; "title=" authentication. png "alt=" wkiol1scyj_crv3saaiy_lenmic428.jpg "/>


The experiment is over and successful.


This article is from the "share some personal experience" blog, be sure to keep this source http://hyang.blog.51cto.com/9415026/1587084

Cisco single-Arm routing technology

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.