0% found this document useful (0 votes)
32 views1 page

Cisco Router-on-a-Stick Setup Guide

The document describes configuring a Cisco router-on-a-stick topology with a switch. It details configuring two VLANs on the switch for RED and GREEN networks and a trunk port to the router. It also shows configuring two subinterfaces on the router for the VLANs and assigning them IP addresses to allow communication between the VLANs through the router.

Uploaded by

Rami Saleh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views1 page

Cisco Router-on-a-Stick Setup Guide

The document describes configuring a Cisco router-on-a-stick topology with a switch. It details configuring two VLANs on the switch for RED and GREEN networks and a trunk port to the router. It also shows configuring two subinterfaces on the router for the VLANs and assigning them IP addresses to allow communication between the VLANs through the router.

Uploaded by

Rami Saleh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Cisco Router-on-a-stick with Switch

SWITCH CONFIGURATION # conf t (config)# vlan database (config-vlan)# vlan 10 name RED (config-vlan)# vlan 20 name GREEN (config-vlan)# exit (config)# interface FastEthernet1/0/1 (config-if)# description trunk-to-router-on-a-stick (config-if)# switchport trunk encapsulation dot1q (config-if)# switchport mode trunk (config-if)# exit (config)# interface FastEthernet1/0/2 (config-if)# description connection-to-RED-VLAN (config-if)# switchport mode access (config-if)# switchport access vlan 10 (config-if)# exit (config)# interface FastEthernet1/0/3 (config-if)# description connection-to-GREEN-VLAN (config-if)# switchport mode access (config-if)# switchport access vlan 20 (config-if)# exit (config)# exit # copy run start ROUTER CONFIGURATION # conf t (config)# interface fastethernet 0/0.10 (config-if)# encapsulation dot1q 10 (config-if)# ip address [Link] [Link] (config-if)# exit (config)# interface fastethernet 0/0.20 (config-if)# encapsulation dot1q 20 (config-if)# ip address [Link] [Link] (config-if)# exit Now, in order for the two hosts to communicate between them, they must set as default gateway the IP address of the corresponding router subinterface address (e.g for host in VLAN 10 the gateway must be [Link] and for host in VLAN 20 the gateway must be [Link]).

You might also like