Lab 8 - Trunking Beween Switch and Router

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

HCMC International University Computer Networks

Dr. Phuong Vo Date: 11-18-2015

Lab 8.2: Inter-VLAN Routing Configuration


Topology
R1
Fa0/0

Fa0/1
Server

Fa0/1

Fa0/11 Fa0/6
Fa0/18

PC1 PC2 PC3

Addressing Table
Hostname Interface IP Address Subnet Mask Default
Gateway

S1 VLAN 9 172.x.9.11 255.255.255.0 172.x.9.1

R1 Fa 0/0 172.x.5.1 255.255.255.0 N/A

Fa 0/1 N/A

PC1 NIC 172.x.1.21 255.255.255.0 172.x.1.1

PC2 NIC 172.x.2.22 255.255.255.0 172.x.2.1

PC3 NIC 172.x.3.23 255.255.255.0 172.x.3.1

Server NIC 172.x.5.254 255.255.255.0 172.x.5.1

Port Assignments – Switch 1


Ports Assignment Network

Fa0/1 – 0/5 802.1q Trunks(Native VLAN9) 172.x.9.0/24

Fa0/6 - 0/10 VLAN 3 – Guest(default) 172.x.3.0/24

Fa0/11 - 0/17 VLAN 1 – Faculty/Staff 172.x.1.0/24

Fa0/18 - 0/24 VLAN 2 - Student 172.x.2.0/24

1
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015

Interface Configuration Table – Router 1


Interface Assignment IP Address

Fa0/1.1 VLAN 1 172.x.1.1 /24

Fa0/1.2 VLAN 2 172.x.2.1 /24

Fa0/1.3 VLAN 3 172.x.3.1 /24

Learning Objectives
Upon completion of this lab, you will be able to:
 Cable a network according to the topology diagram
 Clear configurations and reload a switch and a router to the default state
 Perform basic configuration tasks on a switched LAN and router
 Configure VLANs and VLAN Trunking Protocol (VTP) on all switches
 Demonstrate and explain the impact of Layer 3 boundaries imposed by creating VLANs
 Configure a router to support 802.1q trunking on a Fast Ethernet interface
 Configure a router with subinterfaces corresponding to the configured VLANs
 Demonstrate and explain inter-VLAN routing

Task 1: Prepare the Network


Step 1: Cable a network that is similar to the one in the topology diagram.
The output shown in this lab is based on 2960 switches and an 2800 router. You can use any current switches
or routers in your lab as long as they have the required interfaces shown in the topology diagram. Other
device types may produce different output. Note that Ethernet (10Mb) LAN interfaces on routers do not
support trunking, and Cisco IOS software earlier than version 12.3 may not support trunking on Fast Ethernet
router interfaces.

Step 2: Clear any existing configurations on the switches.


Clear NVRAM, delete the vlan.dat file, and reload the switches. Use the show vlan command to confirm that
only default VLANs exist and that all ports are assigned to VLAN 1.
Switch#show vlan

Paste your output here.


...................................................................................................................................................
...................................................................................................................................................
Do all ports belong to VLAN 1 ?.................................................................................................
Step 3: Disable all ports using the shutdown command.
Ensure that the initial switch port states are inactive by disabling all ports. Use the interface range command
to simplify this task.
...................................................................................................................................................
...................................................................................................................................................

2
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Task 2: Perform Basic Switch Configurations
Step 1: Configure the switch.
Use the addressing table and the following guidelines:
 Configure the switch hostname.
 Disable DNS lookup.
 Configure an enable secret password of class.
 Configure a password of cisco for console connections.
 Configure the default gateway on each switch

Step 2: Re-enable the active user ports on S1 in access mode.

Task 3: Configure the Ethernet Interfaces on the Host PCs


Configure the Ethernet interfaces of PC1, PC2, PC3 with the IP addresses from the addressing table.

Task 4: Configure trunk on the Switch


Step 2: Configure trunking ports and designate the native VLAN for the trunks.
Configure Fa0/1 through Fa0/5 as trunking ports, and designate VLAN x9 as the native VLAN for these trunks.
Use the interface range command in global configuration mode to simplify this task.
S1(config)#interface range fa0/1-5
S1(config-if-range)#switchport mode trunk
S1(config-if-range)#switchport trunk native vlan x9
S1(config-if-range)#no shutdown
S1(config-if-range)#end

Step 3: Configure VLANs on the switch.


