The UNIX and Linux Forums  


Go Back   O UNIX e Linux Forum > Top Fóruns > UNIX para Dummies Perguntas & Respostas
.
google unix.com



UNIX para Dummies Perguntas & Respostas Se não tiver certeza de onde se pode postar uma pergunta Unix ou Linux, postá-lo aqui. Todos os UNIX e Linux novatos bem vindos!

Mais UNIX e Linux Fórum Tópicos Você pode achar Helpfull
Fio Thread Starter Fórum Respostas Última postagem
Adicioná-las ao novo endereço físico mehrdad68 Sun Solaris 4 02-07-2009 04:57
Como candidatar-se entre parênteses? vanitham Programação Shell Script e 2 01-27-2009 06:00
Necessidade de aplicar controlos SSH / SCP niceboykunal123 Programação Shell Script e 0 04-16-2008 02:41
Slow de IP estático ... rápido a partir de endereço NAT gseyforth UNIX para Dummies Perguntas & Respostas 3 03-09-2007 12:27
Como aplicar o awk commnad? preethgideon UNIX para Dummies Perguntas & Respostas 3 10-30-2006 09:32

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
Linkback Thread Tools Pesquisar este Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-12-2009
chebarbudo's Avatar
chebarbudo chebarbudo is offline
Usuário
  
 

Join Date: Nov 2008
Localização: diversos
Lugares: 188
Question Como aplicar o endereço IP estático

Oi lá,
Tenho um servidor Debian 5,0 recém-instalado.
Por padrão, o endereço IP é dado por dhcp.

Código:
pegase:~# grep '^[^#]' /etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
pegase:~# head -2 /etc/hosts
127.0.0.1       localhost
127.0.1.1       pegase.apltest  pegase

Então eu modificar os arquivos de modo que eles olham como este:

Código:
pegase:~# grep '^[^#]' /etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
        address 192.168.1.251
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
pegase:~# head -2 /etc/hosts
127.0.0.1       localhost
192.168.1.251   pegase.apltest  pegase

Então eu tento aplicar as alterações, com:

Código:
pegase:~# /etc/init.d/networking restart

Mas nesse momento, eu solto eth0:

Código:
pegase:~# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)

E a única forma de aplicar as alterações é necessário reiniciar o servidor.
Será isto normal? Como eu posso mudar de DHCP para endereço estático sem reiniciar?
Obrigado por sua ajuda.
Santiago
 

Marcadores

Tags
dhcp, networking, IP estático

Thread Tools Pesquisar este Thread
Pesquisar este Thread:

Pesquisa Avançada
Display Modes Esta taxa Thread
Esta taxa Thread:

Destacamento Regimento
Você não pode postar novas threads
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar suas postagens

BB code é Ligado
Smilies são Ligado
[IMG] código é Ligado
Código HTML é Desligado
Trackbacks são Ligado
Pingbacks são Ligado
Refbacks são Ligado




Todos os horários são GMT -4. A hora é agora 06:50.


Powered by: vBulletinCopyright © 2000 - 2006, Jelsoft Enterprises Limited. Língua Traduções Powered by .
vBCredits v1.4 Copyright © 2007 - 2008, PixelFX Studios
O UNIX e Linux Fóruns Content Copyright © 1993-2009. Todos os Direitos Reserved.Ad Gestão por RedTyger

Content Relevant URLs por vBSEO 3.2.0