Cisco Catalyst 3750-X Software Configuration Manual page 109

Hide thumbs Also See for Catalyst 3750-X:
Table of Contents

Advertisement

Chapter 3
Assigning the Switch IP Address and Default Gateway
Command
Step 1
configure terminal
Step 2
ip dhcp pool name
Step 3
bootfile filename
Step 4
network network-number mask
prefix-length
Step 5
default-router address
Step 6
option 150 address
Step 7
option 125 hex
Step 8
copy tftp flash filename.txt
Step 9
copy tftp flash imagename.tar
Step 10
exit
Step 11
tftp-server flash:config.text
Step 12
tftp-server flash:imagename.tar
Step 13
tftp-server flash:filename.txt
Step 14
interface interface-id
Step 15
no switchport
Step 16
ip address address mask
Step 17
end
Step 18
copy running-config startup-config
This example shows how to configure a switch as a DHCP server so it downloads a configuration file:
Switch# config terminal
Switch(config)# ip dhcp pool pool1
Switch(dhcp-config)# network 10.10.10.0 255.255.255.0
Switch(dhcp-config)# bootfile config-boot.text
Switch(dhcp-config)# default-router 10.10.10.1
Switch(dhcp-config)# option 150 10.10.10.1
Switch(dhcp-config)# option 125 hex
0000.0009.0a05.08661.7574.6f69.6e73.7461.6c6c.5f64.686370
Switch(dhcp-config)# exit
Switch(config)# tftp-server flash:config-boot.text
Switch(config)# tftp-server flash:image_name
Switch(config)# tftp-server flash:boot-config.text
Switch(config)# tftp-server flash: autoinstall_dhcp
Switch(config)# interface gigabitEthernet1/0/4
Switch(config-if)# no switchport
Switch(config-if)# ip address 10.10.10.1 255.255.255.0
Switch(config-if)# end
OL-21521-01
Purpose
Enter global configuration mode.
Create a name for the DHCP server address pool and enter DHCP pool
configuration mode.
Specify the name of the file that is used as a boot image.
Specify the subnet network number and mask of the DHCP address pool.
The prefix length specifies the number of bits that comprise the
Note
address prefix. The prefix is an alternative way of specifying the
network mask of the client. The prefix length must be preceded
by a forward slash (/).
Specify the IP address of the default router for a DHCP client.
Specify the IP address of the TFTP server.
Specify the path to the text file that describes the path to the image file.
Upload the text file to the switch.
Upload the tar file for the new image to the switch.
Return to global configuration mode.
Specify the Cisco IOS configuration file on the TFTP server.
Specify the image name on the TFTP server.
Specify the text file that contains the name of the image file to download
Specify the address of the client that will receive the configuration file.
Put the interface into Layer 3 mode.
Specify the IP address and mask for the interface.
Return to privileged EXEC mode.
(Optional) Save your entries in the configuration file.
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
Assigning Switch Information
3-13

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3560-x

Table of Contents