Detailed introduction to three-tier Switch configuration instances

Source: Internet
Author: User

In practice, we should give a detailed introduction to layer-3 Switch configuration instances. The layer-3 Switch configuration mainly introduces the configuration of the switch from dhcp and vlan configuration. It is easy to complete layer-3 Switch configuration. Enter the vswitch world.

L3 Switch configuration solution: 1. If the DHCP function of the switch is not used, the DHCP function of the PC is used! 1. Configure the DHCP server on the vswitch: ip dhcp-server 192.168.0.69 2. Set the ip address of the same DHCP server for each VLAN in the vswitch: interface Vlan11ip address 192.168.1.254 255.255.255.0ip helper-address 192.1

I. If you do not need the DHCP function of the switch, you can use the DHCP function of the PC!

◆ Configure the DHCP server on the vswitch: ip dhcp-server 192.168.0.69

◆ Set the IP address of the same DHCP server for each VLAN in the vswitch:
Interface Vlan11
Ip address 192.168.1.254 255.255.255.0
Ip helper-address 192.168.0.69 DHCP Server IP
Interface Vlan12
Ip address 192.168.2.254 255.255.255.0
Ip helper-address 192.168.0.69 DHCP Server IP3. on the DHCP Server, set the network addresses to 192.168.1.0 and 192.168.2.0 respectively, and set the "vro" option of these scopes to the interface ip address of the corresponding VLAN.

2. Use the DHCP function provided by the layer-3 Switch to automatically allocate IP addresses in multiple VLANs

Method 1
◆ Allocate addresses for multiple VLAN clients at the same time
◆ Some IP addresses in a VLAN are manually allocated.
◆ Specify the gateway and Wins server for the customer
◆ The address lease validity period for VLAN 2 is 1 day, and the remaining value is 3 days.
◆ Assign a specified IP address to a specific user based on the MAC address

The final layer-3 Switch configuration is as follows:
Ip dhcp excluded-address 10.1.1.1 10.1.1.19 // address not used for Dynamic address Allocation
Ip dhcp excluded-address 10.1.1.240 10.1.1.254
Ip dhcp excluded-address 10.1.2.1 10.1.2.19
!
Ip dhcp pool global // global is the pool name, which is specified by the user
Network 10.1.0.0 255.255.0.0 // dynamically assigned address segment
Domain-name client.com // configure the domain suffix for the client
Dns-server 10.1.1.1 10.1.1.2 // configure the dns server for the client
Netbios-name-server 10.1.1.5 10.1.1.6 // configure the wins server for the layer-3 switch of the Client
Netbios-node-type h-node
// Configure the node mode for the layer-3 switch of the client to affect the smooth interpretation of the name, for example, h-node = first explain through the wins server ...)
Lease 3 // address lease period: 3 days
Ip dhcp pool vlan1
Network 10.1.1.0 255.255.255.0
// This pool is a global sub-pool and will inherit domain-name from the global pool.
Option
Default-router 10.1.1.100 10.1.1.101 // configure the default gateway for the layer-3 Switch
!
Ip dhcp pool vlan2 // The pool configured for the layer-3 switch of the other VLAN
Network 10.1.2.0 255.255.255.255.0
Default-router 10.1.2.100 10.1.2.101
Lease 1
!
Ip dhcp pool vlanw.john // always allocates a... address for the host whose MAC address is...
Host 10.1.1.21 255.255.255.0
Client-identifier 010050. bade.6384 // client-identifier = 01 with the client NIC address
!
Ip dhcp pool vlan1_tom
Host 10.1.1.50 255.255.255.0
Client-identifier 010010.3ab1.eac8-related DHCP Debugging commands:
No service dhcp // stop the DHCP service [DHCP service is enabled by default]
Sh ip dhcp binding // displays Address allocation information
Show ip dhcp conflict // display address conflict
Debug ip dhcp server {events | packets | linkage}

Observe the configuration of the DHCP server on a layer-3 Switch. If no IP address is assigned to the DHCP Client, there are two common causes. The first case is that the port connecting to the client is not set to Portfast. After the MS Client is started on, check that the network adapter is properly connected.

When the Link is UP, the DHCPDISCOVER request is sent. At this time, the switch port is undergoing Spanning Tree computing. Generally, it takes 30-50 seconds to enter the forwarding status. If the MS client does not receive a response from the dhcp server, it will set a 169.169.X.X IP address for the NIC. The solution is to set the vswitch port to Portfast:
CatOS (4000/5000/6000): set spantree portfast mod_num/port_num enable;
IOS (2900/3500): interface...; spanning-tree portfast

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.