|
Posted by Tom on May 27, 2008, 11:11 am
If you were Registered and logged in, you could reply and use other advanced thread options On May 26, 1:48=A0pm, Bo...@hotmail.co.uk wrote:
>
>
>
>
>
> > > > The 1811 supports up to 8 VLANS.
>
> > > > switch(config)#vlan 2
> > > > switch(config-vlan)#name VLAN2
> > > > switch(config-vlan)#int fa 2
> > > > switch(config-if)#switchport access vlan 2
> > > > switch(config-if)#ip address 10.10.3.1 255.255.255.0
>
> > > > Verify which ports are assigned to which vlan
> > > > switch#sh vlan
>
> > > Interesting...I had tried this before, but it seem not to work
> > > properly. =A0Also the command "show vlan" fails with ambigous command,=
> > > but I can go to vlan database and type show and see the vlans.
>
> > > How do I know which port vlan 2 is assigned??? =A0For example, will it=
> > > be assigned to f2, f3?...I would think f2 would need to somehow be
> > > associated with vlan 2??? =A0For example, if I want to assign 10.10.4.=
1
> > > to f3 using vlan 3, how does the router associate that port with
> > > vlan3...etc...
>
> > > Thanks:)
>
> > Two very different things. =A0Putting a port as an access port in vlan 3=
> > immediately makes it a switched port. =A0Which means that whatever you
> > connect to that router must be addressed in vlan 3's subnet, but the
> > router will not have an IP on that port. =A0On a l3 switch, show vlan
> > will tell you what ports are in what vlans, you just need to find the
> > proper command for this router. =A0Now, if you want to create vlans and
> > then assign them to layer 2 ports, this kind of eliminates the need to
> > have a routed port in the same vlan. =A0The SVI is the gateway for the
> > subnet, and your routed ports are used for building a neighbor/
> > relationship with another router to advertise whatever subnets or
> > vlans are off the 1811. =A0Either way, you should not have a case where
> > you are assigning an IP to a switched port. =A0You are assigning an IP
> > to a SVI and putting ports in that vlan so that nodes connected to it
> > can use that subnet/gateway.
>
> > 'Show int f0/2 switchport' or one of those might work perhaps for your
> > show vlan question? =A0I have never used the smaller cisco routers, but
> > that is a command string on a l3 switch that shows a lot of
> > information about trunks, etc.- Hide quoted text -
>
> The "switch modules in routers" vary a bit. I would guess that
> yours might be like a one or two port router with a 9 port HWIC
> ethernet module in it.
>
> If it is you can do something like
>
> create vlans 3, 4, 5, 6, 7, 8
>
> interface FastEthernet2
> sw mode access =A0! may or may not be needed
> sw access vl 2
>
> interface FastEthernet3
> sw mode access =A0! may or may not be needed
> sw access vl 3
>
> int vl 2
> ip address x.x.x.x
> no shut
>
> int vl 3
> ip address y.y.y.y
> no shut
>
> You create vlans either with
>
> conf t
> vlan 2
> vlan 3
> end
>
> or
>
> vlan dat
> vl 2
> vl 3
> exit
> Latter roughly; may have forgotten.
> You have to make a point of saving it anyway.
> Think it may prompt.
>
> On the 9 port HWIC it is not possible to
> assign an IP address directly to a port.
>
> Good luck.
Thank everyone for the great feedback and comments!! Really
appreciated!
|