Single-arm routing for Cisco Inter-VLAN communication

Source: Internet
Author: User
Tags switches



Cisco single-ARM routing configuration








One-arm routing, which is to set up multiple logical subinterfaces on the router, one VLAN for each sub-interface. The data on each sub-interface is passed on the physical link to be labeled encapsulated. Cisco devices support ISL and 802.1q (dot1q) protocols.



The difference between dot1q and ISL: dot1q is a generic VLAN protocol model for various products, and dot1q is a universally used standard for all switches and routing devices. Supports more than 1024vlan, while ISL supports up to 1024 VLANs. ISL is a proprietary protocol for Cisco devices and is suitable for Cisco devices. The ISL (Interior switching Link) Inter-switch protocol is used to implement VLAN trunking between Cisco switches. It is a packet-tagging protocol that is composed of a standard Ethernet frame and associated VLAN information for frames sent on an ISL-capable interface.



650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/58/C9/wKiom1S8hSLQS7PUAABtJq0wr0o871.jpg "title=" Qq20150119121209.png "alt=" Wkiom1s8hslqs7puaabtjq0wr0o871.jpg "/>






PC4 192.168.10.2 255.255.255.0 GW 192.168.10.1 VLAN 10



PC5 192.168.20.2 255.255.255.0 GW 192.168.20.1 VLAN 20









S1:






Switch>enable



Switch#vlan Database



Switch (VLAN) #vlan 30



Switch (VLAN) #vlan 40



switch# Configure terminal



Switch (config) #int fastethernet 0/1



Switch (config-if) #switchport Access VLAN 30



Switch (config-if) #int F0/2



Switch (config-if) #switchport Access VLAN 40



Switch (config-if) #int F 0/24



Switch (config-if) #switchport mode trunk (set the interface to trunk mode)



Switch (config-if) #switchport trunk allowed VLAN All (runs all VLANs through)






RT1:






Router>enable



Router#configure Terminal



Router (config) #int fastethernet 0/0.1 (enter sub-interface)



Router (config-subif) #encapsulation dot1q 10 (Encapsulating dot1q Protocol, establishing an association with VLAN30)



Router (config-subif) #ip add 192.168.10.1 255.255.255.0



Router (config-subif) #int F 0/0.2



Router (config-subif) #encapsulation dot1q 20 (Encapsulating dot1q Protocol, establishing an association with VLAN40)



Router (config-subif) #ip add 192.168.20.1 255.255.255.0



Router (config-subif) #int F 0/0



Router (config-if) #no shutdown (Start f0/0 interface, including all sub-interfaces)



Complete. Vlan10 can communicate with Vlan20 .









This article is from "Rain" blog, be sure to keep this source http://gushiren.blog.51cto.com/3392832/1605595



Single-arm routing for Cisco Inter-VLAN communication


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.