PDA

View Full Version : Router on the stick


diallodjeri
08-07-2011, 01:07 AM
Hi Folks,
I'm bit confused :confused:about the Vlan configuration and the router on the stick in the figure 11.10 on the page 584 ,in my understanding every ports by default are on the vlan 1. But in order to configure a router on stick with 3 vlans: vlan 1,vlan 2 and vlan 3, Todd wrote as followed:
switch#conf t
switch(config)#int f0/2
switch(config-if)#switchport access vlan 1
switch(config)#int f0/4
switch(config-if)#switchport access vlan 1 etc...
If every ports are on the vlan 1 by default I don't see the need to try to put on vlan 1 the're already there.
Please help me here:confused:
I guess I should say that I'm comfortable with vlan and router on the stick configuration but what I don't get is why Todd wrote:
switch(config-if)#switchport access vlan 1. Like I said every port are on vlan 1 already by default.

Ltat42a
08-07-2011, 04:36 AM
One of the switchports must be a trunk going to the router.

Big Evil
08-07-2011, 08:19 AM
Check out

http://www.lammle.com/discussion/showthread.php?t=1853&highlight=Router+stick

diallodjeri
08-07-2011, 11:42 AM
I guess I should say that I'm comfortable with vlan and router on the stick configuration but what I don't get is why Todd wrote:
switch(config-if)#switchport access vlan 1. Like I said every port are on vlan 1 already by default.

lammle
08-07-2011, 11:54 AM
Ports 1 & 2 are not connected to a router, but to hosts in VLAN 1.
Yes, those ports are members of VLAN 1 by default, but they are also set to desirable mode.
I only want those to be Access ports so I can provide Port Security and also to make sure they do not automatically trunk if these somehow connect to another switch.

Todd Lammle

diallodjeri
08-07-2011, 01:56 PM
Oh well that makes sense if you are just trying to make theme access ports.