You are on page 1of 12

Configuration Examples

DHCP Auto Configuration

Technical Support Department


D-Link Corp.
June 2006

1
1
Auto-Configuration
DHCP Server / TFTP Server

Pre-configured configuration file


for device, e.g., filename = test.cfg

Auto-Config

When enabling auto-configuration function,


function the devices can All switches are located
• automatically obtain the IP address from the DHCP server
in different places

• load the pre-configured / saved configuration file into the device via remote
server.
When autoconfig is enabled on the Switch, the DHCP reply will contain a configuration
file and path name. It will then request the file from the TFTP server specified in the reply.
When autoconfig is enabled, the ipif settings will automatically become DHCP client.
2
2
Auto-Configuration Example

DES-3828
10.100.100.1

DHCP Server / TFTP Server


DHCP Server:
DHCP : 10.100.100.100
IP Pool: 10.100.100.101 - 100.100.100.200

TFTP Server:
Pre-configured configuration file for device,
e.g., filename = test.cfg (existing 3 vlans)

3
3
Auto-Configure setup steps

1. DHCP Server & TFTP Server setting


• install/configure the DHCP server service,
for example, Windows 2000 Server DHCP service. In this example, a
small DHCP server program call “haneWin” DHCP Server program is
used. In DHCP server, configure the IP pool to be leased, and TFTP
server IP address, and a prepared configuration file name from which
the device can load the configuration file.
• run a TFTP server program.
In this example, D-Link’s TFTP Server program is used.
2. Switch setting
• enable the “auto-configuration” function, the device will
automatically obtained the IP address and related TFTP server and file
info from DHCP server save and then reboot. After device boot-up, go
to TFTP server to obtain and load the configuration file into device.

4
4
Auto-Configure setup steps-1
1. DHCP Server Setting (Using haneWin DHCP Server)
1.1 Choose OptionsPreferences, to set DHCP server.

1.2 Select 10.100.100.100

5
5
Auto-Configure setup steps-1
1. DHCP Server Setting (Using haneWin DHCP Server)
1.3 Choose Options Default Client Profile, to set DHCP server.
DHCP server IP

1.4 Configure DHCP IP pool,


Subnet mask, etc to be leased

DHCP IP pool

6
6
Auto-Configure setup steps-2

1.5 Configure TFTP server IP, and the


configure file name to be loaded into
switch.

TFTP server IP

Config file name

7
7
Auto-Configure setup steps-3
2. Run the D-Link TFTP Server program.
If not specify the path in DHCP server, the configuration file will at the same path
as the TFTP server.

8
8
Auto-Configure setup steps- 4
3. Switch configuration:
3.1 Test configure file preparation.

“test.cfg” file is an example, In this file, we created 3 vlans in it.

3 vlans
1. Default vlan port 1-8,25,26
2. v2 vlan port 9-16 After enable “autoconfig”, we can observe
3. v3 vlan port 17-24 DHCP Server assigned ip address to switch

3.2 Switch command:

# enable autoconfig
# save
# reboot

9
9
Auto-Configure Result
Result:
1. Before enable auto-configuration function
DES-3800:4# show switch
Command: show switch

Device Type : DES-3828 Fast-Ethernet Switch


MAC Address : 40-00-00-09-38-00
IP Address : 10.90.90.90 (Manual)
Subnet Mask : 255.0.0.0
Default Gateway : 0.0.0.0

2. After enable auto-configuration function, device will obtain the IP automatically from DHCP
server.
DES-3800:4# show switch
Command: show switch

Device Type : DES-3828 Fast-Ethernet Switch


MAC Address : 40-00-00-09-38-00
IP Address : 10.100.100.101 (DHCP)  IP changes to DHCP obtained.
Subnet Mask : 255.0.0.0  IP changes to DHCP obtained.
Default Gateway : 10.100.100.254  IP changes to DHCP obtained.
10
10
Auto-Configure Result
3. Save and reboot. After boot up, switch will start to download configuration from TFTP server
execute it automatically.

DES-3800:4# save
DES-3800:4# reboot
(Reboot and POST info)

After reboot
DES-3800:4# download configuration 10.100.100.100 test.cfg  automatically download
Command: download configuration 10.100.100.100 test.cfg
Connecting to server................... Done.
Download configuration................. Done.
DES-3800:4#
DES-3800:4##-------------------------------------------------------------------
DES-3800:4## DES-3828P Configuration
DES-3800:4##
DES-3800:4## Firmware: Build 2.00.B18
DES-3800:4## Copyright(C) 2004-2005 D-Link Corporation. All rights reserved.
DES-3800:4##-------------------------------------------------------------------
DES-3800:4#
..........
..........

11
11
Auto-Configure Result
4. After finish downloading configuration successfully, device will re-login. Then you will
see the switch is with the test.cfg configuration.

DES-3800:4# show vlan


Command: show vlan

VID :1 VLAN Name : default


VLAN TYPE : static Advertisement : Enabled
Member ports : 1-8,25-28
Static ports : 1-8,25-28
Current Untagged ports : 1-8,25-28
Static Untagged ports : 1-8,25-28
………….
VID :2 VLAN Name : v2
Member ports : 9-16
Static ports : 9-16
…………….
VID :3 VLAN Name : v3
VLAN TYPE : static Advertisement : Disabled
Member ports : 17-24
…………….
Total Entries : 3
12
12

You might also like