Dynamic Host Configuration Protocol

From NesevoWiki
Jump to navigationJump to search

Definition:

The DHCP (Dynamic Host Configuration Protocol) tells the hosts IP addresses. It operates on the principle ROSA (Request Offer Selection Acknowledgment). It applies to the IP from a so-called IP address pool. Windows 2003 Server includes defaultly a DHCP server. The DHCP- Server will arrange IP addresses to the clients, but they will defautly exist 8 days, then you will need a new address. After the PC gets a new address. This process is called leasing. After the 4 days the host will ask the DHCP server if he is available. Similarly, after seven days. If the DHCP server on the 8th day is still not reachable, the host loses the IP address and gets the IP 0.0.0.0. Therefore, always 2 DHCP server row.

Konfiguration:

Router>en Type en in to get into the proveligiert mode

Router#config t Type config t in to get into the global configurationsmode

Router(config)#ip dhcp pool <Name> You need this command to create a DHCP pool.

Router(dhcp-config)#network 172.168.10.0 255.255.255.0 With this command you can say where the dhcp server will operate.

Router(dhcp-config)#default-router 172.16.10.1 This command will define the default-router.

Router(dhcp-config)#dns-server 172.168.10.10 This command will define the adress from the DNS- server

Router(dhcp-config)#netbios-name-server 172.16.10.10 This command will define a netbios server

Router(dhcp-config)#domain-name <domain name> This command will define the domain name for the clients.

Router(dhcp-config)#lease 14 12 13 This command will define the leaseperiod (14day 12hour 23minutes).

Router(dhcp-config)#lease infinite This command will set the leaseperiod on endless (standard is on day).

Router(dhcp-config)#exit You will leave the DHCP configuration mode

Router(config)#ip dhcp excluded-adress 172.16.10.1 172.16.10.10 This command defines the IP addresses, witch can not be used.

Router(config)#no service dhcp To deactivate the dhcp service.

Router(config)#service dhcp To activate the dhcp service.

Router(config)#