C3550 configuration as a DHCP server project instance

Source: Internet
Author: User
Tags exit config domain server

A number of people asked how to configure 3550 as a DHCP server, because at that time, when configuring 3550 as a DHCP relay agent by the way to test A to configure 3550 as a DHCP server and passed, so here the configuration process is written out for your reference.

Network environment:

A 3550EMI switch, divided into three vlan,vlan2 for the server network, named Server,ip address segment is 192.168.2.0, Subnet mask: 255.255.255.0, Gateway: 192.168.2.1, domain server for Windows Advance server, at the same time as a DNS server, IP address is 192.168.2.10,vlan3 for client 1 network, IP address segment is 192.168 3.0, subnet mask: 255.255.255.0, Gateway : 192.168.3.1 named Work01,vlan4 is the network of client 2, named Work02,ip address segment is 192.168.4.0, subnet mask: 255.255.255.0, Gateway: 192.168.4.1,
3550 as a DHCP server, port 1-8 is zoned to VLAN 2, Port 9-16 is divided into VLAN 3, Port 17-24 is divided into VLAN 4.

DHCP Server implementation features:

Each VLAN retains 2-10 of the IP address configuration, such as: 192.168.2.0 network segment, keep 192.168.2.2 To 192.168.2.10 IP address segment is not allocated.

Security Requirements:

VLAN 3 and VLAN 4 do not allow access to each other, but all have access to the server's VLAN 2, and the default Access control list rule is to deny all packages.

The configuration commands and steps are as follows:

First step: Create VLAN:

switch>en
Switch#vlan Database
Switch (Vlan) >vlan 2 Name Server
Switch (Vlan) >vlan 3 Name work01
Switch (VLAN) >vlan 4 Name work02

Step two: Set VLAN IP address:

Switch#config T
Switch (Config) >int Vlan 2
Switch (Config-vlan) Ip address 192.168.2.1 255.255.255.0
Switch (Config-vlan) No shut
Switch (Config-vlan) >int VLAN 3
Switch (Config-vlan) Ip address 192.168.3.1 255.255.255.0
Switch (Config-vlan) No shut
Switch (Config-vlan) >int VLAN 4
Switch (Config-vlan) Ip address 192.168.4.1 255.255.255.0
Switch (Config-vlan) No shut
Switch (Config-vlan) Exit

/* Note: Because the port is not configured to vlan2,3,4 at this time, so the VLAN will be down, the port will be assigned to each VLAN, the VLAN will rise * * *

Step three: Set port global parameters

Switch (Config) Interface Range Fa 0/1-24
Switch (config-if-range) switchport Mode Access
Switch (config-if-range) Spanning-tree Portfast

Step Fourth: Add the port to the vlan2,3,4

/* Add Port 1-8 to the VLAN 2*/

Switch (Config) Interface Range Fa 0/1-8
Switch (config-if-range) switchport Access Vlan 2

/* Add Port 9-16 to the VLAN 3*/

Switch (Config) Interface Range Fa 0/9-16
Switch (config-if-range) switchport Access Vlan 3

/* Add Port 17-24 to the VLAN 4*/

Switch (Config) Interface Range Fa 0/17-24
Switch (config-if-range) switchport Access Vlan 4
Switch (Config-if-range) Exit

* * After this step, the VLAN will rise * * *

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.