cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
242
Views
0
Helpful
0
Replies
Highlighted
Beginner

iPXE- DHCP Server - Not providing image for User-Class request option 77 - Cat 9300

 

Hi, 

Trying to auto install Cat9300 via iPXE, using the below steps.

Ref:

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/169/b_169_programmability_cg/ipxe.html

 

DHCP file used:

 

subnet 20.1.1.0 netmask 255.255.255.0 {
 range 20.1.1.100 20.1.1.150;
      host Switch {
          fixed-address                   20.1.1.105;
          hardware ethernet               68:CA:E4:A1:57:80;
          if exists user-class and option user-class = 04:68:50:58:45 {
             filename "http://20.1.1.88/cat9k_iosxe.16.06.05.SPA.bin" ;
          }
          #option bootfile-name            "http://20.1.1.88/sample_python_2.py";
 }
}

 

DHCP server receives the bootp request with option 77, but response from dhcp server to switch doesnt have the image details !

 

Also Switch is configured with "default boot iPXE" is receiving the ip address from DHCP server, but there is no response after that! (stuck)

 

Last reset cause: PowerOn

C9300-24P platform with 8388608 Kbytes of main memory

 

Starting network boot configuration discovery ...

DHCP: Requesting network configuration; listening for 10 seconds

DHCP: Failed to discover network configuration (Time out)

DHCP: Backing off for 3 second(s) 

DHCP: Requesting network configuration; listening for 10 seconds

DHCP: Failed to discover network configuration (Time out)

DHCP: Backing off for 9 second(s) 

DHCP: Requesting network configuration; listening for 10 seconds

 


tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 262144 bytes 05:28:26.259647 IP (tos 0x0, ttl 64, id 1006, offset 0, flags [none], proto UDP (17), length 314) 0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request from 68:ca:e4:a1:57:80 (oui Unknown), length 286, xid 0x124303f0, Flags [Broadcast] (0x8000) Client-Ethernet-Address 68:ca:e4:a1:57:80 (oui Unknown) Vendor-rfc1048 Extensions Magic Cookie 0x63825363 DHCP-Message Option 53, length 1: Discover MSZ Option 57, length 2: 65280 Parameter-Request Option 55, length 5: Subnet-Mask, Default-Gateway, Domain-Name-Server, Domain-Name LOG User-Class Option 77, length 5: instance#1: "iPXE", length 4 Client-ID Option 61, length 11: hardware-type 70, 43:57:32:32:31:32:45:30:30:43 Vendor-Class Option 60, length 9: "C9300-24P" END Option 255, length 0 05:28:26.260408 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328) shiva-vm1.bootps > 255.255.255.255.bootpc: [udp sum ok] BOOTP/DHCP, Reply, length 300, xid 0x124303f0, Flags [Broadcast] (0x8000) Your-IP 20.1.1.105 Client-Ethernet-Address 68:ca:e4:a1:57:80 (oui Unknown) Vendor-rfc1048 Extensions Magic Cookie 0x63825363 DHCP-Message Option 53, length 1: Offer Server-ID Option 54, length 4: shiva-vm1 Lease-Time Option 51, length 4: 43200 Subnet-Mask Option 1, length 4: 255.255.255.0 END Option 255, length 0 PAD Option 0, length 0, occurs 38 05:28:35.879222 IP (tos 0x0, ttl 64, id 1007, offset 0, flags [none], proto UDP (17), length 326) 0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request from 68:ca:e4:a1:57:80 (oui Unknown), length 298, xid 0x124303f0, Flags [Broadcast] (0x8000) Client-Ethernet-Address 68:ca:e4:a1:57:80 (oui Unknown) Vendor-rfc1048 Extensions Magic Cookie 0x63825363 DHCP-Message Option 53, length 1: Request Server-ID Option 54, length 4: shiva-vm1 Requested-IP Option 50, length 4: 20.1.1.105 MSZ Option 57, length 2: 65280 Parameter-Request Option 55, length 5: Subnet-Mask, Default-Gateway, Domain-Name-Server, Domain-Name LOG User-Class Option 77, length 5: instance#1: "iPXE", length 4 Client-ID Option 61, length 11: hardware-type 70, 43:57:32:32:31:32:45:30:30:43 Vendor-Class Option 60, length 9: "C9300-24P" END Option 255, length 0 05:28:35.879684 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328) shiva-vm1.bootps > 255.255.255.255.bootpc: [udp sum ok] BOOTP/DHCP, Reply, length 300, xid 0x124303f0, Flags [Broadcast] (0x8000) Your-IP 20.1.1.105 Client-Ethernet-Address 68:ca:e4:a1:57:80 (oui Unknown) Vendor-rfc1048 Extensions Magic Cookie 0x63825363 DHCP-Message Option 53, length 1: ACK Server-ID Option 54, length 4: shiva-vm1 Lease-Time Option 51, length 4: 43200 Subnet-Mask Option 1, length 4: 255.255.255.0 END Option 255, length 0 PAD Option 0, length 0, occurs 38

 

Everyone's tags (4)
CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards