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

Default settings

All physical ports are assigned to VLAN 1.


Default VTP setting is VTP server mode.
No VTP domain name is assigned to the Catalyst.
Catalyst 3550/3560 All physical ports are enabled and in auto-sense
mode.
Basic Configuration

© 2008 Cisco Systems, Inc. All rights reserved. Switching—0-1 © 2008 Cisco Systems, Inc. All rights reserved. Switching—0-2

Configuration files Erase configurations

Catalyst 3560 saves its configurations in two When you erase the startup-config file, the config.text file
separate files: is removed from flash. However, the vlan.dat file
remains.
Switch#write erase
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
Config.text [OK]
Erase of nvram: complete
Vlan.dat Switch#
Switch#show flash
Directory of flash:/
2 -rwx 616 Mar 1 1993 00:01:32 +00:00 vlan.dat
4 drwx 192 Mar 1 1993 00:08:17 +00:00 c3550-i5q3l2-mz.121-19.EA1
3 drwx 64 Mar 1 1993 00:00:44 +00:00 crashinfo
85 -rwx 346 Mar 1 1993 01:34:48 +00:00 system_env_vars
90 drwx 192 Mar 1 1993 01:34:48 +00:00 c3550-i5k2l2q3-mz.121-20.EA2
177 -rwx 0 Mar 1 1993 01:34:48 +00:00 env_vars

© 2008 Cisco Systems, Inc. All rights reserved. Switching—0-3 © 2008 Cisco Systems, Inc. All rights reserved. Switching—0-4

Remove VLAN settings VLAN configuration modes

To completely re-initialize your 3560 switch and remove all vlan Two configuration modes can be used to configure
configurations, make sure you delete the vlan.dat: VLANs:

Global configuration mode


Switch#delete vlan.dat
VLAN database configuration mode
Delete filename [vlan.dat]?
Delete flash:vlan.dat? [confirm]
Switch#show flash
Directory of flash:/
4 drwx 192 Mar 1 1993 00:08:17 +00:00 c3550-i5q3l2-mz.121-19.EA1
3 drwx 64 Mar 1 1993 00:00:44 +00:00 crashinfo
85 -rwx 346 Mar 1 1993 01:34:48 +00:00 system_env_vars
90 drwx 192 Mar 1 1993 01:34:48 +00:00 c3550-i5k2l2q3-mz.121-20.EA2
177 -rwx 0 Mar 1 1993 01:34:48 +00:00 env_vars

© 2008 Cisco Systems, Inc. All rights reserved. Switching—0-5 © 2008 Cisco Systems, Inc. All rights reserved. Switching—0-6

1
Save configurations in VLAN configuration
VLAN database mode

The VLAN database configuration mode is much If you want your VTP and VLAN configuration changes to be
saved, always type “exit” when you exit vlan database
more limited than the Global configuration mode. configuration mode.

The VLAN database configuration mode is used to Switch(vlan)#exit


add and delete VLANs , change specific APPLY completed.
characteristics of a VLAN, and configure VTP Exiting….
parameters.
Do not use the Control+Z command to exit the vlan database
configuration mode.

© 2008 Cisco Systems, Inc. All rights reserved. Switching—0-7 © 2008 Cisco Systems, Inc. All rights reserved. Switching—0-8

Configure VTP in Global Configuration


Mode Creating and Deleting VLANs

Configure VTP mode in global configuration mode:


Create a VLAN using VLAN Database:

Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
Switch(config)#vtp mode ? documentation for configuring VTP/VLAN in config mode.

client Set the device to client mode. Switch(vlan)#vlan 100


server Set the device to server mode. VLAN 100 modified:
transparent Set the device to transparent mode. Switch(vlan)#no vlan 200
Deleting VLAN 200...
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#
© 2008 Cisco Systems, Inc. All rights reserved. Switching—0-9 © 2008 Cisco Systems, Inc. All rights reserved. Switching—0-10

Create VLAN in global configuration mode Assign a port to VLAN

Switch(config-if)#switchport access vlan 200

Switch#show int f0/1 switchport


Switch(config)#no vlan 200 Name: Fa0/1
Switch(config)#vlan 200 Switchport: Enabled
Switch(config-vlan)#name CCIE_VLAN Administrative Mode: dynamic desirable
Operational Mode: down
Switch(config-vlan)#no vlan 300
Administrative Trunking Encapsulation: negotiate
Switch(config)# Negotiation of Trunking: On
Access Mode VLAN: 200 (CCIE_VLAN)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
© 2008 Cisco Systems, Inc. All rights reserved. Switching—0-11 © 2008 Cisco Systems, Inc. All rights reserved. Switching—0-12

2
Configure Trunking Verify Trunking

Switch#show interfaces trunk

Port Mode Encapsulation Status Native vlan


Switch(config)#int f0/1 Gi0/1 desirable n-isl trunking 1
Switch(config-if)#switchport trunk encapsulation isl Gi0/2 desirable n-isl trunking 1

Switch(config-if)# switchport mode trunk Port Vlans allowed on trunk


Gi0/1 1-4094
Switch(config-if)# Gi0/2 1-4094

Port Vlans allowed and active in management domain


Gi0/1 1,100,200,300,901,911-912
Gi0/2 1,100,200,300,901,911-912

Port Vlans in spanning tree forwarding state and not pruned


Gi0/1 1,100,200,300,901,911-912
Gi0/2 1,100,200,300,901,911-912

© 2008 Cisco Systems, Inc. All rights reserved. Switching—0-13 © 2008 Cisco Systems, Inc. All rights reserved. Switching—0-14

Native VLAN Configure Management Interface

An 802.1Q configured trunk port can receive both tagged and To assign an IP address to the 3550 for management
untagged frames. The native VLAN is used to forward all purposes:
untagged traffic for the trunk. By default, the native VLAN is
VLAN 1.

Switch(config)#int vlan 200


Switch(config-if)#ip add 100.100.1.1 255.255.255.0
Switch(config)#int f0/1
Switch(config-if)#^Z
Switch(config-if)#switchport trunk native vlan 1

© 2008 Cisco Systems, Inc. All rights reserved. Switching—0-15 © 2008 Cisco Systems, Inc. All rights reserved. Switching—0-16

Assign a Default-Gateway for Remote


Management

Switch(config)#ip default-gateway 10.1.1.1

Switch#show ip redirects
Default gateway is 10.1.1.1

Host Gateway Last Use Total Uses Interface


ICMP redirect cache is empty
Switch#

© 2008 Cisco Systems, Inc. All rights reserved. Switching—0-17

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