Professional Documents
Culture Documents
Objectives:
Intro:
Consolidate the VLAN concept and configuration Introduce the router-on-a-stick concept and configuration
Ajax Enterprise wants to optimize their network and asked you to lead the project.
The Scenario: Ajax increased the number of computers on their network and because of that, they decided to ensure their network will support it with no impact on the performance. Ajax also has no plans to buy new devices now; they want to use the gear they already have. After a study on Ajax network devices, you decide to implement the topology shown below. The topology uses 3 different VLANs to separate traffic: VLAN10, VLAN20 and VLAN30. The router R1 will route between them.
Topology:
Step 2 Configuring SW1 You decide to begin the configuration by SW1. You connect the console cable to SW1 console port and create all 3 VLANs: VLAN10, VLAN20 and VLAN30. Once the VLANs are created, you assign the switch ports to the correct VLAN. Since port 24 will be the port connected to R1, it must be configured as an 802.1q link. The VLAN mapping to be used in SW1 is shown below:
Port 1, 2, 3, 4, 5 6, 7, 8, 9, 10 11,12,13,14,15 24
Step 2 Configuring R1 You connected your laptop to R1 to configure it. As stated before, interface fastEthernet0/0 must be configured as a trunk link and the cable connected to SW1s fa0/24 port. Also, 3 sub-interfaces must be created in R1 to separate VLAN traffic. You also define the sub-interfaces encapsulation as 802.1q. The commands are listed below: R1(config)# int fa0/0 R1(config)# no ip address R1(config)# no shut R1(config)# int fa0/1.10
Note: the number at the end of the encapsulation command represents the VLAN ID and must match the VLAN ID configured in the switch.
Step 3 Wrapping up Once SW1 and R1 are configured to perform router-on-a-stick, you check the user PCs and devices to ensure they all have proper IP configuration (IP address, default gateway, subnet mask, etc) of the VLAN it belongs. All user devices must use R1s sub-interface representing its VLAN as default gateway. After everything is set, you issue a few pings within the same VLAN and between different VLANs and watch all of them flow successfully.