4-Configure A Router On A Stick - Implementing and Administering Cisco Solutions
4-Configure A Router On A Stick - Implementing and Administering Cisco Solutions
You are using a US English keyboard layout. This cannot be changed once the lab has
initialized.
Visit Device Help for info about changing the OS keyboard layout and screen resolution after
lab initialization.
Step 1
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 1/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
Step 2
By assigning SW1 port E0/2 to VLAN 2, you have included the router R1 in VLAN 2. It can
now act as the default gateway for both VLANs.
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 2/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
Step 3
Access the R1 console, configure its Ethernet0/1 interface with IPv4 address
10.10.2.1/24, and enable the interface.
Step 4
R1 can now act as a gateway for VLAN 2. Before you configure R1 as the default gateway
for PC4, verify that PC4 belongs to the same VLAN 2. According to the topology diagram,
PC4 is connected to SW2 Ethernet 1/1 interface. Examine the VLAN information summary
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 3/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
The output shows that Ethernet1/1 access VLAN is set to 2. Alternatively, because Cisco
Discovery Protocol is enabled, you can use the show cdp neighbors detail command
on PC4 to view SW2 information.
Version :
Cisco IOS Software, Solaris Software (I86BI_LINUXL2-ADVENTERPRISEK9-M), Experimental
Version 15.1(20130919:231344) [dstivers-sept19-2013pm-team_track 107]
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Thu 19-Sep-13 22:38 by dstivers
advertisement version: 2
VTP Management Domain: ''
Native VLAN: 2
Duplex: half
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 4/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
Step 5
On PC4, configure router R1’s VLAN 2 IPv4 address 10.10.2.1 as the default gateway
and exit to the privileged EXEC mode.
The default gateway IPv4 address and the host IPv4 address must belong to the same
subnet.
Step 6
Verify that PC4 can now reach hosts on VLAN 1 by pinging PC1 (10.10.1.10).
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 5/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
Refer to the topology diagram to understand the physical path from PC4 to PC1. The
VLAN 2 path starts at PC4 and proceeds to SW2. Then, it crosses the trunk link to SW1
and continues up to the R1 Ethernet0/1 interface. R1 performs the route forwarding to
VLAN 1. It sends the packet out of its Ethernet0/0 interface back to SW1 on VLAN 1, and
then SW1 delivers the packet to PC1.
Step 7
According to the topology diagram, PC2 is also in VLAN 2. Before you configure the
default gateway on PC2, verify that it belongs to VLAN 2. All devices have Cisco
Discovery Protocol enabled. Use the information obtained by the Cisco Discovery
Protocol to verify VLAN configuration.
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 6/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
Version :
Cisco IOS Software, Solaris Software (I86BI_LINUXL2-ADVENTERPRISEK9-M), Experimental
Version 15.1(20130919:231344) [dstivers-sept19-2013pm-team_track 107]
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Thu 19-Sep-13 22:38 by dstivers
advertisement version: 2
VTP Management Domain: ''
Native VLAN: 2
Duplex: half
Step 8
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 7/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
Step 9
Verify that PC2, which is connected to VLAN 2 on SW1, can reach hosts that are
connected to VLAN 1 on SW2. Ping PC3 (10.10.1.30). The attempt should succeed.
There is connectivity between PC2 and PC3. Consulting the topology diagram, trace the
path between PC2 and PC3. Remember that a device with the routing function must be in
the path, since PC2 and PC3 are not in the same subnets and VLANs.
At this point, successful routing exists between two VLANs using two physical interfaces on R1.
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 8/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
In this lab, only VLAN 2 and VLAN 3 will be configured on the router’s trunk interface Ethernet
0/1. The Ethernet 0/0 interface will remain in VLAN 1. In a real environment, you would configure
all required VLANs to the trunk.
Step 10
Start by accessing the SW1 console and creating VLAN 3, assigning it the name
"Marketing," and then return to the Global Configuration mode.
Step 11
Configure the port connecting to PC1 as an access interface, and assign it to VLAN 3.
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 9/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
Step 12
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
3 enet 100003 1500 - - - - - 0 0
The output shows two ports are in VLAN 3. Ethernet 1/0 is the access interface that you
just configured. Ethernet 0/0 is the trunk interface towards SW2, which was pre-
configured for the lab. VLAN 3 is allowed on the trunk.
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 10/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
Step 13
Access the console of PC1 and configure its IPv4 address and default gateway. Both
addresses must belong to the same subnet, the subnet allocated for VLAN 3, which is
10.10.3.0/24. For PC, use the IPv4 address 10.10.3.10/24. For the default gateway, use
the IPv4 address 10.10.3.1/24.
Step 14
Access the console of SW2 and create VLAN 3, as you did on SW1. Assign the port
connecting PC3 as an access interface, and assign it to VLAN 3.
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 11/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
Step 15
Step 16
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 12/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
3 enet 100003 1500 - - - - - 0 0
The output shows two ports are in VLAN 3. Ethernet 1/0 is the access interface that you
just configured. Ethernet 0/0 is the trunk interface towards SW1, which was pre-
configured for the lab. VLAN 3 is allowed on the trunk.
Step 17
Access the console of PC3 and configure its IPv4 address and default gateway. Both
addresses must belong to the same subnet, the subnet that is allocated for VLAN 3. For
PC3 use the IPv4 address 10.10.3.30/24.
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 13/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
Note that although you configured the PC1 and PC3 with the default gateway, you have
not yet configured 10.10.3.1/24 IPv4 address on the router.
Step 18
PC3 and PC1 are now correctly configured. The switch ports that they are connected to
are assigned to VLAN 3. Verify that there is connectivity between them.
Step 19
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 14/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
Use the R1 Ethernet0/1 to SW1 Ethernet0/2 connection as a trunk for VLANs 2 and 3. To
prepare for the trunk port configuration on R1, you must configure SW1 Ethernet0/2 as a
trunk port. Only two VLANs will be configured on the interface. Configure Ethernet0/2 on
SW1 as a trunk with native VLAN 256 and 802.1Q encapsulation; VLAN 256 is already
configured on SW1.
Note that if you do not allow specific VLANs on the trunk, the default configuration allows
all VLANs.
Step 20
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 15/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
Now, configure Ethernet 0/1 interface on R1 so that it connects to both VLAN 2 and VLAN
3. First, remove the IPv4 address that is currently configured on R1 Ethernet 0/1 physical
interface.
Step 21
To accommodate two VLANs and their two subnets, create two logical subinterfaces, one
for each VLAN, of the Ethernet 0/1 interface. First, create the logical Ethernet0/1.2
subinterface, assign it to VLAN 2, and configure it with the appropriate IPv4 address that
is given in the Device Information table.
In this example, the subinterface number (.2), the VLAN ID (2), and the third octet of the
IPv4 address (2) are all consistent with each other. This practice is common, but it is not a
technical requirement.
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 16/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
Step 22
Create the logical Ethernet0/1.3 subinterface, assign it to VLAN 3, and configure it with
the appropriate IPv4 address. Leave the configuration mode when you are done.
Step 23
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 17/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
Step 24
Verify that the PCs can also reach each other. From PC1 verify connectivity to PC2.
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 18/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
Step 25
Verify that R1 is in the path between PC1 and PC2 using the traceroute command.
Step 26
Also verify that PC1 can still reach the switch management IPv4 addresses that remain in
VLAN 1. Ping 10.10.1.4 and 10.10.1.5. Both attempts should succeed.
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 19/20
3/26/2020 Configure a Router on a Stick | Implementing and Administering Cisco Solutions
https://ondemandelearning.cisco.com/cisco-cte/ccna10/sections/16/pages/4 20/20