QNA > C > Come Impostare Un Dhcp In Un Router Cisco

Come impostare un DHCP in un router Cisco

Per abilitare il servizio DHCP nel tuo router cisco, prima vai nell'interfaccia in cui devi fornire il servizio DHCP e fornisci un indirizzo IP per la stessa se non ce l'ha. Questo IP sarà l'indirizzo IP del gateway. I am providing 10.xx.xx.xx ip range here

  1. Router(config)# interface ethernet0/0 
  2. Router(config-if)#ip address 10.0.0.1 255.0.0.0 
  3. Router(config-if)#no shutdown 

Now we need to enable DHCP service, for that first we need to give a ip pool name. Name can be anything like pool1, or yournamepool etc.

  1. Router(config)# ip dhcp pool pool1 

Now it will enter DHCP-Config, specify the network range and subnet for DHCP service. L'IP verrebbe dato da questo range e secondo la subnet mask. I am assuming , at this point you already know subnetting and related stuff.

  1. Router(dhcp-config)# network 10.0.0.0 255.255.255.0 

Now specify the default-router, that is the gateway ip address. We did that in first step. In this case it is 10.0.0.1

  1. Router(dhcp-config)#default-router 10.0.0.1 

Now you can exit DHCP configuration by

  1. Router(dhcp-config)#exit 

In case, if you need to exclude a range of ip from DHCP pool you can give it in the following step. Say you need to skip like 10.0.0.200–10.0.0.240

  1. Router(config)#ip dhcp excluded-address 10.0.0.200 10.0.0.240 

Now all the machines connected to that particular port via a switch will get IP allocation using DHCP protocol. In case you already have machines running, you can give ipconfig/renew to get a new ip. Or just restart machine, or even change static ip assigning to DHCP.

Thats it !

Di Filbert

Dovrei aggiornare il mio MS office 2016 a Office 2019? :: Quali sono le tue storie divertenti su PUBG mobile?
Link utili