Three-layer switching technology: two-layer switching technology + three-layer forwarding technology. It solves the network segment in the LAN, the network segment must rely on the router to manage the situation, to solve the traditional router low speed, complexity caused by the bottleneck problem.
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/84/63/wKioL1ePKkTAgqs8AACyLCFWuCA902.png-wh_500x0-wm_3 -wmp_4-s_366222421.png "title=" three-layer switching VLAN "alt=" Wkiol1epkktagqs8aacylcfwuca902.png-wh_50 "/>
Lab Requirements:
C1 and C4 belong to VLAN10,C2, C3 belong to VLAN20;
Three-layer switching to achieve inter-PC interoperability;
R2 Configure static routing to realize the whole network interworking;
Experimental steps:
in the lab: Cisco GNS3
1.SW1 Configuration
Sw1#confi t//Enter global configuration mode;
Enter configuration commands, one per line. End with cntl/z.
SW1 (config) #vlan 10,20//bulk add VLAN;
SW1 (Config-vlan) #exit
SW1 (config) #int F1/1//Enter the physical interface FA1/1;
SW1 (config-if) #switchport access VLAN 10//Add VLAN10;
SW1 (config-if) #no shut//activation port;
SW1 (config) #int f1/2//Enter the interface fa1/2;
SW1 (config-if) #switchport access VLAN 20//Add VLAN20;
SW1 (config-if) #no shut//activation port;
SW1 (config) #int F1/5//Enter the interface FA1/5;
SW1 (config-if) #switchport mode trunk//trunk trunk port;
SW1 (config-if) #
*mar 1 00:35:23.195:%dtp-5-trunkporton:port FA1/5 has become dot1q trunk
SW1 (config) #int f1/0//Enter the interface fa1/0;
SW1 (config-if) #switchport mode trunk//trunk trunk port;
SW1 (config-if) #
*mar 1 00:39:33.223:%dtp-5-trunkporton:port fa1/0 has become dot1q trunk
2. SW2 Configuration
SW2#CONFI t//global configuration mode
Enter configuration commands, one per line. End with cntl/z.
SW2 (config) #vlan 10,20//bulk add VLAN;
SW2 (Config-vlan) #exit
SW2 (config) #int F1/3//inlet interface FA1/3;
SW2 (config-if) #switchport access VLAN 20//Add VLAN20;
SW2 (config-if) #no shut//activation port;
SW2 (config) #int F1/5//inlet FA1/5 Port;
SW2 (config-if) #switchport mode trunk//configuration trunk port;
SW2 (config-if) #
*mar 1 00:36:20.659:%dtp-5-trunkporton:port FA1/5 has become dot1q trunk
3.M1 Configuration
M1#CONFI t//global configuration mode;
Enter configuration commands, one per line. End with cntl/z.
M1 (config) #int f1/0//inlet interface fa1/0;
M1 (config-if) #switchport mode trunk//configuration trunk trunk;
M1 (config-if) #
*mar 1 00:41:48.443:%dtp-5-trunkporton:port fa1/0 has become dot1q trunk
M1 (config-if) #exit
M1 (config) #vlan 10,20//bulk add VLAN;
M1 (Config-vlan) #exit
M1 (config) #int F1/4//inlet interface FA1/4;
M1 (config-if) #switchport access VLAN 10//Add VLAN10;
M1 (config) #int vlan10//Enter VLAN10 virtual interface;
*mar 1 00:44:50.479:%lineproto-5-updown:line protocol on Interface Vlan10, changed
M1 (config-if) #ip addr 192.168.1.1 255.255.255.0//configure gateway IP address;
M1 (config-if) #int vlan20//Enter VLAN20 virtual interface;
*mar 1 00:45:24.131:%lineproto-5-updown:line protocol on Interface Vlan20, changed
M1 (config-if) #ip addr 192.168.2.1 255.255.255.0//configure gateway IP address;
M1 (config) #int F1/10//inlet interface FA1/10;
M1 (config-if) #no switchport//Two-layer port to three-layer port;
M1 (config-if) #ip add 10.0.0.1 255.255.255.0//Configure IP address;
M1 (config-if) #
*mar 1 00:54:19.367:%lineproto-5-updown:line protocol on Interface FASTETHERNET1/10, changed
M1 (config-if) #no shut//port activation;
M1 (config) #ip Route 0.0.0.0 0.0.0.0 10.0.0.2//configure default static routes;
4.PC Configuration
vpcs[1]> IP 192.168.1.10 192.168.1.1//configuration C1 IP address and gateway;
Checking for duplicate Address ...
pc1:192.168.1.10 255.255.255.0 Gateway 192.168.1.1
Vpcs[1]> 2
vpcs[2]> IP 192.168.2.20 192.168.2.1//configuration C2 IP address and gateway;
Checking for duplicate Address ...
pc2:192.168.2.20 255.255.255.0 Gateway 192.168.2.1
Vpcs[2]> 3
vpcs[3]> IP 192.168.2.30 192.168.2.1//configuration C3 IP address and gateway;
Checking for duplicate Address ...
pc3:192.168.2.30 255.255.255.0 Gateway 192.168.2.1
Vpcs[3]> 4
vpcs[4]> IP 192.168.1.40 192.168.1.1//configuration C4 IP address and gateway;
Checking for duplicate Address ...
pc4:192.168.1.40 255.255.255.0 Gateway 192.168.1.1
5. Test communication between PCs
vpcs[4]> Ping 192.168.1.10//test C1 and C4 connectivity;
192.168.1.10 icmp_seq=1 ttl=64 time=2.002 ms
192.168.1.10 icmp_seq=2 ttl=64 time=2.967 ms
192.168.1.10 icmp_seq=3 ttl=64 time=2.003 ms
192.168.1.10 icmp_seq=4 ttl=64 time=3.008 ms
192.168.1.10 icmp_seq=5 ttl=64 time=2.003 ms
Vpcs[4]> 3
vpcs[3]> Ping 192.168.2.20//test C3, C2 connectivity;
192.168.2.20 icmp_seq=1 ttl=64 time=3.004 ms
192.168.2.20 icmp_seq=2 ttl=64 time=2.069 ms
vpcs[3]> Ping 192.168.1.10//test C3, C1 connectivity;
192.168.1.10 icmp_seq=1 Timeout
192.168.1.10 icmp_seq=2 ttl=63 time=17.949 ms
192.168.1.10 icmp_seq=3 ttl=63 time=17.967 ms
192.168.1.10 icmp_seq=4 ttl=63 time=55.063 ms
192.168.1.10 icmp_seq=5 ttl=63 time=28.966 ms
Vpcs[3]>
Vpcs[3]> 4
vpcs[4]> Ping 192.168.2.20//test C4, C2 connectivity;
192.168.2.20 icmp_seq=1 Timeout
192.168.2.20 icmp_seq=2 ttl=63 time=47.050 ms
192.168.2.20 icmp_seq=3 ttl=63 time=23.026 ms
6.R1 Configuration
R1#CONFI t//global configuration mode;
Enter configuration commands, one per line. End with cntl/z.
R1 (config) #int F0/1//inlet FA0/1 interface;
R1 (config-if) #ip add 10.0.0.2 255.255.255.0//Configure IP address and subnet mask;
R1 (config-if) #no shut//activation port;
R1 (config-if) #
*mar 1 00:55:56.307:%link-3-updown:interface FASTETHERNET0/1, changed state-to-up
*mar 1 00:55:57.307:%lineproto-5-updown:line protocol on Interface FASTETHERNET0/1, changed
R1 (config) #int f0/0//Enter the interface fa0/0;
R1 (config-if) #ip add 12.0.0.2 255.255.255.0//Configure IP address, subnet mask;
R1 (config-if) #no shut//activation port;
R1 (config-if) #
*mar 1 00:58:54.163:%link-3-updown:interface fastethernet0/0, changed state-to-up
*mar 1 00:58:55.163:%lineproto-5-updown:line protocol on Interface fastethernet0/0, changed
R1 (config) #ip Route 192.168.1.0 255.255.255.0 10.0.0.1//configure default static routes;
R1 (config) #ip Route 192.168.2.0 255.255.255.0 10.0.0.1
7.R2 Configuration
R2#CONFI t//global configuration mode;
Enter configuration commands, one per line. End with cntl/z.
R2 (config) #int f0/0//Enter f0/0 interface;
R2 (config-if) #ip add 12.0.0.3 255.255.255.0//Configure IP address and subnet mask;
R2 (config-if) #no shut//activation port;
R2 (config-if) #
*mar 1 01:00:11.707:%link-3-updown:interface fastethernet0/0, changed state-to-up
*mar 1 01:00:12.707:%lineproto-5-updown:line protocol on Interface fastethernet0/0, changed
R2 (config) #ip Route 0.0.0.0 0.0.0.0 12.0.0.2//configure static routes;
8. Testing Interoperability
vpcs[3]> Ping 12.0.0.3//test C3, R2 connectivity;
12.0.0.3 icmp_seq=1 ttl=253 time=137.756 ms
12.0.0.3 icmp_seq=2 ttl=253 time=93.753 ms
12.0.0.3 icmp_seq=3 ttl=253 time=109.381 ms
12.0.0.3 icmp_seq=4 ttl=253 time=140.631 ms
12.0.0.3 icmp_seq=5 ttl=253 time=140.633 ms
Vpcs[3]> 1
vpcs[1]> Ping 12.0.0.2//test C1, R1 connectivity;
12.0.0.2 icmp_seq=1 ttl=254 time=62.501 ms
12.0.0.2 icmp_seq=2 ttl=254 time=93.764 ms
12.0.0.2 icmp_seq=3 ttl=254 time=78.126 ms
12.0.0.2 icmp_seq=4 ttl=254 time=78.126 ms
12.0.0.2 icmp_seq=5 ttl=254 time=93.756 ms
This article is from the "11372585" blog, please be sure to keep this source http://11382585.blog.51cto.com/11372585/1828106
Three-layer switching for VLAN interoperability