SlideShare uma empresa Scribd logo
1 de 2
Configurando DHCP no Debian 6.
O serviço DHCP eu considero o mais básico em uma rede de computadores, claro, sem IP
nos hosts (clientes, servidores, ativos de redes e etc), a comunicação não existiria.

Irei mostrar como configurar o Serviço DHCP Server no GNULinux Debian 6.

Com o seu Debian instalado e com a placa de rede instalada e configurada corretamente
como no exemplo abaixo:

#informações contidas no arquivo /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.10.0.1
netmask 255.255.255.0
broadcast 10.10.0.255
network 10.10.0.0

Agora temos que instalar o pacote dhcp3-server, que é o serviço DHCP server:
aptitude update
aptitude install dhcp3-server

Depois de instalado, iremos executar o comando abaixo, para realizar o backup do arquivo
dhcpd.conf.
mv /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.bkp

Criado o backup, iremos agora criar um novo arquivo com o nome dhcpd.conf.
vi /etc/dhcp/dhcpd.conf

Iremos colocar as informações abaixo no arquivo dhcpd.conf:
authoritative;
ddns-update-style none;
default-lease-time 604600;
max-lease-time 604600;
option routers 10.10.0.1;
option domain-name "exemplo.com.br";
option domain-name-servers 10.10.0.1;
subnet 10.10.0.0 netmask 255.255.255.0 {
range 10.10.0.40 10.10.0.254;
}

Alguns explicações sobre os parâmetros do arquivo dhcpd.conf:
authoritative; - se tiver mais de 1 Servidor DHCP na Rede, esse será predominante,
"autoritário";
ddns-update-style none; - essa opção informa ao servidor DNS as informações de todos
os hosts na rede, a opção none; diz para não atualizar para o servidor DNS;
default-lease-time 604600; - tempo padrão que o IP será "alugado" para o host;
max-lease-time 604600; - tempo máximo que o IP será "alugado" para o host;
option domain-name "exemplo.com.br"; - essa opção informa o nome do domínio da
rede;
option domain-name-servers 10.10.0.1; - essa opção informa o endereço IP do Servidor
DNS ou Servidores DNS (10.10.0.1, 10.10.0.5 e etc);

subnet 10.10.0.0 netmask 255.255.255.0 {
range 10.10.0.40 10.10.0.254;
}

Aqui está a parte mais interessante do nosso arquivo, a opção subnet informa o
endereçamento IP que a rede terá. A opção do range, informa a faixa de IPs dentro da
subnet que o servidor irá atribuir para os hosts que estiverem com a opção de dhcp-client
habilitadas.

Depois dessas configurações, só temos que reiniciar o serviço dhcp server no Debian 6
com o comando abaixo:
/etc/init.d/isc-dhcp-server restart

Pronto, DHCP Server instalado e configurado no Debian 6. Lembro que essa é uma
configuração básica, em outro post vou acrescentar mais informações sobre o Serviço
DHCP Server.

Mais conteúdo relacionado

Destaque

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 

Destaque (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Configurando dhcp no debian 6

  • 1. Configurando DHCP no Debian 6. O serviço DHCP eu considero o mais básico em uma rede de computadores, claro, sem IP nos hosts (clientes, servidores, ativos de redes e etc), a comunicação não existiria. Irei mostrar como configurar o Serviço DHCP Server no GNULinux Debian 6. Com o seu Debian instalado e com a placa de rede instalada e configurada corretamente como no exemplo abaixo: #informações contidas no arquivo /etc/network/interfaces auto eth0 iface eth0 inet static address 10.10.0.1 netmask 255.255.255.0 broadcast 10.10.0.255 network 10.10.0.0 Agora temos que instalar o pacote dhcp3-server, que é o serviço DHCP server: aptitude update aptitude install dhcp3-server Depois de instalado, iremos executar o comando abaixo, para realizar o backup do arquivo dhcpd.conf. mv /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.bkp Criado o backup, iremos agora criar um novo arquivo com o nome dhcpd.conf. vi /etc/dhcp/dhcpd.conf Iremos colocar as informações abaixo no arquivo dhcpd.conf: authoritative; ddns-update-style none; default-lease-time 604600; max-lease-time 604600; option routers 10.10.0.1; option domain-name "exemplo.com.br"; option domain-name-servers 10.10.0.1; subnet 10.10.0.0 netmask 255.255.255.0 { range 10.10.0.40 10.10.0.254; } Alguns explicações sobre os parâmetros do arquivo dhcpd.conf: authoritative; - se tiver mais de 1 Servidor DHCP na Rede, esse será predominante, "autoritário"; ddns-update-style none; - essa opção informa ao servidor DNS as informações de todos os hosts na rede, a opção none; diz para não atualizar para o servidor DNS; default-lease-time 604600; - tempo padrão que o IP será "alugado" para o host; max-lease-time 604600; - tempo máximo que o IP será "alugado" para o host; option domain-name "exemplo.com.br"; - essa opção informa o nome do domínio da rede; option domain-name-servers 10.10.0.1; - essa opção informa o endereço IP do Servidor DNS ou Servidores DNS (10.10.0.1, 10.10.0.5 e etc); subnet 10.10.0.0 netmask 255.255.255.0 { range 10.10.0.40 10.10.0.254; } Aqui está a parte mais interessante do nosso arquivo, a opção subnet informa o
  • 2. endereçamento IP que a rede terá. A opção do range, informa a faixa de IPs dentro da subnet que o servidor irá atribuir para os hosts que estiverem com a opção de dhcp-client habilitadas. Depois dessas configurações, só temos que reiniciar o serviço dhcp server no Debian 6 com o comando abaixo: /etc/init.d/isc-dhcp-server restart Pronto, DHCP Server instalado e configurado no Debian 6. Lembro que essa é uma configuração básica, em outro post vou acrescentar mais informações sobre o Serviço DHCP Server.