Download MicroMonitor User`s Manual
Transcript
op (1) htype (1) hlen (1) hops (1) xid (4) secs (2) unused (2) ciaddr (4) yiaddr (4) Copied to IPADD shell variable siaddr (4) Copied to BOOTSRVR shell variable giaddr (4) Copied to RLYAGNT shell variable chaddr (16) sname (64) file (128) Copied to BOOTFILE shell variable vend (64) Option #1 copied to NETMASK Option #3 copied to GIPADD Entire field copied to DHCPVSA • Table 1: Structure of a BOOTP Packet op (1) htype (1) hlen (1) hops (1) xid (4) secs (2) flags (2) ciaddr (4) yiaddr (4) Copied to IPADD shell variable siaddr (4) Copied to BOOTSRVR shell variable giaddr (4) Copied to RLYAGNT shell variable chaddr (16) sname (64) file (128) Copied to BOOTFILE shell variable options (312) Option #1 copied to NETMASK Option #3 copied to GIPADD Option #51 copied to DHCPLEASETIME Entire field copied to DHCPVSA • Table 2: Structure of a DHCP Packet Referring to Table 1, upon completion of the BOOTP/DHCP handshake with some server, the target expects the yiaddr field to be loaded with the target's IP address. This value will be stored in the IPADD shell variable. In addition, it will store the content of the siaddr field into the BOOTSRVR shell variable, the file field into the BOOTFILE shell variable, and the giaddr field into the RLYAGNT shell variable. Certain standard options are also transferred to shell variables...the router (option code 3) into the GIPADD shell variable and the subnet-mask (option code 1) will be stored into the NETMASK shell variable. Note that each of these additional fields will be loaded into their respective shell variable only if found to be non-zero. Note also that if after the DHCP/BOOTP transaction has completed, the RLYAGNT variable is loaded, but GIPADD is not, then the content of RLYAGNT is copied to GIPADD. Finally, to satisfy other non-standard scenarios, the entire content of BOOTP vendor-specific-area of the DHCP options area will be copied (in ASCII-coded-hex) to the DHCPVSA shell variable if the DHCPVSA shell variable is present (to indicate that it should be overwritten with the field). 57