New L2 Switch 2918 to L3 switch 3560

Source: Internet
Author: User

Question: New L2 Switch 2918 to L3 switch 3560

Author: Xu minghui
Date: 14: 09 2009/4/20

Steps:

0Connect the 2918 switch to the COM port of the PC and configure the password and IP address.
1
5 ports with 3560 and 1 trunk ports with 2918 taste.
2
And synchronize VLAN information of 2918 and 3560.
3
Add a new VLAN on 3560 and assign the VLAN to the port on 2918.
4
, Supplement knowledge

The TXT file of the original configuration file can beHereDownload.

 

0And preparations

Connect to the Console port of the vswitch through the COM port of the computer. Cisco provides a com-console line along with the device.
If you use a notebook without a comport, You need to purchase a USB-com connector and install the corresponding driver.Program.
First, you need to log on to the vswitch through the Console port, set a password for the vswitch 2918, and assign an IP address so that the PC and other devices on the network can discover it.

 

--- System configuration dialog ---


Wocould you like to enter the initial configuration dialog? [Yes/No]: N
Switch> en
Switch # Conf t
Enter configuration commands, one per line. End with cntl/Z.
Switch (config )# Hostname backbuilding
Backbuilding (config )# Enable Password Your_password
Backbuilding (config )# Line vty 0 15
Backbuilding (config-line )# Password Your_password
Backbuilding (config-line )# Exit
Backbuilding (config )# Line con 0
Backbuilding (config-line )# Password Your_password
Backbuilding (config-line )# Exit
Backbuilding (config )# Int VLAN 1
Backbuilding (config-If )# IP address 192.168.0.5 255.255.255.0
Backbuilding (config-If )# End
Backbuilding # Write
Building configuration...

[OK]

Backbuilding #

 

15 ports with 3560 and 1 trunk ports with 2918 taste.

 

Backbuilding>En
Password:
Backbuilding #Conf t
Enter configuration commands, one per line. End with cntl/Z.

Backbuilding (config )#Int F0/1
Backbuilding (config-If) # descr to 3560 Port 5
Backbuilding (config-If )#Switchport mode trunk
Backbuilding (config-If) # End
Backbuilding # WR

* Mar 1 03:13:14. 775: % SYS-5-CONFIG_ I: configured from console by Console

Building configuration...
[OK]

Backbuilding #

 

 

-- = ----[Configure the trunk port of the layer-3 Switch] ---- = ---

Cisco3560> en
Password:

Cisco3560 # conf t
Enter configuration commands, one per line. End with cntl/Z.

Cisco3560 (config )#Int F0/5
Cisco3560 (config-If )#Switchport trunk encapsulation dot1q
Cisco3560 (config-If) # descr connect to backbuilding Port 1
Cisco3560 (config-If )#Switchport mode trunk
Cisco3560 (config-If) # End

Cisco3560 # WR
Building configuration...

[OK]
Cisco3560 #

 

2And synchronize VLAN information of 2918 and 3560.

 

User Access Verification

 

Password:

Cisco3560> en
Password:

Cisco3560 #192.168.0.6
Trying 192.168.0.6... open

 

User Access Verification

Password:
Backbuilding> en
Password:

 

Backbuilding # conf t
Enter configuration commands, one per line. End with cntl/Z.

Backbuilding (config )#VTP domain lypower
Changing VTP domain name from null to lypower
Backbuilding (config )#VTP PasswordYour_password
Setting Device VLAN Database Password to your_password
Backbuilding (config )#VTP mode Client
Setting Device to VTP client mode.
Backbuilding (config) # End
Backbuilding # WR

Backbuilding # Show VLAN

 

3Add a new VLAN on 3560 and assign the VLAN to the port on 2918.

 

Add a VLAN on 3560. The VLAN is the configuration information and is stored in the flash memory of the switch as a file. You can use the show flash command to view the VLAN. dat file in flash.

VLANDivide all the vswitch ports into different CIDR blocks for Secure isolation. After VLAN division, you can add any port of the switch to any VLAN.

 

-- = -----[Add a new VLAN to VLAN 3560] ------ == ---

Contigurue Terminal

Cisco3560 # conf t
Enter configuration commands, one per line. End with cntl/Z.

Cisco3560 (config )#VLAN 19
Cisco3560 (config-VLAN )#NameJihuabu_2
Cisco3560 (config-VLAN) # exit
Cisco3560 (config )#Int VLAN19
Cisco3560 (config-If )#IP address192.168.19.1 255.255.255.0
Cisco3560 (config-If) # End

Cisco3560 #192.168.0.6
Trying 192.168.0.6... open

User Access Verification

Password:
Backbuilding> en
Password:
Backbuilding # Show VLAN brief

 

-- = -----[Divide layer-2 vswitch port 2918] ------ == ---

Backbuilding # conf t
Enter configuration commands, one per line. End with cntl/Z.

Backbuilding (config) # int range F0/2-12
Backbuilding (config-if-range) # switchport access VLAN 19
Backbuilding (config-if-range) # End
Backbuilding #

 

-- = ------------------------- End -------------------------------- = --

 

4Supplementary knowledge:

//Add a port to a VLAN

Interface F0/N or interface range F0/m-n
Switchport access VLAN 19
End
Show interface F0/n

 

//To clear port settings

Conf t
Defualt interface F0/n
End

 

//To delete a VLAN
Conf t
VLAN 19
No VLAN 19
End
Show VLAN brief

 

Run show ip arp on the vswitch to display the MAC address and Client IP address of the client. Show Mac-ADDR to display the MAC address of the client device connected to the vswitch and the port number of the access switch;
Therefore, the vswitch port connected to any IP address can be found by combining two commands.

 

Thinking: layer-3 Switch 3560 Port 2 is connected directly to the PC, Port 1 is configured to connect the trunk port to the 2918 switch, Port 1 of the 2918 switch is connected to a Wireless AP, and then three laptop wireless APs are connected to the Internet. Analyze the communication lines and check whether they are correct.

 

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.