Documente Academic
Documente Profesional
Documente Cultură
php/VLAN_Cisco_IOS
1 of 5
http://mars.tekkom.dk/mediawiki/index.php/VLAN_Cisco_IOS
Contents
1 Related topics
2 Cisco Materials
3 Show commands
3.1 Show vlan
3.1.1 Show VLAN Field Descriptions
3.2 Show interfaces
3.3 show switchport status
4 Adding VLAN's
4.1 Adding VLAN's from configure mode
4.2 Adding VLAN's from database mode
5 Access Ports
5.1 Adding a port statically to a VLAN
5.2 Adding a range of ports to a VLAN
Related topics
VLAN Trunk Cisco IOS
Cisco Materials
CCNP 3 chapter 2 Implementing VLAN's (http://mars.tekkom.dk/cisco/ccnp3/ch2/2_2_1/index.html)
Show commands
Show vlan
Gives a great view of VLAN's and which ports are assigned to it. Try also show vlan brief
SW2#show vlan
VLAN
---1
100
101
102
Name
-------------------------------default
Admin
Sales
Students
Status
--------active
active
active
active
1002
1003
1004
1005
fddi-default
token-ring-default
fddinet-default
trnet-default
act/unsup
act/unsup
act/unsup
act/unsup
Ports
------------------------------Fa0/1, Fa0/2, Gi0/2
Fa0/8, Fa0/9, Fa0/10, Fa0/11
Fa0/12, Fa0/13, Fa0/14, Fa0/22
2014.06.17. 21:51
http://mars.tekkom.dk/mediawiki/index.php/VLAN_Cisco_IOS
2 of 5
1
100
101
102
1002
1003
1004
1005
enet
enet
enet
enet
fddi
tr
fdnet
trnet
100001
100100
100101
100102
101002
101003
101004
101005
1500
1500
1500
1500
1500
1500
1500
1500
http://mars.tekkom.dk/mediawiki/index.php/VLAN_Cisco_IOS
ieee
ibm
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Show interfaces
A quick summary of all ports and their status
SW2#show interfaces status
Port
....
Fa0/8
Fa0/9
Fa0/10
....
Name
Status
Vlan
notconnect
notconnect
notconnect
102
102
102
Duplex
auto
auto
auto
Speed Type
auto 10/100BaseTX
auto 10/100BaseTX
auto 10/100BaseTX
2014.06.17. 21:51
http://mars.tekkom.dk/mediawiki/index.php/VLAN_Cisco_IOS
3 of 5
http://mars.tekkom.dk/mediawiki/index.php/VLAN_Cisco_IOS
Adding VLAN's
The VLAN configuration is stored in a file named VLAN.DAT
Switch1#dir
Directory of flash:/
2
3
5
6
7
21
22
8
24
25
26
-rwx
-rwx
-rwx
-rwx
drwx
-rwx
-rwx
-rwx
-rwx
-rwx
-rwx
128
2888547
616
1663
832
109
109
3727
306
880640
47
Mar
Mar
Apr
Mar
Mar
Mar
Mar
Mar
Mar
Mar
Mar
26
01
27
01
04
01
01
22
01
08
22
2007
1993
2009
1993
1993
1993
1993
2009
1993
1993
2009
13:58:48
01:16:05
12:40:25
00:05:49
23:52:10
00:04:30
00:04:30
10:12:56
00:03:48
22:39:07
10:12:56
layout.text
c2950-i6q4l2-mz.121-13.EA1.bin
vlan.dat
config.backup-1.2
html
info
info.ver
config.text
env_vars
html2.tar
private-config.text
VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/1, Fa0/2, Fa0/3, Fa0/4
2014.06.17. 21:51
http://mars.tekkom.dk/mediawiki/index.php/VLAN_Cisco_IOS
4 of 5
http://mars.tekkom.dk/mediawiki/index.php/VLAN_Cisco_IOS
Admin
Sales
Students
fddi-default
token-ring-default
fddinet-default
trnet-default
active
active
active
active
active
active
active
Access Ports
Access Ports are ports that are connected to specific vlans.
2014.06.17. 21:51
http://mars.tekkom.dk/mediawiki/index.php/VLAN_Cisco_IOS
5 of 5
http://mars.tekkom.dk/mediawiki/index.php/VLAN_Cisco_IOS
2014.06.17. 21:51