6-29
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 6 Programmability
Sample Configuration and Reference Information
class "WS-X45-SUP8L-E" {
match pick-first-value (option dhcp-client-identifier, hardware);
option routers 198.0.2.254;
option subnet-mask 255.255.255.0;
server-identifier 198.51.100.2;
next-server 198.51.100.2;
}
class "WS-4500X-16" {
match pick-first-value (option dhcp-client-identifier, hardware);
option routers 198.0.2.254;
option subnet-mask 255.255.255.0;
server-identifier 198.51.100.2;
next-server 198.51.100.2;
}
#DEFINE A SUBCLASS TO ADD THE DEVICE BASED ON ITS MAC ADDRESS TO RECEIVE
#CONFIGURATION FILES. THIS APPLIES WHEN YOU HAVE MULTIPLE DEVICES WITH SAME
#VENDOR-SPECIFIC IDENTIFIER AND YOU WANT TO PUSH DIFFERENT CONFIGURATIONS BASED ON THE
#MAC ADDRESS
subclass "WS-X45-SUP8L-E" 1:e4:aa:5d:c4:a5:a6 {
# ENTER THE BOOTFILENAME.THIS .BIN IMAGE FILE SHOULD RESIDE IN THE TFTPBOOT FOLDER.
filename "example-ios-image.bin";
option routers 198.0.2.254;
#SPECIFY THAT THE OPTION 43 AND ROUTER(3) DETAILS HAVE TO BE SENT TO THE CLIENT SWITCH
option dhcp-parameter-request-list 43,3;
option vendor-class-identifier "WS-X45-SUP8L-E";
vendor-option-space EXAMPLE;
#SPECIFY THE PATH OF THE FILES YOU WANT TO SEND (HTTP).
#MAKE SURE THESE FILES RESIDE IN IDENTICAL FOLDERS (configs/,scripts/,container/) IN
#the HTTP ROOT FOLDER. YOU MUST CREATE THE IDENTICAL FOLDERS WITH THE SAME NAME AND
#CASE.
#ENTER A FILE NAME. MAKE SURE THAT CONFIG, SCRIPT, AND OVA FILE EXTENTIONS ARE
#<config-file>.config,<script-file>.script,<container-file>.ova RESPECTIVELY.
option EXAMPLE.startup-config
"http://example-httpserver-url.com/configs/example-config.config";
option EXAMPLE.user-script
"http://example-httpserver-url.com/scripts/example-script.py";
option EXAMPLE.user-ova
"http://example-httpserver-url.com/container/example_dmi_container.ova";
option dhcp-parameter-request-list 43,3;
}
subclass "WS-X45-SUP8L-E" 1:e4:aa:5d:c4:a5:a1 {
#WHEN USING HTTP TO DOWNLOAD FILES, PROVIDE THE PATH IN THE FOLLOWING FORMAT:
#filename “http://<http server url>/ios_image.bin"
filename "http://example-httpserver-url.com/example-ios-image.bin"
option routers 198.0.2.254;
option dhcp-parameter-request-list 43,3;
option vendor-class-identifier "WS-X45-SUP8L-E";
vendor-option-space EXAMPLE;
option EXAMPLE.startup-config
"http://example-httpserver-url.com/example-config.config";
option EXAMPLE.user-script
"http://example-httpserver-url.com/example-script.py";
option EXAMPLE.user-ova
"http://example-httpserver-url.com/example-container.ova";
option dhcp-parameter-request-list 43,3;
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...