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

Switch C2960G-24TC-L Vlan Config?

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
Highlighted

Hi  jalil1408 , 1. I wonder

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

 

 

 

 

 

 

4 REPLIES 4
Rising star

Is there a device connected

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

 

 

Participant

This discussion has been

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

Enthusiast

You have not assigned any

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

Martin

Highlighted

Hi  jalil1408 , 1. I wonder

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

 

 

 

 

 

 

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards