Thursday, 24 May 2012
 Home arrow Articles arrow cisco arrow Cisco switch: 802.1q trunk to router, aka router-on-a-stick
   
Main Menu
Home
News
Blog
Links
Search
FAQs
Spider
Articles
@intrenet
Free Softwares
Break for fun
Friends VIdeos
Techno videos
Contact Us
Disclaimer
Guest Book
Speed test
V.E.C. Calculator
IPv4 Subnet Calc
IPv6 Subnet Calc
Byte Converter
Converter
GMT/UTC Time
Bandwidth Calc
Allinone Calc
IANA Port Numbers
Country Call Codes
Pk Postal Codes
Surf Anonumously
Visitors Counter
mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday46
mod_vvisit_counterYesterday273
mod_vvisit_counterThis week881
mod_vvisit_counterThis month5430
mod_vvisit_counterAll126106
 
 
 
 


Cisco switch: 802.1q trunk to router, aka router-on-a-stick PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Amanatullah khalil   
Sunday, 24 May 2009

Cisco switch: 802.1q trunk to router, aka router-on-a-stick

Connect a Cisco switch and router via 802.1q trunking. This configuration is known as a router-on-a-stick.


First, let’s start with the switch. VLAN 1 exists by default, so we’ll add a couple of other VLANs:

vlan 100
name data
state active

vlan 200
name data
state active

Now, let’s configure the switchport to connect to the router:
interface fastethernet 1/0/1
switchport trunk encapsulation dot1q
switchport mode trunk

Over to the router!

interface fastethernet 0/0
no ip address

interface fastethernet 0/0.1
encapsulation dot1q 1 native

interface fastethernet 0/0.100
encapsulation dot1q 100
ip address 192.168.100.1 255.255.255.0

interface fastethernet 0/0.200
encapsulation dot1q 200
ip address 192.168.200.1 255.255.255.0

At this point, workstations on VLAN 100 should be able to ping the 192.168.100.1 address, and workstations on VLAN 200 should be able to ping the 192.168.200.1 address.

If, for some reason, the native VLAN on the switchport is something other than 1, change the encapsulation statement on the router, or the trunk may not form.

____________________________________________________________________________

courtesy  http://www.tech-recipes.com/rx/1853/Cisco_switch_802_1q_trunk_to_router_on_a_stick/

 

 

 
< Prev   Next >
 
 
 
csatpk Newsflash
Statistics
OS: Linux h
PHP: 5.2.17
MySQL: 5.1.63-community-log
Time: 15:36
Caching: Disabled
GZIP: Disabled
Members: 3
News: 368
Web Links: 5
Visitors: 266874
Popular