Welcome to our Online Store!

Layer 3 switch configuration vlan, the most easy to understand example analysis

2018-01-11 10:34:22

a typical local area network (LAN) is to point to by a function of the layer 3 switching core after several branch switch (don't necessarily have the layer 3 switching capacity).We assume that the core switch name as: com;Branch switch is respectively: par1, par2, par3, respectively by 1 light module is connected with the core switch port;And assume that vlan name counter, market, managing&hellip respectively;& hellip;

needs to be done:

A, set the VTP domain (which is the core, on the branch switch Settings)

b, configuration relay (core, branch is set on A switch)

c, create vlans (on the server Settings)

d, the switch port to A vlan E, configure A and set the layer 3 switching VTP domain. The VTP domain referred to as the administrative domain.

the exchange of VTP update information all switches must be configured to the same administrative domain.If all switches are connected by trunk, as long as the core switches set on a management domain, all switches on the network to join the domain, so that all the switches in the administrative domain list of vlan can understand each other.

com#vlan database entering the VLAN configuration modecom(vlan)#vtp domain com

Set the VTP management domain name com com (VLAN) #vtp server

set switch for server mode par1#vlan database into VLAN configuration mode PAR1 (VLAN) #vtp domain com

set the VTP management domain name com PAR1 (VLAN) #vtp client

set switch for client mode par2#vlan database into VLAN configuration mode PAR2 (VLAN) #vtp domain com

set the VTP management domain name com PAR2 (VLAN) #vtp client

set switch for client mode par3#vlan database into VLAN configuration mode Par3 (VLAN) #vtp domain com

set the VTP management domain name com Par3 (VLAN) #vtp client

set switches for client mode. Here is the core switch as server mode, which means to create, modify, delete VLAN and other configuration parameters on the entire VTP domain on the switch, synchronize the other switches in the VTP domain.The latest VLAN information;Client mode refers to the switch cannot create, delete, modify, vlan configuration, also can not be stored in nvram vlan configuration, but can be synchronized by the VTP domain vlan information pass to other switches.

b, configuration relay in order to keep the management domain to cover all the branch switch, you must configure the relay.

cisco switches can support any medium as the trunk line, in order to realize the relay can use its unique isl label.Isl (Intel - switch link) is a between the switches and between switches and routers and switches with passing multiple vlan information between the server and vlan protocol of data flow, directly connected through a switch port configuration isl encapsulation, can cross the switch for the entire network vlan distribution and configuration.

At the core switch side configuration is as follows:com(config)#interface gigabitethernet 2/1 com(config-if)#switchport com(config-if)#switchport trunk encapsulation isl configuration relay protocol com(config-if)#switchport mode trunk com(config)#interface gigabitethernet 2/2 com(config-if)#switchport com(config-if)#switchport trunk encapsulation isl configuration relay protocol com(config-if)#switchport mode trunk com(config)#interface gigabitethernet 2/3 com(config-if)#switchport com(config-if)#switchport trunk encapsulation isl configuration relay protocol com(config-if)#switchport mode trunk configuration at the end of the branch switch is as follows: par1(config)#interface gigabitethernet 0/1 par1(config-if)#switchport mode trunk par2(config)#interface gigabitethernet 0/1 par2(config-if)#switchport mode trunk par3(config)#interface gigabitethernet 0/1 par3(config-if)#switchport mode trunk…& hellip;

at this point, the management domain will be set up.

c, create vlans once established the management domain, you can create a vlan.#

com (vlan) vlan created a number of 10 10 name counter name for counter vlan com (vlan) # 11 vlan name market created a number of 11 name for market of vlan com (vlan) # 12 vlan name managing created a number of 12 names for managing vlan…& hellip;

note, here's a vlan is founded on the core switch, in fact, as long as it is in the management domain any attribute for server switches on the vlan, VTP it will pass the notice the VTP management domain all the switches.But if the specific switch port to a vlan, must be conducted on the port's switch Settings.

d, the switch port to a vlan, for example, to par1, par2, par3 & hellip;& hellip;Branch delimit counter vlan switch port 1, port 2 delimit market vlan, port 3 delimit managing vlan…& hellip;

par1(config)#interface fastethernet 0/1 configure port 1 par1(config-if)#switchport access vlan 10 ascription counter vlan par1(config)#interface fastethernet 0/2 configure port 2 par1(config-if)#switchport access vlan 11 ascription market vlan par1(config)#interface fastethernet 0/3 configure port 3 par1(config-if)#switchport access vlan 12 ascription managing vlan par2(config)#interface fastethernet 0/1 configure port 1 par2(config-if)#switchport access vlan 10 ascription counter vlan par2(config)#interface fastethernet 0/2 configure port 2 par2(config-if)#switchport access vlan 11 ascription market vlan par2(config)#interface fastethernet 0/3 configure port 3 par2(config-if)#switchport access vlan 12 ascription managing vlan par3(config)#interface fastethernet 0/1 configure port 1 par3(config-if)#switchport access vlan 10 ascription counter vlan par3(config)#interface fastethernet 0/2 configure port 2 par3(config-if)#switchport access vlan 11 ascription market vlan par3(config)#interface fastethernet 0/3 configure port 3 par3(config-if)#switchport access vlan 12 ascription managing vlan…& hellip;

e, configuration, the layer 3 switching here, vlan is basic division.However, how to realize the three layers (network layer) between vlans exchange?Would then assign each vlan network (IP) address.Assign a vlan IP address is divided into two kinds of circumstances,

first, assign vlan all nodes a static IP address;

second, dynamic IP address assign vlan all nodes.Here are the two cases were introduced.

given vlan counter 172.16.58.1/24 distribution interface IP address and web address is: 172.16.58.0, vlan interface IP address is market distribution 172.16.59.1/24, network address is: 172.16.59.0, vlan interface IP address is managing distribution 172.16.60.1/24, network address for 172.16.60.0 & hellip;& hellip;

if dynamically assigned IP addresses, then set the DHCP server on the network IP address is 172.16.1.11.

(1) assign vlan all nodes a static IP address.

first set respectively each vlan on a core switch interface IP address.Core switches will vlan as a kind of interface, as on a router, is as follows: com (config) # interface vlan # 10 com (config - if) IP address 172.16.58.1 255.255.255.0 vlan10 com interface IP (config) # 11 com interface vlan (config - if) # IP address 172.16.59.1 255.255.255.0 vlan11 com interface IP (config) # interface vlan # 12 com (config - if) IP address 172.16.60.1 255.255.255.0 ip&hellip vlan12 interface;& hellip;

Address: Room110,No.389 Jinwan Road,Shanghai,China

Email: daisy.dai@ccitel.com
service time: 7x24 hour

CCIT ICT PRODUCTS