Configure the following VLANS on the switch S1:
VLAN Name
VLAN 9 management
VLAN 1 faculty-staff
VLAN 2 students
VLAN 3 guest
Step 4: Verify that the VLANs have been created on switch.
Use the show vlan brief command to verify that the VLANs have been created.
Paste your output here.
...................................................................................................................................................
...................................................................................................................................................
Are there VLANs you have been created ?................................................................................
...................................................................................................................................................
Step 5: Configure the management interface address on switch.
Step 6: Assign switch ports to VLANs on S1.
Refer to the port assignments table at the beginning of the lab to assign ports to VLANs on S1.
Step 7: Check connectivity between VLANs.
Open command windows on the three hosts connected to S1. Ping from PC1 to PC2. Ping from PC2 to PC3.

3
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
Are the pings successful and why? ...........................................................................................
...................................................................................................................................................
..................................................................................................................................................

Task 5: Configure the Router and the Remote Server LAN


Step 1: Clear the configuration on the router and reload.

Step 2: Create a basic configuration on the router.


1. Configure the router with hostname R1.
2. Disable DNS lookup.
3. Configure an EXEC mode password of cisco.
4. Configure a password of cisco for console connections.

Step 3: Configure the trunking interface on R1.


You have demonstrated that connectivity between VLANs requires routing at the network layer, exactly like
connectivity between any two remote networks. There are a couple of options for configuring routing between
VLANs.
The first is something of a brute force approach. An L3 device, either a router or a Layer 3 capable switch, is
connected to a LAN switch with multiple connections--a separate connection for each VLAN that requires
inter-VLAN connectivity. Each of the switch ports used by the L3 device is configured in a different VLAN on
the switch. After IP addresses are assigned to the interfaces on the L3 device, the routing table has directly
connected routes for all VLANS, and inter-VLAN routing is enabled. The limitations to this approach are the
lack of sufficient Fast Ethernet ports on routers, under-utilization of ports on L3 switches and routers, and
excessive wiring and manual configuration. The topology used in this lab does not use this approach.
An alternative approach is to create one or more Fast Ethernet connections between the L3 device (the
router) and the distribution layer switch, and to configure these connections as dot1q trunks. This allows all
inter-VLAN traffic to be carried to and from the routing device on a single trunk. However, it requires that the
L3 interface be configured with multiple IP addresses. This can be done by creating "virtual" interfaces, called
subinterfaces, on one of the router Fast Ethernet ports and configuring them to dot1q aware.
Using the subinterface configuration approach requires these steps:
1. Enter subinterface configuration mode (e.g., interface fastethernet 0/1.1)
2. Establish trunking encapsulation and associate a VLAN with the subinterface (e.g., for VLAN 1:
encapsulation dot1q 1)
3. Assign an IP address from the VLAN to the subinterface
Note the following points in this configuration:
 The subinterface can use any number that can be described with 32 bits, but it is good practice to
assign the number of the VLAN as the interface number, as has been done here.
 The native VLAN is specified on the Layer 3 device so that it is consistent with the switches.
Otherwise, VLAN 1 would be the native VLAN by default, and there would be no communication
between the router and the management VLAN on the switches.
Confirm creation and status of the subinterfaces with the show ip interface brief command:
...................................................................................................................................................
...................................................................................................................................................
Are all subinterfaces of FastEthernet0/1 in your output up ?......................................................
Step 4: Configure the server LAN interface on R1.
R1(config)# interface FastEthernet0/0
R1(config-if)#ip address 172.x.5.1 255.255.255.0
R1(config-if)#description server interface

4
HCMC International University Computer Networks
Dr. Phuong Vo Date: 11-18-2015
There are now six networks configured. Verify that you can route packets to all six by checking the routing
table on R1 using show ip route command.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Step 5: Verify Inter-VLAN routing.
From PC1, verify that you can ping the remote server and the other hosts. It may take a couple of pings before
the end-to-end path is established.
Are the pings successful and why? ...........................................................................................
...................................................................................................................................................
...................................................................................................................................................
If not, troubleshoot your configuration. Check to make sure that the default gateways have been set on all PCs
and all switches. If any of the hosts have gone into hibernation, the connected interface may go down.

Task 6: Document the devices configurations


On each device, capture the running configuration to a text file and attach to your report.

Task 7: Challenge task


Configure the routing between VLANs when the network has 2 routers connecting to each other. However, in
this scenarios, R2 connects to the outside server. You should configure so that the PCs in VLANs attached to
R1 can reach the remote server.

END.

You might also like