[afnog] VLANs on Cisco Catalyst 2950
Bruce Zamaere
bzamaere at gmail.com
Fri May 26 11:29:43 EAT 2006
Pactrick / Mark
Thanks for the prompt replies! Below is the entire running config.
-----------cut here-----
sh run
Building configuration...
Current configuration : 1941 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
!
ip subnet-zero
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
interface FastEthernet0/1
switchport access vlan 101
switchport mode access
no ip address
!
interface FastEthernet0/2
switchport access vlan 102
switchport mode access
no ip address
!
interface FastEthernet0/3
switchport access vlan 103
switchport mode access
no ip address
!
interface FastEthernet0/4
no ip address
!
interface FastEthernet0/5
no ip address
!
interface FastEthernet0/6
no ip address
!
interface FastEthernet0/7
no ip address
!
interface FastEthernet0/8
no ip address
!
interface FastEthernet0/9
no ip address
!
interface FastEthernet0/10
no ip address
!
interface FastEthernet0/11
no ip address
!
interface FastEthernet0/12
no ip address
!
interface FastEthernet0/13
no ip address
!
interface FastEthernet0/14
no ip address
!
interface FastEthernet0/15
no ip address
!
interface FastEthernet0/16
no ip address
!
interface FastEthernet0/17
no ip address
!
interface FastEthernet0/18
no ip address
!
interface FastEthernet0/19
no ip address
!
interface FastEthernet0/20
no ip address
!
interface FastEthernet0/21
no ip address
!
interface FastEthernet0/22
no ip address
!
interface FastEthernet0/23
no ip address
!
interface FastEthernet0/24
switchport trunk allowed vlan 101-103
switchport mode trunk
no ip address
!
interface Vlan1
ip address 192.168.2.1 255.255.255.0
no ip route-cache
shutdown
!
interface Vlan101
ip address 10.1.101.1 255.255.255.0
no ip route-cache
shutdown
!
interface Vlan102
ip address 10.1.102.1 255.255.255.0
no ip route-cache
shutdown
!
interface Vlan103
ip address 10.1.103.1 255.255.255.0
no ip route-cache
!
ip http server
!
!
line con 0
line vty 0 4
login
line vty 5 15
login
!
end
----------cut here------
At the moment I have to host on ports 1 and 24 with IPs on their respective
subnets. I can only ping the switch when the vlan in question is brought up!
Also from the switch I can't ping the host or the interface unless the vlan
is brought up. So if I can only have one vlan up at a time how should my
config / setup change?
I appreciate your assistance guys!
rgds,
Bruce.
On 5/26/06, Patrick Okui <pokui at psg.com> wrote:
>
> On Friday 26 May 2006 10:19, Bruce Zamaere wrote:
> > Guys,
> >
> > I'm having a bit of a problem configuring vlans on a cisco 2950.
> > I'm trying to achieve the following and don't know if I done it
> > correctly.
> <snip>
>
> the entire show running-config would have been more useful as well as
> show vlan
>
> > The interesting part is that the vlan configuration shows all the
> > vlans except vlan1 in shutdown mode. If I bring up a vlan with the
> > no shut command the vlan in question comes up and vlan1
> > automatically shutsdown. Such being the case I can't seem to get
> > more than 1 vlan to be up at a time. Does anyone know why this is
> > the case and how I can get around it?
> <snip>
>
> Well I run into this in Nairobi, two things to check are
> 1. make sure you have assigned an IP address to each vlan
> 2. after that, just do the usual ping tests to see if the vlans are
> working.
>
> Apparently the VLAN which is "not shutdown" is the only one through
> which you can reach the actual switch (via the vlan IP). AND,
> apparently only one of them can be "reachable" at a time. (unless
> there's a no cisco-bs command for this that I don't know of).
>
> If the pings show that the ports are correctly isolated and if you can
> ping/telnet/whatever to the IP of the VLAN which is currently up then
> don't worry about the "administratively down" status of the VLANs.
>
> >
> > regards,
> >
> > Bruce.
>
> --
> patrick
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv2.cfi.co.ug/pipermail/afnog/attachments/20060526/386c755c/attachment-0001.html
More information about the afnog
mailing list