CISCO PT Simulation Experiment (9) Inter-VLAN routing for layer three switches
Experimental Purpose :
Mastering the configuration of the switch Tag VLAN
Mastering the configuration method of three-layer switch VLAN routing
Inter-VLAN communication via three-layer switch
Experimental Background :
The Company's finance department and sales department are in different offices, in order to secure and facilitate management of the two departments of the host VLAN division, two departments in different VLAN, now because of business needs, sales and technical Department of the host can access each other, is required to A three-layer switch is configured appropriately.
Technical Principle :
-
follow osi vlan Hosts are in the same broadcast domain and can communicate with each other, while different vlan vlan hosts communicate with each other, You must use a third-tier device to improve the routing feature.
layer three switch: can work in osi Span style= "font-family: ' The song Body '; > The third layer replaces or partially completes the function of the traditional router, and at the same time it has the speed of almost the second layer exchange, which is essentially a special router which focuses on switching performance.
Inter-VLAN the principle of mutual exchange: Using the routing function of the three layer switch, by identifying the data packet IP address, find the routing table for route forwarding, the three-layer switch uses direct-attached routing to achieve different VLAN access to each other.
Differences from two-layer switches:
Layer Two switches are most common and work onOSI Model Second Floor(Data Link Layer), which is based onMACaddress, which is applied to the network access layer and the aggregation layer;the three-layer switch works onOSI Model Third Floor(Network Layer), which is based onIPprotocol is widely used in the core layer of the network.
svi vlan configuration address of the virtual interface, as the vlan gateway for different vlan
Experimental Equipment : switch_3560 1 units, switch_2960 1 units, PC 3, straight line, crossover line.
Experimental topology :
Experimental steps:
New Cisco PT topology diagram
On the two-layer switch, the ports PC0 and PC2, PC1 are respectively crossed into VLAN 2, VLAN 3.
the two-layer switch the ports connected to the three-layer switch are configured in trunk mode.
Verify that the two-tier switch hosts can communicate with each other under the same VLAN, and the host cannot communicate with each other under different VLANs.
Configure two SVI ports, respectively, as two VLAN corresponding IP Subnet Gateway interface, configure the corresponding IP address
View the routing table for layer three switches
PC Settings 192.168.1.2//pc0192.168.1.3//pc2//subnet mask and gateway 255.255.255.0192.168.1.1
PC Settings 192.168.2.2//pc1//subnet mask and gateway 255.255.255.0192.168.2.1
S2960 configuration switch>enswitch#config tswitch (config) #vlan 2Switch (Config-vlan) #vlan 3Switch (Config-vlan) #exitSwitch ( Config) #inter f0/2switch (config-if) #switchport access VLAN 2Switch (config-if) #exitSwitch (config) #inter F0/3switch ( config-if) #sw ac VLAN 3Switch (config-if) #exitSwitch (config) #inter f0/1switch (config-if) #sw mode Trunkswitch ( CONFIG-IF) #endSwitch #show VLAN
s3560 configuration Switch>enswitch#config tswitch (config) #vlan 2switch (Config-vlan) #vlan 3switch (config-vlan) #exitSwitch (config) #inter f0/1switch (config-if) #switchport trunk encapsulation dot1qswitch (config-if) #sw mode trunkswitch (config-if) #exitSwitch (config) #inter f0/1switch (config-if) #switchport access vlan 2switch (config-if) #exitSwitch ( Config) #interface vlan 2switch (config-if) #ip address 192.168.1.1 255.255.255.0switch ( CONFIG-IF) #no shutdownswitch (config-if) #exitSwitch (config) #interface vlan 3switch (config-if) #ip address 192.168.2.1 255.255.255.0switch (config-if) #no shutdownswitch (config-if) #endSwitch #show ip routeswitch#show
# Link Test PC0 (Command prompt cmd) ping 192.168.1.1//link ping 192.168.2.1//link ping 192.168.2.2 Link Pass PC1 (Command prompt cmd) ping 192.168.1.2//LINK pass//backup link flag changed from yellow to green, indicates backup link is enabled
Lab environment: Windows 7,cisco PT 6.3
Reference: CCNA Study Guide (7th edition)
CISCO PT Simulation Experiment (9) Inter-VLAN routing for layer three switches