CCNA test: route configuration between VLAN
We all know that between vlan can not communicate with each other, we can come through the router so that two different communication between the vlan, called single route, if the switch is a three-tier can also be used to achieve the three-tier exchange, the following We are talking about single route.
PC1 :===============================
int f0 / 0
duplex full
speed 100
ip add 10.1.1.2 255.255.255.0
no sh
exit
ip route 0.0.0.0 0.0.0.0 10.1.1.1
Note: because the router is used to simulate the PC to be set up so the default address of the router R1 refers to the sub-interface address (to the back of preparation) to)
PC2 :==================================
int f0 / 0
duplex full
speed 100
ip add 10.2.2.2 255.255.255.0
no sh
exit
ip route 0.0.0.0 0.0.0.0 10.1.1.2
Sw1: exchange on the preparation ===================================
vlan datebase
vlan 10 / / create vlan 10
vlan 20 / / create vlan 20
int f0 / 1 / / will be f0 / 1 on the port in vlan 10
duplex full
speed 100
switchport mode access
switchport access vlan 10
no sh
int f0 / 2 / / will be f0 / 2 port on the Sino-vlan 20
duplex full
speed 100
switchport mode access
switchport access vlan 20
no sh
int f0 / 5 / / router and connect the port, so as trunk link.
shutdown
duplex full
speed 100
switchport mode trunk
switchport trunk encap dot1q
no sh
R1 :===================================
int f0 / 0
no sh
int f0/0.1
encap dot1q 10 / / 10 is for vlan 10
ip add 10.1.1.1 255.255.255.0
no sh
int f0/0.2
encap dot1q 20 / / of which 20 are for vlan 20
ip add 10.2.2.1 255.255.255.0
no sh
exit
ip route 10.1.1.0 255.255.255.0 f0/0.1 / / set up static routing
ip route 10.2.2.0 255.255.255.0 f0/0.2
1.3, verify
We PC1 to ping PC2, if successfully pass that test. Then we switch on the f0 / 5 shutdown is not coming to see the barrier. .

Leave a Reply