Вы находитесь на странице: 1из 13

CISCO BASIC DEMO LAB

================================================================================
=========
================================================================================
=========
Switching - Configuring Trunking, VTP, and VLANs
Router#vlan database
Router(vlan)#vtp
% Incomplete command.
Router(vlan)#vtp ?
client Set the device to client mode.
domain Set the name of the VTP administrative domain.
password Set the password for the VTP administrative domain.
pruning Set the administrative domain to permit pruning.
server Set the device to server mode.
transparent Set the device to transparent mode.
v2-mode Set the administrative domain to V2 mode.
Router(vlan)#vtp tran
Router(vlan)#vtp transparent
Setting device to VTP TRANSPARENT mode.
Router(vlan)#vtp domain NULL
Changing VTP domain name from NULL to NULL
Router(vlan)#
Router(vlan)#apply
APPLY completed.
Router(vlan)#exit
APPLY completed.
Exiting....
Router#sh vlan-s
Router#sh vlan-switch
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/1, Fa1/2, Fa1/3
Fa1/4, Fa1/5, Fa1/6, Fa1/7
Fa1/8, Fa1/9, Fa1/10, Fa1/11
Fa1/12, Fa1/13, Fa1/14, Fa1/15
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
1002 fddi 101002 1500 - - - - - 1 1003
1003 tr 101003 1500 1005 0 - - srb 1 1002
1004 fdnet 101004 1500 - - 1 ibm - 0 0
1005 trnet 101005 1500 - - 1 ibm - 0 0
Router#
Router#sh vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 256
Number of existing VLANs : 5
VTP Operating Mode : Transparent
VTP Domain Name : NULL
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x50 0xA8 0xBD 0xEA 0x90 0xEA 0x21 0x99
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa 1/0
Router(config-if)#no shut
Router(config-if)#
*Mar 1 00:28:28.583: %SPANTREE-7-RECV_1Q_NON_TRUNK: Received 802.1Q BPDU on non
trunk FastEthernet1/0 VLAN1.
*Mar 1 00:28:28.587: %SPANTREE-7-BLOCK_PORT_TYPE: Blocking FastEthernet1/0 on V
LAN1. Inconsistent port type.
Router(config-if)#
Router#confi t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa 1/0
Router(config-if)#shut
Router(config-if)#
*Mar 1 00:42:06.711: %LINK-5-CHANGED: Interface FastEthernet1/0, changed state
to administratively down
*Mar 1 00:42:07.711: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern
et1/0, changed state to down
Router(config-if)#swithport ?
% Unrecognized command
Router(config-if)#switch
Router(config-if)#switchport ?
access Set access mode characteristics of the interface
mode Set trunking mode of the interface
priority Set 802.1p priorities
trunk Set trunking characteristics of the interface
voice Voice appliance attributes
<cr>
Router(config-if)#switchport mode ?
access Set trunking mode to ACCESS unconditionally
trunk Set trunking mode to TRUNK unconditionally
Router(config-if)#switchport mode trunk
Router(config-if)#do sh run int fa 1/0
Building configuration...
Current configuration : 66 bytes
!
interface FastEthernet1/0
switchport mode trunk
shutdown
end
Router(config-if)#no shut
Router(config-if)#
*Mar 1 00:43:28.315: %DTP-5-TRUNKPORTON: Port Fa1/0 has become dot1q trunk
Router(config-if)#
*Mar 1 00:43:30.727: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern
et1/0, changed state to up
Router(config-if)#
*Mar 1 00:14:56.551: %DTP-5-TRUNKPORTON: Port Fa1/1 has become dot1q trunk
*Mar 1 00:14:57.051: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, cha
nged state to up
*Mar 1 00:14:58.931: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern
et1/1, changed state to up
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++
Router#sh vtp s
Router#sh vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 256
Number of existing VLANs : 5
VTP Operating Mode : Server
VTP Domain Name :
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xBF 0x86 0x94 0x45 0xFC 0xDF 0xB5 0x70
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found)
Router#vlan database
Router(vlan)#vtp
% Incomplete command.
Router(vlan)#vtp ?
client Set the device to client mode.
domain Set the name of the VTP administrative domain.
password Set the password for the VTP administrative domain.
pruning Set the administrative domain to permit pruning.
server Set the device to server mode.
transparent Set the device to transparent mode.
v2-mode Set the administrative domain to V2 mode.
Router(vlan)#vtp domain Trinidad
Changing VTP domain name from NULL to Trinidad
Router(vlan)#exit
APPLY completed.
Exiting....
Router#sh vtp sta
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 256
Number of existing VLANs : 5
VTP Operating Mode : Server
VTP Domain Name : Trinidad
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xD9 0x69 0xB7 0x17 0xFB 0x40 0x90 0x6E
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found)
Router#vlan database
Router(vlan)#vtp trans
Router(vlan)#vtp transparent
Setting device to VTP TRANSPARENT mode.
Router(vlan)#vtp server
Setting device to VTP SERVER mode.
Router(vlan)#apply
APPLY completed.
Router(vlan)#exit
APPLY completed.
Exiting....
Router#sh vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 256
Number of existing VLANs : 5
VTP Operating Mode : Server
VTP Domain Name : Trinidad
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xD9 0x69 0xB7 0x17 0xFB 0x40 0x90 0x6E
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found)
Router#sh vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 256
Number of existing VLANs : 5
VTP Operating Mode : Server
VTP Domain Name : Trinidad
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xD9 0x69 0xB7 0x17 0xFB 0x40 0x90 0x6E
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found)
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa 1/0
Router(config-if)#sw
Router(config-if)#switchport mod
Router(config-if)#switchport mode t
Router(config-if)#switchport mode trunk
Router(config-if)#eixt
^
% Invalid input detected at '^' marker.
Router(config-if)#exit
Router(config)#end
Router#
*Mar 1 00:10:35.511: %SYS-5-CONFIG_I: Configured from console by console
Router#sh vtp sta
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 256
Number of existing VLANs : 5
VTP Operating Mode : Server
VTP Domain Name : Trinidad
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xD9 0x69 0xB7 0x17 0xFB 0x40 0x90 0x6E
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found)
Router#vlan database
Router(vlan)#vlan 10 name Blue
VLAN 10 added:
Name: Blue
Router(vlan)#apply
APPLY completed.
Router(vlan)#exit
APPLY completed.
Exiting....
Router#sh vtp sta
Router#sh vtp status
VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 256
Number of existing VLANs : 6
VTP Operating Mode : Server
VTP Domain Name : Trinidad
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x47 0xDA 0x7B 0xEC 0x96 0x58 0xD8 0xE7
Configuration last modified by 0.0.0.0 at 3-1-02 00:11:12
Local updater ID is 0.0.0.0 (no valid interface found)
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int vlan 10
Router(config-if)#ip address 10.10.10.10 255.255.255.0
Router(config-if)#do ip int br vlan 10
ip int br vlan 10
^
% Invalid input detected at '^' marker.
Router(config-if)#do ip int br inter vlan 10
ip int br inter vlan 10
^
% Invalid input detected at '^' marker.
Router(config-if)#do ip int br
ip int br
^
% Invalid input detected at '^' marker.
Router(config-if)#do sh ip int br vlan 10
Interface IP-Address OK? Method Status Prot
ocol
Vlan10 10.10.10.10 YES manual up down
Router(config-if)#exit
Router(config)#int fa 1/0
Router(config-if)#no shut
Router(config-if)#d
*Mar 1 00:14:58.787: %DTP-5-TRUNKPORTON: Port Fa1/0 has become dot1q trunk
*Mar 1 00:14:59.291: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, ch
anged state to up
Router(config-if)#do sh
*Mar 1 00:15:01.131: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern
et1/0, changed state to up
Router(config-if)#do sh ip int brief
Interface IP-Address OK? Method Status Prot
ocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
FastEthernet1/0 unassigned YES unset up up
FastEthernet1/1 unassigned YES unset up down
FastEthernet1/2 unassigned YES unset up down
FastEthernet1/3 unassigned YES unset up up
FastEthernet1/4 unassigned YES unset up down
FastEthernet1/5 unassigned YES unset up down
FastEthernet1/6 unassigned YES unset up up
FastEthernet1/7 unassigned YES unset up down
FastEthernet1/8 unassigned YES unset up down
*Mar 1 00:15:16.703: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, cha
nged state to up
*Mar 1 00:15:16.815: %SPANTREE-7-RECV_1Q_NON_TRUNK: Received 802.1Q BPDU on non
trunk FastEthernet1/1 VLAN1.
*Mar 1 00:15:16.819: %SPANTREE-7-BLOCK_PORT_TYPE: Blocking FastEthernet1/1 on V
LAN1. Inconsistent port type.PVST+: restarted the forward delay timer for FastEt
hernet1/1
================================================================================
=========
Switching - Configuring Trunking, VTP, and VLANs
show vlan
show vlan brief
R1-SW#show vl?
vlan-range vlan-switch vlans
R1-SW#show vlan-switch ?
brief VTP all VLAN status in brief
id VTP VLAN status by VLAN id
name VTP VLAN status by VLAN name
| Output modifiers
<cr>
R1-SW#show vlan-switch
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/1, Fa1/2, Fa1/3
Fa1/4, Fa1/5, Fa1/6, Fa1/7
Fa1/8, Fa1/9, Fa1/10, Fa1/11
Fa1/12, Fa1/13, Fa1/14, Fa1/15
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
1002 fddi 101002 1500 - - - - - 1 1003
1003 tr 101003 1500 1005 0 - - srb 1 1002
1004 fdnet 101004 1500 - - 1 ibm - 0 0
1005 trnet 101005 1500 - - 1 ibm - 0 0
R1-SW#
R1-SW#show vlan-switch brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/1, Fa1/2, Fa1/3
Fa1/4, Fa1/5, Fa1/6, Fa1/7
Fa1/8, Fa1/9, Fa1/10, Fa1/11
Fa1/12, Fa1/13, Fa1/14, Fa1/15
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
R1-SW#
R1-SW(config)#vlan50
^
% Invalid input detected at '^' marker.
R1-SW(config)#exit
R1-SW#vl
*Mar 1 00:04:45.851: %SYS-5-CONFIG_I: Configured from console by console
R1-SW#vlan database
R1-SW(vlan)#?
VLAN database editing buffer manipulation commands:
abort Exit mode without applying the changes
apply Apply current changes and bump revision number
exit Apply changes, bump revision number, and exit mode
no Negate a command or set its defaults
reset Abandon current changes and reread current database
show Show database information
vlan Add, delete, or modify values associated with a single VLAN
vtp Perform VTP administrative functions.
R1-SW(vlan)#vlan 50
VLAN 50 added:
Name: VLAN0050
R1-SW(vlan)#
R1-SW#show vlans
No Virtual LANs configured.
R1-SW#show vlan-switch
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/1, Fa1/2, Fa1/3
Fa1/4, Fa1/5, Fa1/6, Fa1/7
Fa1/8, Fa1/9, Fa1/10, Fa1/11
Fa1/12, Fa1/13, Fa1/14, Fa1/15
50 VLAN0050 active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
50 enet 100050 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 1 1003
1003 tr 101003 1500 1005 0 - - srb 1 1002
1004 fdnet 101004 1500 - - 1 ibm - 0 0
1005 trnet 101005 1500 - - 1 ibm - 0 0
R1-SW#show vlan-switch brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/1, Fa1/2, Fa1/3
Fa1/4, Fa1/5, Fa1/6, Fa1/7
Fa1/8, Fa1/9, Fa1/10, Fa1/11
Fa1/12, Fa1/13, Fa1/14, Fa1/15
50 VLAN0050 active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
R1-SW#
R1-SW#sh vlan-switch
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/1, Fa1/2, Fa1/3
Fa1/4, Fa1/5, Fa1/6, Fa1/7
Fa1/8, Fa1/9, Fa1/10, Fa1/11
Fa1/12, Fa1/13, Fa1/14, Fa1/15
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
1002 fddi 101002 1500 - - - - - 1 1003
1003 tr 101003 1500 1005 0 - - srb 1 1002
1004 fdnet 101004 1500 - - 1 ibm - 0 0
1005 trnet 101005 1500 - - 1 ibm - 0 0
R1-SW#sh vlan-switch brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/1, Fa1/2, Fa1/3
Fa1/4, Fa1/5, Fa1/6, Fa1/7
Fa1/8, Fa1/9, Fa1/10, Fa1/11
Fa1/12, Fa1/13, Fa1/14, Fa1/15
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
R1-SW#vlan database
R1-SW(vlan)#vtp domain trinidad.com
Changing VTP domain name from NULL to trinidad.com
R1-SW(vlan)#vlan 10 name accounting
VLAN 10 added:
Name: accounting
R1-SW(vlan)#vlan 20 name engineering
VLAN 20 added:
Name: engineering
R1-SW(vlan)#vlan 30 name support
VLAN 30 added:
Name: support
R1-SW(vlan)#apply
APPLY completed.
R1-SW(vlan)#exit
APPLY completed.
Exiting....
R1-SW#sho vlan-switch
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/1, Fa1/2, Fa1/3
Fa1/4, Fa1/5, Fa1/6, Fa1/7
Fa1/8, Fa1/9, Fa1/10, Fa1/11
Fa1/12, Fa1/13, Fa1/14, Fa1/15
10 accounting active
20 engineering active
30 support active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
30 enet 100030 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 1 1003
1003 tr 101003 1500 1005 0 - - srb 1 1002
R1-SW#sho vlan-switch brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/1, Fa1/2, Fa1/3
Fa1/4, Fa1/5, Fa1/6, Fa1/7
Fa1/8, Fa1/9, Fa1/10, Fa1/11
Fa1/12, Fa1/13, Fa1/14, Fa1/15
10 accounting active
20 engineering active
30 support active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
R1-SW#
R1-SW#
R1-SW#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1-SW(config)#int vlan10
R1-SW(config-if)#ip address 10.10.10.10 255.255.255.0
R1-SW(config-if)#do show vlan-switch brief
R1-SW#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1-SW(config)#int fa 1/1
R1-SW(config-if)#de?
decnet default delay description
R1-SW(config-if)#description Carl Desktop
R1-SW(config-if)#switchport access vlan 10
R1-SW(config-if)#
*Mar 1 00:36:24.831: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, ch
anged state to up
R1-SW(config-if)#do sho ip int br
Interface IP-Address OK? Method Status Prot
ocol
FastEthernet0/0 unassigned YES NVRAM administratively down down
FastEthernet0/1 unassigned YES NVRAM administratively down down
FastEthernet1/0 unassigned YES unset up down
FastEthernet1/1 unassigned YES unset up up
FastEthernet1/2 unassigned YES unset up up
FastEthernet1/3 unassigned YES unset up down
FastEthernet1/4 unassigned YES unset up down
FastEthernet1/5 unassigned YES unset up down
FastEthernet1/6 unassigned YES unset up down
FastEthernet1/7 unassigned YES unset up down
FastEthernet1/8 unassigned YES unset up down
FastEthernet1/9 unassigned YES unset up down
FastEthernet1/10 unassigned YES unset up down
FastEthernet1/11 unassigned YES unset up down
FastEthernet1/12 unassigned YES unset up down
FastEthernet1/13 unassigned YES unset up down
FastEthernet1/14 unassigned YES unset up down
FastEthernet1/15 unassigned YES unset up down
Vlan1 unassigned YES NVRAM administratively down down
Vlan10 10.10.10.10 YES manual up up
R1-SW(config-if)#do sho vlan-switch
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/2, Fa1/3, Fa1/4
Fa1/5, Fa1/6, Fa1/7, Fa1/8
Fa1/9, Fa1/10, Fa1/11, Fa1/12
Fa1/13, Fa1/14, Fa1/15
10 accounting active Fa1/1
20 engineering active
30 support active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
30 enet 100030 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 1 1003
1003 tr 101003 1500 1005 0 - - srb 1 1002
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1004 fdnet 101004 1500 - - 1 ibm - 0 0
1005 trnet 101005 1500 - - 1 ibm - 0 0
R1-SW(config-if)#exit
R1-SW(config)#int vlan 20
R1-SW(config-if)#ip address 20.20.20.20 255.255.255.0
R1-SW(config-if)#exit
R1-SW(config)#interface fa 1/2
R1-SW(config-if)#switchport access vlan 20
R1-SW(config-if)#exot
*Mar 1 00:40:17.687: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, ch
anged state to u
R1-SW(config-if)#exit
R1-SW(config)#
R1-SW(config)#do sho vlan-switch
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/3, Fa1/4, Fa1/5
Fa1/6, Fa1/7, Fa1/8, Fa1/9
Fa1/10, Fa1/11, Fa1/12, Fa1/13
Fa1/14, Fa1/15
10 accounting active Fa1/1
20 engineering active Fa1/2
30 support active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
30 enet 100030 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 1 1003
1003 tr 101003 1500 1005 0 - - srb 1 1002
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1004 fdnet 101004 1500 - - 1 ibm - 0 0
1005 trnet 101005 1500 - - 1 ibm - 0 0
R1-SW(config)#
R1-SW(config)#do sh ip int br
Interface IP-Address OK? Method Status Prot
ocol
FastEthernet0/0 unassigned YES NVRAM administratively down down
FastEthernet0/1 unassigned YES NVRAM administratively down down
FastEthernet1/0 unassigned YES unset up down
FastEthernet1/1 unassigned YES unset up up
FastEthernet1/2 unassigned YES unset up up
FastEthernet1/3 unassigned YES unset up down
FastEthernet1/4 unassigned YES unset up down
FastEthernet1/5 unassigned YES unset up down
FastEthernet1/6 unassigned YES unset up down
FastEthernet1/7 unassigned YES unset up down
FastEthernet1/8 unassigned YES unset up down
FastEthernet1/9 unassigned YES unset up down
FastEthernet1/10 unassigned YES unset up down
FastEthernet1/11 unassigned YES unset up down
FastEthernet1/12 unassigned YES unset up down
FastEthernet1/13 unassigned YES unset up down
FastEthernet1/14 unassigned YES unset up down
FastEthernet1/15 unassigned YES unset up down
Vlan1 unassigned YES NVRAM administratively down down
Vlan10 10.10.10.10 YES manual up up
Vlan20 20.20.20.20 YES manual up up
R1-SW(config)#
R1-SW(config)#int fa 1/5
R1-SW(config-if)#switchport access vlan 10
R1-SW(config-if)#do sho vlan-switch br
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/3, Fa1/4, Fa1/6
Fa1/7, Fa1/8, Fa1/9, Fa1/10
Fa1/11, Fa1/12, Fa1/13, Fa1/14
Fa1/15
10 accounting active Fa1/1, Fa1/5
20 engineering active Fa1/2
30 support active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
R1-SW(config-if)#
R1-SW(config-if)#do wr
Building configuration...
[OK]
R1-SW(config-if)#exit
R1-SW(config)#int fa 1/6
R1-SW(config-if)#switchport acces vlan 20
R1-SW(config-if)#sho vlan-switch br
^
% Invalid input detected at '^' marker.
R1-SW(config-if)#do sho vlan-switch br
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0, Fa1/3, Fa1/4, Fa1/7
Fa1/8, Fa1/9, Fa1/10, Fa1/11
Fa1/12, Fa1/13, Fa1/14, Fa1/15
10 accounting active Fa1/1, Fa1/5
20 engineering active Fa1/2, Fa1/6
30 support active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
R1-SW(config-if)#

Вам также может понравиться