[
[
[email protected]2016-11-17 18:05:04
System administration
[email protected], 2016-11-17 18:05:04

How to configure VLAN on Cisco2950?

Good evening! I didn’t have much to do with Cisco, but I got Cisco2950 24 ports. I found the latest firmware, flashed it, set it up according to the manual on the Internet, everything works. The problem is that I can’t figure out the VLAN, how to configure them to a specific IP.
For example, Fa0/10 1.1.1.1 referred to Mysql, Fa0/11 1.1.2.1 referred to WEB, etc. Maybe there is somewhere to read on vlan on cisco or someone will show a simple example.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
oia, 2016-11-17
@oia

bsdadmin.ru/index.php/cisco-ios/229-vlan-cisco2950skeletor.org.ua?p=150
_

I
Ilyas, 2016-11-18
@id2669099

I will give 2 specific examples for configuration: the first option, the GigabitEthernet0/1 interface will receive tagged traffic, and the second option, the GigabitEthernet0/2 interface will accept untagged traffic and add the 100 vlan label to it:

Switch#conf t ---- enter configuration mode
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 100 ----create vlan 100
Switch(config-vlan)#name management ----name it
Switch(config-vlan)#exit ----go up one level to global configuration mode
Switch(config)#interface GigabitEthernet0/1 ---- enter the configuration mode of the interface we need
Switch(config-if)#switchport mode trunk ----set the operation mode of the trunk interface
Switch(config-if)#switchport trunk allowed vlan 100 ----specify what is on this the interface accepts tagged traffic with a label of 100 (if you need to add more to this vlan, then enter the switchport trunk allowed vlan add 200 command, if there is no add, it will wipe the vlans that were added before and only those specified in the last command will remain )
Switch(config-if)#exit ----go up one level to the global configuration mode
Switch(config)#interface GigabitEthernet0/2 ----go to the configuration mode of the interface we need
Switch(config)#switchport mode access ----set the access
Switch interface mode (config-if)#switchport access vlan 100 ----specify that all traffic that comes to this interface must be tagged with vlan 100

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question