Cisco single-arm route Configuration
Single-arm routing: multiple logical sub-interfaces are configured on the vro. Each sub-interface corresponds to a vlan. Data of each sub-interface must be tagged and encapsulated when transmitted on the physical link. Cisco devices support ISL and 802.1q (dot1Q) protocols. Huawei only supports 802.1q.
What is the difference between DOT1Q and ISL: DOT1Q is a common VLAN protocol mode for various products. Dot1q is a commonly used standard and applicable to all switches and routing devices. Supports more than 1024 VLANs, while ISL supports up to 1024 VLANs. ISL is a dedicated protocol for CISCO devices and is applicable to Cisco devices. ISL (Interior Switching Link) is used to implement VLAN relay between CISCO switches. It is an information packet marking protocol. Frames sent on ISL interfaces are composed of a standard Ethernet frame and related VLAN information.
PC1: IP: 172.16.3.1/24 GW: 255.255.255.0
PC2: IP: 172.16.4.1/24 GW: 255.255.255.0
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 this interface to trunk mode)
Switch (config-if) # switchport trunk allowed vlan all (run all VLANs through)
RT1:
Router> enable
Router # configure terminal
Router (config) # int fastEthernet 0/0. 1 (go to the sub-interface)
Router (config-subif) # encapsulation dot1Q 30 (encapsulates the dot1Q protocol and establishes an association with vlan30)
Router (config-subif) # ip add 172.16.3.254 255.255.255.0
Router (config-subif) # int f 0/0. 2
Router (config-subif) # encapsulation dot1Q 40 (encapsulates the dot1Q protocol and establishes an association with vlan40)
Router (config-subif) # ip add 172.16.4.254 255.255.255.0
Machine (config-subif) # int f 0/0
Router (config-if) # no shutdown (to start interfaces f0/0, including all subinterfaces)
Complete. Vlan30 can communicate with vlan40.
This article is from the "lookandrock" blog