cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1045
Views
3
Helpful
4
Replies

Switch C2960G-24TC-L Vlan Config?

jalil1408
Level 1
Level 1

I'm configuring my Cisco Switch C2960G-24TC-L as follow:

 - Add Vlan2
 - Set ports 21-24 to trunk mode
 - Allow all vlans on these four ports

So I executed these commands after the switch has been reset to its factory defaults:

conf t
vlan 2
name guest

end

conf t
int vlan1
no shut

end

conf t
int vlan2
no shut

end

conf t
int range Gi0/21-24
switchport mode trunk
switchport trunk allowed vlan all

end

conf t
int range Gi0/1-24
no shut

end


copy run start
reload

 

Please find attached the outputs of these commands (after the switch rebooted):

sh ip int brief
show vlan
sh running-config


I wonder why all interfaces are down except vlan1 and vlan2?
Also there is no ports assigned to vlan2, while it is supposed to show Gi0/21-24 ?

What's wrong with my config?

1 Accepted Solution

Accepted Solutions

MD KAFINUZZAMAN
Level 1
Level 1

Hi  jalil1408 ,

 

1. I wonder why all interfaces are down except vlan1 and vlan2?

Ans: you have called interface vlan 1 and interface vlan 2 . and it is enable by no shut command.

so it is administratively up but line  Protocol is down because there is no device connected to any port.

2. Also there is no ports assigned to vlan2, while it is supposed to show Gi0/21-24 ?

Ans:  int range Gi0/21-24 is trunk port and  all vlan allowed so all vlan can pass through this port. for more details  give show trunk.

*** your configuration is OK. but you have configured interface vlan 1 and interface vlan 2 and it has no ip address. if really  no ip address for this vlan then 

I thik no need to configure interface vlan 1 and 2

That's all

 

Thanks

kafi

 

 

 

 

 

 

View solution in original post

4 Replies 4

Charles Hill
VIP Alumni
VIP Alumni

Is there a device connected to any of the ports?

It will show down until a device is connected to a port.  

 

If if you do a shut, it will show administratively down.  When administratively down, the port will not come up regardless of what is connected to the port, until a no shut is entered.

 

hope this helps

please rate helpful posts 

thanks

 

 

This discussion has been reposted to the LAN, Switching and Routing community.

Martin Carr
Level 4
Level 4

You have not assigned any ports to VLAN 2, that is why.

Martin

MD KAFINUZZAMAN
Level 1
Level 1

Hi  jalil1408 ,

 

1. I wonder why all interfaces are down except vlan1 and vlan2?

Ans: you have called interface vlan 1 and interface vlan 2 . and it is enable by no shut command.

so it is administratively up but line  Protocol is down because there is no device connected to any port.

2. Also there is no ports assigned to vlan2, while it is supposed to show Gi0/21-24 ?

Ans:  int range Gi0/21-24 is trunk port and  all vlan allowed so all vlan can pass through this port. for more details  give show trunk.

*** your configuration is OK. but you have configured interface vlan 1 and interface vlan 2 and it has no ip address. if really  no ip address for this vlan then 

I thik no need to configure interface vlan 1 and 2

That's all

 

Thanks

kafi

 

 

 

 

 

 

Review Cisco Networking for a $25 gift card