Cisco switch configuration tutorial

Source: Internet
Author: User
Tags cisco switch

Vswitch Virtual Network (Virtual LANs) settings:

VLAN division and external VLAN routing settings on Catalyst 5000

Assign a VTP Domain)

Add Cat5000 to the domain

Specify the relay Port
(A Trunk)

Dynamic ISL

Allocate VLAN to Port

Set VLAN 20

Configure the Router

Note: There are three VLANs, which are routed between VLANs through the Router.

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

Allocate VTP Domains

What is VTP?

VTP is short for VLAN Trunk Protocol. It provides each device (router or LAN-switch) to send broadcasts on the trunk ports. these broadcasts are sent to a multicast address and received by all adjacent devices. these broadcasts list the management domains of the sending devices, their configuration revision numbers, known VLANs, and identified parameters of known VLANs. by listening to these broadcasts, all devices in the same management domain can learn the new VLAN configured on the sending device. in this way, the new VLAN only needs to be created and configured on a device in the management domain. information is automatically learned by other devices in the same management domain.

Allocate VTP Domains

First, assign a VTP domain name (a VTP domain name). vswitches in the same management domain can learn VTP information from each other through the VTP protocol.

Cat5001> (enable) sho vtp domain

Domain Name Domain Index VTP Version Local Mode

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

1 1 server

Advt Interval Vlan-count Max-vlan-storage Config Revision SNMP Traps

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

300 5 256 0 disabled

Last Updater

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

0.0.0.0

Cat5001> (enable)

Cat5001> (enable) set vtp domain cisco

VTP domain cisco modified

Cat5001> (enable) sho vtp domain

Domain Name Domain Index VTP Version Local Mode

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

Cisco 1 1 server

Advt Interval Vlan-count Max-vlan-storage Config Revision SNMP Traps

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

300 5 256 0 disabled

Last Updater

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

0.0.0.0

Cat5001> (enable)

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

Add Catalyst 5002 to the domain

You need to add Catalyst 5002 To The VTP management domain named cisco and set it to VTP client. It will receive VTP configurations and updates from the VTP server.

Note: by default, the Catalyst 5000 series switches are VTP servers.

Cat5002> (enable)

Cat5002> set vtp domain cisco mode client

Trunk ports)

VLAN Trunk protocol (VTP) is transmitted only on the Trunk port (ISL, LANE, and 802.10) and should be transmitted on two Trunk st5000

Which port is defined between switches as the Trunk port ).

Inter-Switch Link (ISL) relay is used for Fast Ethernet and Gigabit Ethernet ports

IEEE 802.10 relay for FDDI/CDDI ports

LAN Emulation (LANE) relay for ATM ports

Cat5001 & gt; (enable) set trunk 1/1 on

Port 1/1 mode set to on.

Cat5001> (enable)

Wed Jun 19 1996, 15:00:02 Port 1/1 has become trunk.

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

Dynamic ISL

With DISL (Dynamic ISL), you do not need to modify the remote Catalyst 5000; the following information is displayed on the remote Catalyst 5000.

Wed Jun 19 1996, 15:51:59 Port 1/2 has become trunk.

Cat5001> (enable) sho trunk

Port Mode Status

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

1/1 on trunking

1/2 auto not-trunking

2/1-2 off not-trunking

5/1 auto not-trunking

5/2 auto not-trunking

5/3 auto not-trunking

5/4 auto not-trunking

5/5 auto not-trunking

5/6 auto not-trunking

5/7 auto not-trunking

5/8 auto not-trunking

5/9 auto not-trunking

5/10 auto not-trunking

5/11 auto not-trunking

5/12 auto not-trunking

Port Vlans allowed


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

1/1 1-1000

1/2 1-1000

2/1-2 1-1000

5/1 1-1000

5/2 1-1000

5/3 1-1000

5/4 1-1000

5/5 1-1000

5/6 1-1000

5/7 1-1000

5/8 1-1000

5/9 1-1000

5/10 1-1000

5/11 1-1000

5/12 1-1000

Port Vlans active

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

1/1 1

1/2 1

2/1-2 1

5/1 1

5/2 1

5/3 1

5/4 1

5/5 1

5/6 1

5/7 1

5/8 1

5/9 1

5/10 1

5/11 1

5/12 1

Note: DISL is not supported in Cisco IOS software.

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

Allocate VLAN to Port

Cat5001> (enable) set vlan 2 3/2-20

VLAN 2 modified.

VLAN 1 modified.

VLAN Mod/Ports

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

2 1/1

3/2-20

Cat5001> (enable) set vlan 20 5/1-6

VLAN 20 modified.

VLAN 1 modified.

VLAN Mod/Ports

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

20 1/1

5/1-6

Configure additional information for VLAN 20.

On the other Catalyst 5000:

Cat5002> (enable) set vlan 2 4/1-/6-12

VLAN 2 modified.

VLAN 1 modified.

VLAN Mod/Ports

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

2 1/2

4/1-3, 4/5-23

5/6-12

Configure additional information for VLAN 20.

Cat5002> (enable) set vlan 20 5/1-5

VLAN 20 modified.

VLAN 1 modified.

VLAN Mod/Ports

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

20 1/2

5/1-5

Configure VLAN 20 on a VTP server.

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

Display port configuration

Cat5001> (enable) show port

Port Name Status Vlan Level Duplex Speed Type

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

1/1 connected 1 normal half 100 100 BaseTX

1/2 connected trunk normal half 100 100 BaseTX

2/1 connecting 1 normal half 100 FDDI

2/2 connected 1 normal half 100 FDDI

4/1 inactive 2 normal half 10 10 BaseT

4/2 inactive 2 normal half 10 10 BaseT

4/3 inactive 2 normal half 10 10 BaseT

4/4 notconnect 1 normal half 10 10 BaseT

4/5 inactive 2 normal half 10 10 BaseT

4/6

At this time, VLAN 2 and VLAN 20 are not activated, so the ports on VLAN 2 and VLAN 20 are inactive.

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

Set VLAN 20

If you have VTP server and VTP clent in the network, set VLAN 20 on The VTP server.

Cat5001> (enable) set vlan 20

VLAN 20 modified

This will activate VLAN 20 in all management domains cisco

Cat5001> (enable) sho vlan 20

VLAN Name Status Mod/Ports

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

20 VLAN0020 active 1/1

5/1-6

VLAN Type said mtu Parent RingNo BridgeNo Stp Trans1 Trans2

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

20 enet 100020 1500--0 0

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

Configure the Router

Conf t

Interface FastEthernet0/0.1 <-- you need to create a sub-interface by vlan.

Encapsulation isl 20 <-- 20 is the vlan number.

Ip address 1.1.1.1 255.255.255.0

Interface FastEthernet0/0.2

Encapsulation isl 2

Ip address 2.2.2.1 255.255.255.0

Interface FastEthernet0/0.3

Encapsulation isl 1

Ip address 172.16.80.1 255.255.255.0


Router VPN 666

Network 1.0.0.0

Network 2.0.0.0

Network 172.16.80.0

End

Writ mem


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.