cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
386
Views
0
Helpful
2
Replies

Enable network access given vlan id and name

Habkhal
Level 1
Level 1

Hi guys. There is this situation here. After setting up a cisco catalyst 2960 switch , the network admin has given me a vlan id of 3141 and name xxxxxxxxxx. That I need to configure so that computers that are connected to this switch can access the network. The switch is connected to the schools main network via the sfp module (Gi1/0/25). Since I have no rights over the school router, I can only start from here. Anyone knows how I can solve this.

Thanks. 

1 Accepted Solution

Accepted Solutions

Seb Rupik
VIP Alumni
VIP Alumni

Try the following:

!
vlan 3141
  name xxxx
!
int gi1/0/25
  switchport trunk allowed vlan add 3141
!
int gi1/0/1
  switchport access vlan 3141
  spanning-tree portfast
  no shut
!

 

This assumes that the trunk link is already configured and working and that the upstream switch/ router connected to gi1/0/25 is tagging VLAN 3141. 

In the example a user device is connected to gi1/0/1

 

cheers,

Seb.

View solution in original post

2 Replies 2

Seb Rupik
VIP Alumni
VIP Alumni

Try the following:

!
vlan 3141
  name xxxx
!
int gi1/0/25
  switchport trunk allowed vlan add 3141
!
int gi1/0/1
  switchport access vlan 3141
  spanning-tree portfast
  no shut
!

 

This assumes that the trunk link is already configured and working and that the upstream switch/ router connected to gi1/0/25 is tagging VLAN 3141. 

In the example a user device is connected to gi1/0/1

 

cheers,

Seb.

ITexpert
Level 3
Level 3

 

 

In this case you just need to confirm from school network admin, that  uplink port from neighbor  SW where new switch is going to be connected is configured as trunk port, then you can configure the following  commands,

 

vlan 3141

name xxxxxxx 

exit

 

int g1/0/25 

switchport mode encapsulation dot1q

switchport mode trunk

exit

 

int range g1/0/1-24

switchport mode access

switchport access vlan 3141

exit

 

wr mem 

 

 

Review Cisco Networking products for a $25 gift card