77
Performing Switch Setup Configuration
Configuration Examples for Performing Switch Setup Configuration
Switch(dhcp-config)#
default-router 10.10.10.1
Switch(dhcp-config)#
option 150 10.10.10.1
Switch(dhcp-config)#
exit
Switch(config)#
tftp-server flash:config-boot.text
Switch(config)#
interface GigabitEthernet1/18
Switch(config-if)#
no switchport
Switch(config-if)#
ip address 10.10.10.1 255.255.255.0
Switch(config-if)#
end
Configuring a Switch as a DHCP Server: Example
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:c-ipservices-mz.122-44.3.SE.tar
Switch(config)#
tftp-server flash:ies-lanbase-tar.122-44.EX.tar
Switch(config)#
tftp-server flash:boot-config.text
Switch(config)#
tftp-server flash: autoinstall_dhcp
Switch(config)#
interface GigabitEthernet1/18
Switch(config-if)#
no switchport
Switch(config-if)#
ip address 10.10.10.1 255.255.255.0
Switch(config-if)#
end
Configuring Client to Download Files from DHCP Server
This example uses a Layer 3 SVI interface on VLAN 99 to enable DHCP-based autoconfiguration with a saved
configuration:
Switch#
configure terminal
Switch(conf)#
boot host dhcp
Switch(conf)#
boot host retry timeout 300
Switch(conf)#
banner config-save ^C Caution - Saving Configuration File to NVRAM May Cause You to
Nolonger Automatically Download Configuration Files at Reboot^C
Switch(config)#
vlan 99
Switch(config-vlan)#
interface vlan 99
Switch(config-if)#
no shutdown
Switch(config-if)#
end
Switch#
show boot
BOOT path-list:
Config file: flash:/config.text
Private Config file: flash:/private-config.text
Enable Break: no
Manual Boot: no
HELPER path-list:
NVRAM/Config file
buffer size: 32768
Timeout for Config
Download: 300 seconds
Config Download
via DHCP: enabled (next boot: enabled)
Switch#
Summary of Contents for IE 4000
Page 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Page 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Page 108: ...104 Configuring Switch Clusters Additional References ...
Page 128: ...124 Performing Switch Administration Additional References ...
Page 130: ...126 Configuring PTP ...
Page 140: ...136 Configuring CIP Additional References ...
Page 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Page 192: ...188 Configuring Switch Based Authentication Additional References ...
Page 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Page 298: ...294 Configuring VLANs Additional References ...
Page 336: ...332 Configuring STP Additional References ...
Page 408: ...404 Configuring DHCP Additional References ...
Page 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Page 490: ...486 Configuring SPAN and RSPAN Additional References ...
Page 502: ...498 Configuring Layer 2 NAT ...
Page 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Page 930: ...926 Configuring IP Unicast Routing Related Documents ...
Page 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Page 978: ...974 Dying Gasp ...
Page 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Page 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Page 996: ...992 Ethernet CFM ...
Page 1066: ...1062 Using an SD Card SD Card Alarms ...