3-10
Catalyst 2928 Switch Software Configuration Guide
OL-23389-01
Chapter 3 Assigning the Switch IP Address and Default Gateway
Assigning Switch Information
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-confg
ip 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
, 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.
•
It reads its host table by indexing its IP address 10.0.0.21 to its hostname (switcha).
•
It reads the configuration file that corresponds to its hostname; for example, it reads
switch1-confg
from the TFTP server.
Switches B through D retrieve their configuration files and IP addresses in the same way.
TFTP server name
tftpserver
or
10.0.0.3
tftpserver
or
10.0.0.3
tftpserver
or
10.0.0.3
tftpserver
or
10.0.0.3
Boot filename (configuration file)
(optional)
switcha-confg
switchb-confg
switchc-confg
switchd-confg
Hostname (optional)
switcha
switchb
switchc
switchd
Table 3-2
DHCP Server Configuration (continued)
Switch A
Switch B
Switch C
Switch D
Содержание Catalyst 2928
Страница 28: ...Contents xxviii Catalyst 2928 Switch Software Configuration Guide OL 23389 01 ...
Страница 32: ...xxx Catalyst 2928 Switch Software Configuration Guide OL 23389 01 Preface ...
Страница 496: ...26 14 Catalyst 2928 Switch Software Configuration Guide OL 23389 01 Chapter 26 Configuring SPAN Displaying SPAN Status ...
Страница 534: ...29 18 Catalyst 2928 Switch Software Configuration Guide OL 23389 01 Chapter 29 Configuring SNMP Displaying SNMP Status ...
Страница 700: ...Index IN 36 Catalyst 2928 Switch Software Configuration Guide OL 23389 01 ...