Vous êtes sur la page 1sur 20

STP

Switch>ena
Switch#sho span
Switch#sho spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID
Priority
32769
Address
0006.2A63.1C32
Cost
38
Port
1(FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority
Address
Hello Time
Aging Time
Interface
---------------Fa0/1
Fa0/2

Role
---Root
Altn

Sts
--FWD
BLK

32769 (priority 32768 sys-id-ext 1)


0050.0F64.5827
2 sec Max Age 20 sec Forward Delay 15 sec
20
Cost
--------19
19

Prio.Nbr
-------128.1
128.2

Type
-------------------------------P2p
P2p

Switch#sho spa
Switch#sho spanning-tree det
Switch#sho spanning-tree detail
VLAN0001 is executing the ieee compatible Spanning Tree Protocol
Bridge Identifier has priority of 32768, sysid 1, 0050.0F64.5827
Configured hello time 2, max age 20, forward delay 15
Current root has priority 32769
Root port is 1 (FastEthernet0/1), cost of root path is 38
Topology change flag not set, detected flag not set
Number of topology changes 0 last change occurred 00:00:00 ago
from FastEthernet0/1
Times: hold 1, topology change 35, notification 2
hello 2, max age 20, forward delay 15
Timers: hello 0, topology change 0, notification 0, aging 300
Port 1 (FastEthernet0/1) of VLAN0001 is root forwarding
Port path cost 19, Port priority 128, Port Identifier 128.1
Designated root has priority 128, address 00E0.F779.9E01
Designated bridge has priority 32769, address 0006.2A63.1C32
Timers: message age 16, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
Port 2 (FastEthernet0/2) of VLAN0001 is alternate blocking
Port path cost 19, Port priority 128, Port Identifier 128.2
Designated root has priority 128, address 00E0.F779.9E01
Designated bridge has priority 32769, address 0006.2A63.1C32
Timers: message age 16, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
Switch#sho span
Switch#sho spanning-tree summ
Switch#sho spanning-tree summary
Switch is in pvst mode

Root bridge for:


Extended system ID
is
Portfast Default
is
PortFast BPDU Guard Default is
Portfast BPDU Filter Default is
Loopguard Default
is
EtherChannel misconfig guard is
UplinkFast
is
BackboneFast
is
Configured Pathcost method used

enabled
disabled
disabled
disabled
disabled
disabled
disabled
disabled
is short

Name
Blocking Listening Learning Forwarding STP Active
---------------------- -------- --------- -------- ---------- ---------VLAN0001
1
0
0
1
2
---------------------- -------- --------- -------- ---------- ---------1 vlans
1
0
0
1
2
Switch#sho span
Switch#sho spanning-tree int
Switch#sho spanning-tree interface
% Incomplete command.
Switch#sho spanning-tree interface fa0/1
Vlan
Role Sts Cost
Prio.Nbr Type
---------------- ---- --- --------- -------- -------------------------------VLAN0001
Root FWD 19
128.1
P2p
Switch#
-----------------------------------------------------------------------------------------------------------------------------------To Configure Switch as a Root Bridge.
Switch#
Switch#span
Switch#config t
Enter configuration commands, one
Switch(config)#span
Switch(config)#spanning-tree vla
Switch(config)#spanning-tree vlan
Switch(config)#spanning-tree vlan
Switch(config)#spanning-tree vlan
Switch(config)#

per line. End with CNTL/Z.


1 pro
1 pri
1 priority 4096

After changing bridge priority value it should restart the switch.<=============


==
Switch#copy run startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Switch#reload
Switch#reload
Proceed with reload? [confirm]
%SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.
------------------------------------------------------------------------------------------------------------------------------------Switch>ena

Switch#sho span
Switch#sho spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID
Priority
4097
Address
0050.0F64.5827
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority
Address
Hello Time
Aging Time
Interface
---------------Fa0/1
Fa0/2

Role
---Desg
Desg

Sts
--FWD
FWD

4097 (priority 4096 sys-id-ext 1)


0050.0F64.5827
2 sec Max Age 20 sec Forward Delay 15 sec
20
Cost
--------19
19

Prio.Nbr
-------128.1
128.2

Type
-------------------------------P2p
P2p

Switch#
***In above Switch show as root bridge.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------This is in PortFast1 example
---------------------------------------------------------------------------------------------------Switch#
Switch>ena
Switch#sho span
Switch#sho spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID
Priority
32769
Address
0006.2A63.1C32
Cost
19
Port
1(FastEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority
Address
Hello Time
Aging Time
Interface
---------------Fa0/1
Fa0/2
Switch#

Switch>ena
Switch#sho pan

Role
---Root
Desg

Sts
--FWD
FWD

32769 (priority 32768 sys-id-ext 1)


0009.7C8C.861C
2 sec Max Age 20 sec Forward Delay 15 sec
20
Cost
--------19
19

Prio.Nbr
-------128.1
128.2

Type
-------------------------------P2p
P2p

Switch#sho span
Switch#sho spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID
Priority
32769
Address
0006.2A63.1C32
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority
Address
Hello Time
Aging Time
Interface
---------------Fa0/1
Fa0/2

Role
---Desg
Desg

Sts
--FWD
FWD

32769 (priority 32768 sys-id-ext 1)


0006.2A63.1C32
2 sec Max Age 20 sec Forward Delay 15 sec
20
Cost
--------19
19

Prio.Nbr
-------128.1
128.2

Type
-------------------------------P2p
P2p

Switch#
------------------------------------------------------------------------------------------------------------------Port Fast (To increase the the uptime speed of the port)
Configure in both switches
e.g:-1
Switch>ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state t
o up
%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state t
o up
Switch(config)#spa
Switch(config)#spanning-tree por
Switch(config)#spanning-tree portfast def
Switch(config)#spanning-tree portfast default
Switch(config)#
Switch>ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state t
o up
%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state t


o up
Switch(config)#spa
Switch(config)#spanning-tree por
Switch(config)#spanning-tree portfast def
Switch(config)#spanning-tree portfast default
Switch(config)#
-------------------------------------------------------------------------------------------------------------------e.g:2
Switch>ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#span
Switch(config)#spanning-tree pos
Switch(config)#spanning-tree por
Switch(config)#spanning-tree portfast defa
Switch(config)#spanning-tree portfast default
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#

Switch>ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#span
Switch(config)#spanning-tree por
Switch(config)#spanning-tree portfast defa
Switch(config)#spanning-tree portfast default <== to increase the up time spee
d of the port
Switch(config)#span
Switch(config)#spanning-tree mod
Switch(config)#spanning-tree mode rap
Switch(config)#spanning-tree mode rapid-pvst <== to quickly up the bckup link of
STP (Root Bridge)
Switch(config)#
---------------------------------------------------------------------------------------------------------------------------------------Switch>ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sho

Switch#show vlan
Switch#show vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup
VLAN
---1
1002
1003
1004
1005

Type
----enet
fddi
tr
fdnet
trnet

SAID
---------100001
101002
101003
101004
101005

MTU
----1500
1500
1500
1500
1500

Parent
------

RingNo
------

BridgeNo
--------

Stp
---ieee
ibm

BrdgMode
--------

Trans1
-----0
0
0
0
0

Trans2
-----0
0
0
0
0

Remote SPAN VLANs


-----------------------------------------------------------------------------Primary
------Switch#
Switch#

Secondary Type
Ports
--------- ----------------- -----------------------------------------vla
vlan 2
^
% Invalid input detected at '^' marker.
Switch#
Switch#
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan
Switch(config)#vlan 2
Switch(config-vlan)#exit
Switch(config)#vla
Switch(config)#vlan 3
Switch(config-vlan)#exit
Switch(config)#vla
Switch(config)#vlan 4
Switch(config-vlan)#exit
Switch(config)#
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sho vla
Switch#sho vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8

Fa0/9, Fa0/10, Fa0/11, Fa0/12


Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
2
3
4
1002
1003
1004
1005

VLAN0002
VLAN0003
VLAN0004
fddi-default
token-ring-default
fddinet-default
trnet-default

VLAN
---1
2
3
4
1002
1003
1004
1005

Type
----enet
enet
enet
enet
fddi
tr
fdnet
trnet

SAID
---------100001
100002
100003
100004
101002
101003
101004
101005

MTU
----1500
1500
1500
1500
1500
1500
1500
1500

active
active
active
act/unsup
act/unsup
act/unsup
act/unsup
Parent
------

RingNo
------

BridgeNo
--------

Stp
---ieee
ibm

BrdgMode
--------

Trans1
-----0
0
0
0
0
0
0
0

Trans2
-----0
0
0
0
0
0
0
0

Remote SPAN VLANs


-----------------------------------------------------------------------------Primary Secondary Type
Ports
------- --------- ----------------- -----------------------------------------Switch#
--------------------------------------------------------------------------------------------------------------------To add VLANs
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#vla
Switch(config)#vlan 5
Switch(config-vlan)#nam
Switch(config-vlan)#name aa
Switch(config-vlan)#exit
Switch(config)#vla
Switch(config)#vlan 56
Switch(config-vlan)#nam
Switch(config-vlan)#name bb
Switch(config-vlan)#exit
Switch(config)#vla
Switch(config)#vlan 7
Switch(config-vlan)#nam
Switch(config-vlan)#name cc
Switch(config-vlan)#exit
Switch(config)#
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sho vla

Switch#sho vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
2
VLAN0002
active
3
VLAN0003
active
4
VLAN0004
active
5
aa
active
7
cc
active
56 bb
active
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup
VLAN
---1
2
3
4
5
7
56
1002
1003
1004
1005

Type
----enet
enet
enet
enet
enet
enet
enet
fddi
tr
fdnet
trnet

SAID
---------100001
100002
100003
100004
100005
100007
100056
101002
101003
101004
101005

MTU
----1500
1500
1500
1500
1500
1500
1500
1500
1500
1500
1500

Parent
------

RingNo
------

BridgeNo
--------

Stp
---ieee
ibm

BrdgMode
--------

Trans1
-----0
0
0
0
0
0
0
0
0
0
0

Trans2
-----0
0
0
0
0
0
0
0
0
0
0

Remote SPAN VLANs


-----------------------------------------------------------------------------Primary Secondary Type
Ports
------- --------- ----------------- -----------------------------------------Switch#
----------------------------------------------------------------------------------------------------VLAN Database
Switch#
Switch#
Switch#vla
Switch#vlan da
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
Switch(vlan)#vla
Switch(vlan)#vlan 8 na

Switch(vlan)#vlan 8 name ABC


VLAN 8 added:
Name: ABC
Switch(vlan)#vla
Switch(vlan)#vlan 9 XYZ
^
% Invalid input detected at '^' marker.
Switch(vlan)#vlan 9 nam
Switch(vlan)#vlan 9 name XYZ
VLAN 9 added:
Name: XYZ
Switch(vlan)#exit <===cmd
APPLY completed.
Exiting....
Switch#sho vla
Switch#sho vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
2
VLAN0002
active
3
VLAN0003
active
4
VLAN0004
active
5
aa
active
7
cc
active
8
ABC
active
9
XYZ
active
56 bb
active
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup
VLAN
---1
2
3
4
5
7
8
9
56
1002
1003
1004
1005

Type
----enet
enet
enet
enet
enet
enet
enet
enet
enet
fddi
tr
fdnet
trnet

SAID
---------100001
100002
100003
100004
100005
100007
100008
100009
100056
101002
101003
101004
101005

MTU
----1500
1500
1500
1500
1500
1500
1500
1500
1500
1500
1500
1500
1500

Parent
------

RingNo
------

BridgeNo
--------

Stp
---ieee
ibm

BrdgMode
--------

Trans1
-----0
0
0
0
0
0
0
0
0
0
0
0
0

Trans2
-----0
0
0
0
0
0
0
0
0
0
0
0
0

Remote SPAN VLANs


------------------------------------------------------------------------------

Primary Secondary Type


Ports
------- --------- ----------------- -----------------------------------------Switch#
To delete vlans
e.g:Switch#
Switch#sho flas
Switch#sho flash:
Directory of flash:/
1 -rw2 -rw-

4414921
1036

<no date> c2960-lanbase-mz.122-25.FX.bin


<no date> vlan.dat

64016384 bytes total (59600427 bytes free)


Switch#del
Switch#delete flas
Switch#delete flash:vlan.dat
Delete filename [vlan.dat]?
Delete flash:/vlan.dat? [confirm]
Switch#reload
Proceed with reload? [confirm]
%SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.
C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(25r)FX, RELEASE SOFTWARE (fc4)
Cisco WS-C2960-24TT (RC32300) processor (revision C0) with 21039K bytes of memor
y.
2960-24TT starting...
Base ethernet MAC Address: 0001.96BC.931E
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 1 files, 0 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 64016384
flashfs[0]: Bytes used: 4414921
flashfs[0]: Bytes available: 59601463
flashfs[0]: flashfs fsck took 1 seconds.
...done Initializing Flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
Loading "flash:/c2960-lanbase-mz.122-25.FX.bin"...
########################################################################## [OK]
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive

San Jose, California 95134-1706

Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEAS


E SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Wed 12-Oct-05 22:05 by pt_team
Image text-base: 0x80008098, data-base: 0x814129C4

Cisco WS-C2960-24TT (RC32300) processor (revision C0) with 21039K bytes of memor
y.
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)
63488K bytes of flash-simulated
Base ethernet MAC Address
Motherboard assembly number
Power supply part number
Motherboard serial number
Power supply serial number
Model revision number
Motherboard revision number
Model number
System serial number
Top Assembly Part Number
Top Assembly Revision Number
Version ID
CLEI Code Number
Hardware Board Revision Number
Switch
-----*
1

Ports Model
----- ----26
WS-C2960-24TT

non-volatile configuration memory.


: 0001.96BC.931E
: 73-9832-06
: 341-0097-02
: FOC103248MJ
: DCA102133JA
: B0
: C0
: WS-C2960-24TT
: FOC1033Z1EY
: 800-26671-02
: B0
: V02
: COM3K00BRA
: 0x01
SW Version
---------12.2

SW Image
---------C2960-LANBASE-M

Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEAS


E SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Wed 12-Oct-05 22:05 by pt_team
Press RETURN to get started!

Switch>ena
Switch#sho vla
Switch#sho vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16

Fa0/17, Fa0/18, Fa0/19, Fa0/20


Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
1002
1003
1004
1005

fddi-default
token-ring-default
fddinet-default
trnet-default

VLAN
---1
1002
1003
1004
1005

Type
----enet
fddi
tr
fdnet
trnet

SAID
---------100001
101002
101003
101004
101005

MTU
----1500
1500
1500
1500
1500

act/unsup
act/unsup
act/unsup
act/unsup
Parent
------

RingNo
------

BridgeNo
--------

Stp
---ieee
ibm

BrdgMode
--------

Trans1
-----0
0
0
0
0

Trans2
-----0
0
0
0
0

Remote SPAN VLANs


-----------------------------------------------------------------------------Primary Secondary Type
Ports
------- --------- ----------------- -----------------------------------------Switch#
-------------------------------------------------------------------------------------------------------------------------------------------------Create Vlans in Switch

Switch#
Switch#vlan
Switch#vlan data
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
Switch(vlan)#vla
Switch(vlan)#vlan
Switch(vlan)#vlan
Switch(vlan)#vlan
VLAN 2 added:
Name: LAN_A
Switch(vlan)#vlan
Switch(vlan)#vlan
Switch(vlan)#vlan
VLAN 3 added:
Name: LAN_B
Switch(vlan)#vlan
Switch(vlan)#vlan
Switch(vlan)#vlan
VLAN 4 added:
Name: LAN_C
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch# <====

2na
2 na
2 name LAN_A

3 na
3 name LAN_B

4 nam
4 name LAN_C

Translating "<===="...domain server (255.255.255.255) % Name lookup aborted


Switch#
Switch#sho vla
Switch#sho vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig1/1, Gig1/2
2
LAN_A
active
3
LAN_B
active
4
LAN_C
active
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup
VLAN
---1
2
3
4
1002
1003
1004
1005

Type
----enet
enet
enet
enet
fddi
tr
fdnet
trnet

SAID
---------100001
100002
100003
100004
101002
101003
101004
101005

MTU
----1500
1500
1500
1500
1500
1500
1500
1500

Parent
------

RingNo
------

BridgeNo
--------

Stp
---ieee
ibm

BrdgMode
--------

Trans1
-----0
0
0
0
0
0
0
0

Trans2
-----0
0
0
0
0
0
0
0

Remote SPAN VLANs


-----------------------------------------------------------------------------Primary Secondary Type
Ports
------- --------- ----------------- -----------------------------------------Switch#
-------------------------------------------------------------------------------------------------------------------***COnfig vlans to interfaces

e.g:Switch>ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#int
Switch(config)#interface ra
Switch(config)#interface range fa0/1 -fa0/3
Switch(config-if-range)#swi
Switch(config-if-range)#switchport mod
Switch(config-if-range)#switchport mode acc

Switch(config-if-range)#switchport mode access


Switch(config-if-range)#swi
Switch(config-if-range)#switchport acc
Switch(config-if-range)#switchport access vla
Switch(config-if-range)#switchport access vlan 2
% Access VLAN does not exist. Creating vlan 2 <=============My issue: First cre
ate the vlan No and Name
Switch(config-if-range)#exit
Switch(config)#int
Switch(config)#interface fa0/4 -fa0/6
^
% Invalid input detected at '^' marker.
Switch(config)#int
Switch(config)#interface ra
Switch(config)#interface range fa
Switch(config)#interface range fa0/4 - fa0/6
Switch(config-if-range)#swi
Switch(config-if-range)#switchport mod
Switch(config-if-range)#switchport mode acc
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#swi
Switch(config-if-range)#switchport acc
Switch(config-if-range)#switchport access vla
Switch(config-if-range)#switchport access vlan 3
% Access VLAN does not exist. Creating vlan 3
Switch(config-if-range)#exit
Switch(config)#int
Switch(config)#interface ran
Switch(config)#interface range fa0/7 -fa0/9
Switch(config-if-range)#swi
Switch(config-if-range)#switchport mod
Switch(config-if-range)#switchport mode acc
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#swi
Switch(config-if-range)#switchport acc
Switch(config-if-range)#switchport access vla
Switch(config-if-range)#switchport access vlan 4
% Access VLAN does not exist. Creating vlan 4
Switch(config-if-range)#
Switch#
%SYS-5-CONFIG_I: Configured from console by console
------------------------------------------------------------------Switch#vla
Switch#vlan da
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
Switch(vlan)#vla
Switch(vlan)#vlan 2
VLAN 2 modified:
Switch(vlan)#vla
Switch(vlan)#vlan 2 na
Switch(vlan)#vlan 2 name LAN_A
VLAN 2 modified:
Name: LAN_A
Switch(vlan)#vla

Switch(vlan)#vlan
Switch(vlan)#vlan
VLAN 3 modified:
Name: LAN_B
Switch(vlan)#vla
Switch(vlan)#vlan
Switch(vlan)#vlan
Switch(vlan)#vlan
Switch(vlan)#vlan
VLAN 4 modified:
Name: LAN_C
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#sho vla
Switch#sho vlan

3 na
3 name LAN_B

na
nam
4 na
4 name LAN_C

VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/10, Fa0/11, Fa0/12, Fa0/13
Fa0/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/19, Fa0/20, Fa0/21
Fa0/22, Fa0/23, Fa0/24, Gig1/1
Gig1/2
2
LAN_A
active
Fa0/1, Fa0/2, Fa0/3
3
LAN_B
active
Fa0/4, Fa0/5, Fa0/6
4
LAN_C
active
Fa0/7, Fa0/8, Fa0/9
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup
VLAN
---1
2
3
4
1002
1003
1004
1005

Type
----enet
enet
enet
enet
fddi
tr
fdnet
trnet

SAID
---------100001
100002
100003
100004
101002
101003
101004
101005

MTU
----1500
1500
1500
1500
1500
1500
1500
1500

Parent
------

RingNo
------

BridgeNo
--------

Stp
---ieee
ibm

BrdgMode
--------

Trans1
-----0
0
0
0
0
0
0
0

Trans2
-----0
0
0
0
0
0
0
0

Remote SPAN VLANs


-----------------------------------------------------------------------------Primary Secondary Type
Ports
------- --------- ----------------- -----------------------------------------Switch#
-------------------------------------------------------------------------------------------------------------------------------COmuunicate VLAN ID (It'Save to the Flash) e.g:-[2-999]
e.g:-TO assign IP addresses to LAN_A

Switch(config)#interface ran
Switch(config)#interface range fa0/2 - fa0/3
Switch(config-if-range)#swi
Switch(config-if-range)#switchport mod
Switch(config-if-range)#switchport mode acc
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#swi
Switch(config-if-range)#switchport acc
Switch(config-if-range)#switchport access vla
Switch(config-if-range)#switchport access vlan 2
% Access VLAN does not exist. Creating vlan 2
Switch(config-if-range)#
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sho vla
Switch#sho vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/11
Fa0/12, Fa0/13, Fa0/14, Fa0/15
Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24, Gig1/1, Gig1/2
2
VLAN0002
active
Fa0/2, Fa0/3
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup
VLAN
---1
2
1002
1003
1004
1005

Type
----enet
enet
fddi
tr
fdnet
trnet

SAID
---------100001
100002
101002
101003
101004
101005

MTU
----1500
1500
1500
1500
1500
1500

Parent
------

RingNo
------

BridgeNo
--------

Stp
---ieee
ibm

BrdgMode
--------

Trans1
-----0
0
0
0
0
0

Trans2
-----0
0
0
0
0
0

Remote SPAN VLANs


-----------------------------------------------------------------------------Primary Secondary Type
Ports
------- --------- ----------------- -----------------------------------------Switch#

------------------------------------------------------------------------------------------------------------------Trunk

Switch#ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface fa0/10
Switch(config-if)#swi
Switch(config-if)#switchport mode
Switch(config-if)#switchport mode tr
Switch(config-if)#switchport mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10, changed state
to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10, changed state
to up
Switch(config-if)#exit
Switch(config)#

Switch#sho
Switch#sho
Port
Fa0/10

int tru
int trunk
Mode
on

Encapsulation Status
802.1q
trunking

Native vlan
1

Port
Fa0/10

Vlans allowed on trunk


1-1005

Port
Fa0/10

Vlans allowed and active in management domain


1,2,3,4

Port
Fa0/10
Switch#sho
Switch#sho
Switch#sho
Port
Fa0/10

Vlans in spanning tree forwarding state and not pruned


1,2,3,4
int
interfaces tru
interfaces trunk
Mode
Encapsulation Status
Native vlan
on
802.1q
trunking
1

Port
Fa0/10

Vlans allowed on trunk


1-1005

Port
Fa0/10

Vlans allowed and active in management domain


1,2,3,4

Port
Fa0/10
Switch#

Vlans in spanning tree forwarding state and not pruned


1,2,3,4

----------------------------------------------------------------------------------------------Switch#
Switch#
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int ran
Switch(config)#int range fa0/4 - fa0/5
Switch(config-if-range)#swi

Switch(config-if-range)#switchport mod
Switch(config-if-range)#switchport mode tru
Switch(config-if-range)#switchport mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state t
o down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state t
o up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state t
o down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state t
o up
Switch(config-if-range)#exit
Switch(config)#
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#
Switch#sho
Switch#sho
Switch#sho
Port
Fa0/1
Fa0/4
Fa0/5

tru
int tru
int trunk
Mode
auto
on
on

Encapsulation
n-802.1q
802.1q
802.1q

Status
trunking
trunking
trunking

Native vlan
1
1
1

Port
Fa0/1
Fa0/4
Fa0/5

Vlans allowed on trunk


1-1005
1-1005
1-1005

Port
Fa0/1
Fa0/4
Fa0/5

Vlans allowed and active in management domain


1,2,3,4
1,2,3,4
1,2,3,4

Port
Fa0/1
Fa0/4
Fa0/5
Switch#

Vlans in spanning tree forwarding state and not pruned


1,2,3,4
1,2,3,4
1,2,3,4

-----------------------------------------------------------------------------------------------------------------------------------------e.g:-TO assign IP addresses to LAN_B and LAN_C

Switch(config)#int
Switch(config)#interface vla
Switch(config)#interface vlan
%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state t


o down
%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state t
o up
% Incomplete command.
Switch(config)#int
Switch(config)#interface fa0/4
Switch(config-if)#swi
Switch(config-if)#switchport mod
Switch(config-if)#switchport mode a
Switch(config-if)#switchport mode access
Switch(config-if)#swi
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vl
Switch(config-if)#switchport access vlan 3
% Access VLAN does not exist. Creating vlan 3
Switch(config-if)#exit
Switch(config)#int
Switch(config)#interface
%LINK-5-CHANGED: Interface FastEthernet0/5, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state t
o down
%LINK-5-CHANGED: Interface FastEthernet0/5, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state t
o up
% Incomplete command.
Switch(config)#int
Switch(config)#interface fa
Switch(config)#interface fastEthernet 0/5
Switch(config-if)#swi
Switch(config-if)#switchport mod
Switch(config-if)#switchport mode acc
Switch(config-if)#switchport mode access
Switch(config-if)#swi
Switch(config-if)#switchport acc
Switch(config-if)#switchport access vl
Switch(config-if)#switchport access vlan 4
% Access VLAN does not exist. Creating vlan 4
Switch(config-if)#exit
Switch(config)#
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sho vlan
Switch#sho vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- ------------------------------1
default
active
Fa0/6, Fa0/7, Fa0/8, Fa0/9
Fa0/10, Fa0/11, Fa0/12, Fa0/13
Fa0/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/19, Fa0/20, Fa0/21

2
3
4
1002
1003
1004
1005

VLAN0002
VLAN0003
VLAN0004
fddi-default
token-ring-default
fddinet-default
trnet-default

VLAN
---1
2
3
4
1002
1003
1004
1005

Type
----enet
enet
enet
enet
fddi
tr
fdnet
trnet

SAID
---------100001
100002
100003
100004
101002
101003
101004
101005

MTU
----1500
1500
1500
1500
1500
1500
1500
1500

active
active
active
act/unsup
act/unsup
act/unsup
act/unsup
Parent
------

RingNo
------

Fa0/22, Fa0/23, Fa0/24, Gig1/1


Gig1/2
Fa0/2, Fa0/3
Fa0/4
Fa0/5

BridgeNo
--------

Stp
---ieee
ibm

BrdgMode
--------

Trans1
-----0
0
0
0
0
0
0
0

Trans2
-----0
0
0
0
0
0
0
0

Remote SPAN VLANs


-----------------------------------------------------------------------------Primary Secondary Type
Ports
------- --------- ----------------- -----------------------------------------Switch#

Vous aimerez peut-être aussi