Chapter 3 Assigning the Switch IP Address and Default Gateway

Assigning Switch Information

Table 3-2shows the configuration of the reserved leases on the DHCP server.

Table 3-2

DHCP Server Configuration

 

 

 

 

 

 

 

 

 

 

 

Switch A

Switch B

Switch C

Switch D

 

 

 

 

 

Binding key (hardware address)

00e0.9f1e.2001

00e0.9f1e.2002

00e0.9f1e.2003

00e0.9f1e.2004

 

 

 

 

 

 

IP address

 

10.0.0.21

10.0.0.22

10.0.0.23

10.0.0.24

 

 

 

 

 

 

Subnet mask

 

255.255.255.0

255.255.255.0

255.255.255.0

255.255.255.0

 

 

 

 

 

 

Router address

 

10.0.0.10

10.0.0.10

10.0.0.10

10.0.0.10

 

 

 

 

 

DNS server address

10.0.0.2

10.0.0.2

10.0.0.2

10.0.0.2

 

 

 

 

 

TFTP server name

tftpserver or

tftpserver or

tftpserver or

tftpserver or

 

 

10.0.0.3

10.0.0.3

10.0.0.3

10.0.0.3

 

 

 

 

 

Boot filename (configuration file)

switcha-confg

switchb-confg

switchc-confg

switchd-confg

(optional)

 

 

 

 

 

 

 

 

 

 

Hostname (optional)

switcha

switchb

switchc

switchd

 

 

 

 

 

 

DNS Server Configuration

The DNS server maps the TFTP server name tftpserver to IP address 10.0.0.3.

TFTP Server Configuration (on UNIX)

The TFTP server base directory is set to /tftpserver/work/. This directory contains the network-confg file used in the two-file read method. This file contains the hostname to be assigned to the switch based on its IP address. The base directory also contains a configuration file for each switch (switcha-confg, switchb-confg, and so forth) as shown in this display:

prompt> cd /tftpserver/work/ prompt> ls

network-confg switcha-confg switchb-confg switchc-confg switchd-confg

prompt> cat network-confgip host switcha 10.0.0.21 ip host switchb 10.0.0.22 ip host switchc 10.0.0.23 ip host switchd 10.0.0.24

DHCP Client Configuration

No configuration file is present on Switch A through Switch D.

Configuration Explanation

In Figure 3-3, Switch A reads its configuration file as follows:

It obtains its IP address 10.0.0.21 from the DHCP server.

If no configuration filename is given in the DHCP server reply, Switch A reads the network-confg file from the base directory of the TFTP server.

It adds the contents of the network-confg file to its host table.

Catalyst 3750-E and 3560-E Switch Software Configuration Guide

 

OL-9775-02

3-9

 

 

 

Page 99
Image 99
Cisco Systems 3750E manual Switch a Switch B Switch C Switch D, DNS Server Configuration, Tftp Server Configuration on Unix