The main objective of this challenge is to set some IP details and for DHCP settings. A sample configuration is:
R1(config)# ip subnet-zero R1(config)# ip classless R1(config)# ip dhcp pool edin R1(dhcp-config)# domain test.com R1(dhcp-config)# network 1.2.3.0 255.255.0.0 R1(dhcp-config)# netbios-name-server 1.2.3.4 R1(dhcp-config)# default-router 1.2.3.4 R1(dhcp-config)# exit R1(config)# ip dhcp ping timeout 100 R1(config)# service dhcp
For example:
test# config t Enter configuration commands, one per line. End with CNTL/Z. R1(config)# ip subnet-zero R1(config)# ip classless R1(config)# ip dhcp ? aaa Configure aaa attributes binding DHCP address bindings bootp BOOTP specific configuration conflict DHCP address conflict parameters database Configure DHCP database agents excluded-address Prevent DHCP from assigning certain addresses limited-broadcast-address Use all 1's broadcast address ping Specify ping parameters used by DHCP pool Configure DHCP address pools relay DHCP relay agent parameters smart-relay Enable Smart Relay feature R1(config)# ip dhcp pool ? WORD Pool name R1(config)# ip dhcp pool edin R1(dhcp-config)# ? DHCP pool configuration commands: accounting Send Accounting Start/Stop messages bootfile Boot file name client-identifier Client identifier client-name Client name default-router Default routers dns-server DNS servers domain-name Domain name exit Exit from DHCP pool configuration mode hardware-address Client hardware address host Client IP address and mask import Programatically importing DHCP option parameters lease Address lease time netbios-name-server NetBIOS (WINS) name servers netbios-node-type NetBIOS node type network Network number and mask next-server Next server in boot process no Negate a command or set its defaults option Raw DHCP options origin Configure the origin of the pool subnet Subnet allocation commands update Dynamic updates utilization Configure various utilization parameters vrf Associate this pool with a VRF R1(dhcp-config)# domain test.com R1(dhcp-config)# network ? A.B.C.D Network number in dotted-decimal notation R1(dhcp-config)# network 1.2.3.0 ? /nn or A.B.C.D Network mask or prefix lengthR1(dhcp-config)# network 1.2.3.0 255.255.0.0 R1(dhcp-config)# netbios-name-server ? <0-FF> Hexadecimal number Hostname or A.B.C.D Server's name or IP address b-node Broadcast node h-node Hybrid node m-node Mixed node p-node Peer-to-peer node R1(dhcp-config)# netbios-name-server 1.2.3.4 R1(dhcp-config)# default-router ? Hostname or A.B.C.D Router's name or IP address R1(dhcp-config)# default-router 1.2.3.4 R1(dhcp-config)# exit R1(config)# ip dhcp ? aaa Configure aaa attributes binding DHCP address bindings bootp BOOTP specific configuration conflict DHCP address conflict parameters database Configure DHCP database agents excluded-address Prevent DHCP from assigning certain addresses limited-broadcast-address Use all 1's broadcast address ping Specify ping parameters used by DHCP pool Configure DHCP address pools relay DHCP relay agent parameters smart-relay Enable Smart Relay feature R1(config)# ip dhcp ping ? packets Specify number of ping packets timeout Specify ping timeout R1(config)# ip dhcp ping timeout ? <100-10000> Ping timeout in milliseconds R1(config)# ip dhcp ping timeout 100 R1(config)# service ? alignment Control alignment correction and logging compress-config Compress the nvram configuration file config TFTP load config files dhcp Enable DHCP server and relay agent disable-ip-fast-frag Disable IP particle-based fast fragmentation exec-callback Enable exec callback exec-wait Delay EXEC startup on noisy lines finger Allow responses to finger requests hide-telnet-addresses Hide destination addresses in telnet command linenumber enable line number banner for each exec nagle Enable Nagle's congestion control algorithm old-slip-prompts Allow old scripts to operate with slip/ppp pad Enable PAD commands password-encryption Encrypt system passwords prompt Enable mode specific prompt pt-vty-logging Log significant VTY-Async events sequence-numbers Stamp logger messages with a sequence number slave-log Enable log capability of slave IPs tcp-keepalives-in Generate keepalives on idle incoming network connections tcp-keepalives-out Generate keepalives on idle outgoing network connections tcp-small-servers Enable small TCP servers (e.g., ECHO) telnet-zeroidle Set TCP window 0 when connection is idle timestamps Timestamp debug/log messages udp-small-servers Enable small UDP servers (e.g., ECHO) R1(config)# service dhcp