650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7C/D0/wKioL1bYQQCBXApkAAA-JxWt6T0251.png "title=" Qq20160303214719.png "alt=" Wkiol1byqqcbxapkaaa-jxwt6t0251.png "/>
1. Experimental Requirements
PC1belong toVlan10,PC2belong toVlan20,PC3belong toVlan30,PC4belong toVlan10.
Use DHCP automatically get IP address.
The use of single-arm routing technology to achieve full network interoperability.
2. Experimental Steps
R1 :
R1#conf T
Enterconfiguration commands, one per line. End with cntl/z.
R1 (config) #intfa0/0
R1 (config-if) #noshutdown turn the interface fa0/0 on
R1 (config-if) #intfa0/0.10 Input sub-interface
R1 (config-subif) #encapsulationdot1Q Change the package type of the interface, do vlan10 Gateway
R1 (config-subif) #ipadd 192.168.10.1 255.255.255.0 Configure IP address
R1 (config-subif) #noshut
R1 (config-subif) #intfa0/0.20
R1 (config-subif) #encapsulationdot1Q 20
R1 (config-subif) #ipadd 192.168.20.1 255.255.255.0
R1 (config-subif) #noshut
R1 (CONFIG-SUBIF) #intfa0/0.30
R1 (config-subif) #encapsulationdot1Q 30
R1 (config-subif) #ipadd 192.168.30.1 255.255.255.0
R1 (config-subif) #noshut
R1 (config-subif) #exit
R1 (config) to establish a DHCP address pool #ipdhcp Pool V10
R1 (Dhcp-config) #network192.168.10.0/24
R1 (dhcp-config) #default-router192.168.10.1
R1 (dhcp-config) #dns-server1.1.1.1
R1 (Dhcp-config) #exit
R1 (config) to establish a DHCP address pool #ipdhcp Pool V20
R1 (Dhcp-config) #network192.168.20.0/24
R1 (dhcp-config) #default-router192.168.20.1
R1 (dhcp-config) #dns-server2.2.2.2
R1 (Dhcp-config) #exit
R1 (config) to establish a DHCP address pool #ipdhcp pool V30
R1 (Dhcp-config) #network192.168.30.0/24
R1 (dhcp-config) #default-router192.168.30.1
R1 (dhcp-config) #dns-server3.3.3.3
R1 (Dhcp-config) #exit
SW1:
Sw1#conft
SW1 (config) #no IP routing off routing feature
SW1 (config) #vlan 10,20,30 to establish vlan10,20,30,
SW1 (Config-vlan) #int fa1/0
SW1 (config-if) #switchport access VLAN joins the interface into the VLAN
SW1 (config-if) #int FA1/1
SW1 (config-if) #switchport Access VLAN 20
SW1 (config-if) #int FA1/15
SW1 (config-if) #switchport mode trunk to turn the interface into a relay port
SW1 (config-if) #int FA1/4
SW1 (config-if) #switchport mode trunk to turn the interface into a relay port
SW2:
Sw2#conft
SW2 (config) #no IP routing off routing feature
SW2 (Config-vlan) #vlan 10,20,30 established vlan10,20,30
SW2 (Config-vlan) #int FA1/2
SW2 (config-if) #switchport access VLAN add interface to VLAN
SW2 (config-if) #int FA1/3
SW2 (config-if) #switchport Access VLAN 10
SW2 (config-if) #int FA1/15
SW2 (config-if) #switchport mode trunk to turn the interface into a relay port
3. Experimental Verification Results
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7C/D0/wKioL1bYQcqgr_RvAABj8Q6p4cc669.png "title=" 1.png " alt= "Wkiol1byqcqgr_rvaabj8q6p4cc669.png"/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7C/D0/wKioL1bYQffz0swRAABfIPDSuwQ273.png "title=" 2.png " alt= "Wkiol1byqffz0swraabfipdsuwq273.png"/>
This article is from the "shallow Memories of Cool" blog, please be sure to keep this source http://9716105.blog.51cto.com/9706105/1747356
Single-arm routing technology for cross-VLAN-wide network interoperability