Casa > C > Como Configurar Um Dhcp Em Um Roteador Cisco

Como configurar um DHCP em um roteador Cisco

Para habilitar o serviço DHCP em seu roteador cisco, primeiro vá até a interface na qual você precisa fornecer o serviço DHCP e forneça um endereço IP para o mesmo se ele não tiver. Este IP será o endereço IP de 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. Ip seria dado a partir deste intervalo e de acordo com a máscara de subrede. 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 !

De Hurlbut

Como enraizar o meu YU Yuphoria sem um PC :: Quais são as suas histórias engraçadas sobre PUBG móvel?