[CentOS-pt-br] Up link automŠtico

FŠbio de Sousa fabiocs em gmail.com
TerÁa Julho 29 19:17:46 UTC 2014


Obrigado, Jo√£o..

Aguardo ansioso... j√° pesquisei tanto esta parada...

Abraço,
F√°bio



  ~   *| F√°bio de
Sousa
*
.¬ļv¬ļ. *| T√©c. Inf.*
/(_)\ | *Seja livre, use LINUX*
.^.^. | *Socialmente justo, economicamente vi√°vel e tecnologicamente
sustent√°vel*







Em 29 de julho de 2014 15:39, Jo√£o Paulo Ferreira <jferreira.ba em gmail.com>
escreveu:

> F√°bio,
>
> Na parte gráfica o responsável por fazer isto é o NetworkManage, ja no
> modo texto eu vou pesquisar e lhe respondo.
>
> Atenciosamente,
>
> *Jo√£o Paulo Ferreira*
> *B.S. Computer Science* - UNIVERSIDADE SALVADOR
> Cel.: +55 (71) 9297-1260 TIM
> Cel.: +55 (71) 8837-7080 OI
> Skype.: joaopaulo.cf
> G-Talk/Mail: jferreira.ba em gmail.com
>
>
> Em 24 de julho de 2014 07:46, F√°bio de Sousa <fabiocs em gmail.com> escreveu:
>
>> Bom dia Jo√£o..
>>
>> A versão do CentOS é a 6.5
>> Esta configuração que me passou é padrão, foi a primeira tentada e ela só
>> funciona se o cabo de rede estiver conectado no momento do boot!
>> Eu preciso é que, uma vez o cabo  de rede conectado, em qualquer momento,
>> o serviço de rede solicite o IP via Dhcp.
>> Como citando antes, instalando o NetworkManager, funciona bem, mas minha
>> intenção era descobrir como se faz isso sem o NM instalado!
>>
>> Abraço,
>> F√°bio
>>
>>
>>
>>
>>   ~   *| F√°bio de
>> Sousa
>> *
>> .¬ļv¬ļ. *| T√©c. Inf.*
>> /(_)\ | *Seja livre, use LINUX*
>> .^.^. | *Socialmente justo, economicamente vi√°vel e tecnologicamente
>> sustent√°vel*
>>
>>
>>
>>
>>
>>
>>
>> Em 23 de julho de 2014 20:37, Jo√£o Paulo Ferreira <jferreira.ba em gmail.com
>> > escreveu:
>>
>>>  # vi /etc/sysconfig/network-scripts/ifcfg-eth0
>>>
>>> DEVICE=eth0
>>> TYPE=Ethernet
>>> ONBOOT=yes
>>> NM_CONTROLLED=no
>>> BOOTPROTO=dhcp
>>> NAME=eth0
>>>
>>>
>>> Solicitando o DHCP Client.
>>>
>>> 1) Conecte o cabo de rede
>>>
>>> 2) # dhclient <interface>
>>>
>>> Atenciosamente,
>>>
>>> *Jo√£o Paulo Ferreira*
>>> *B.S. Computer Science* - UNIVERSIDADE SALVADOR
>>> Cel.: +55 (71) 9297-1260 TIM
>>> Cel.: +55 (71) 8837-7080 OI
>>> Skype.: joaopaulo.cf
>>> G-Talk/Mail: jferreira.ba em gmail.com
>>>
>>>
>>> Em 23 de julho de 2014 20:34, Jo√£o Paulo Ferreira <
>>> jferreira.ba em gmail.com> escreveu:
>>>
>>> F√°bio,
>>>>
>>>> Qual a vers√£o do seu CentOS ?
>>>>
>>>> Atenciosamente,
>>>>
>>>> *Jo√£o Paulo Ferreira*
>>>> *B.S. Computer Science* - UNIVERSIDADE SALVADOR
>>>> Cel.: +55 (71) 9297-1260 TIM
>>>> Cel.: +55 (71) 8837-7080 OI
>>>> Skype.: joaopaulo.cf
>>>> G-Talk/Mail: jferreira.ba em gmail.com
>>>>
>>>>
>>>> Em 14 de maio de 2014 10:05, F√°bio de Sousa <fabiocs em gmail.com>
>>>> escreveu:
>>>>
>>>>>  Um salve a todos,
>>>>>
>>>>> ‚ÄčRespondendo as solicita√ß√£o do Jo√£o Paulo, segue:
>>>>>
>>>>> Saidas dos comandos:
>>>>>
>>>>> #runlevel
>>>>> 3
>>>>>
>>>>> ‚Äč# chkconfig --list | egrep 'dhclient'
>>>>> (n√£o foi retornado nada)
>>>>>
>>>>> ‚ÄčGrato,‚Äč
>>>>>
>>>>>   ~   *| F√°bio de
>>>>> Sousa
>>>>> *
>>>>> .¬ļv¬ļ. *| T√©c. Inf.*
>>>>> /(_)\ | *Seja livre, use LINUX*
>>>>> .^.^. | *Socialmente justo, economicamente vi√°vel e tecnologicamente
>>>>> sustent√°vel*
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Em 21 de fevereiro de 2014 15:32, Jo√£o Paulo Ferreira <
>>>>> jferreira.ba em gmail.com> escreveu:
>>>>>
>>>>>> F√°bio,
>>>>>>
>>>>>> Digite o comando
>>>>>>
>>>>>> # runlevel
>>>>>>
>>>>>> # chkconfig --list | egrep 'dhclient'
>>>>>>
>>>>>> e cole o resultado aqui.
>>>>>>
>>>>>> Atenciosamente,
>>>>>>
>>>>>> *Jo√£o Paulo Ferreira*
>>>>>> *B.S. Computer Science* - UNIVERSIDADE SALVADOR
>>>>>> Cel.: +55 (71) 9297-1260 TIM
>>>>>> Cel.: +55 (71) 8837-7080 OI
>>>>>> Skype.: joaopaulo.cf
>>>>>> G-Talk/Mail: jferreira.ba em gmail.com
>>>>>>
>>>>>>
>>>>>> Em 27 de janeiro de 2014 08:50, F√°bio de Sousa <fabiocs em gmail.com>
>>>>>> escreveu:
>>>>>>
>>>>>> Bom dia,
>>>>>>>
>>>>>>> Realmente o dhclient n√£o t√° rodando!
>>>>>>> Com o comando ps axu | grep dhclient não é encontrado nenhum
>>>>>>> processo!
>>>>>>> Mas tem o detalhe de que o IP é solicitado no boot, vejo que no
>>>>>>> boot, o sistema para por alguns segundo solicitando IP e depois segue!
>>>>>>> Procurando o nome do serviço para ativá-lo  não consegui encontrar!
>>>>>>> Dhclient não é, sabem me dizer qual é?
>>>>>>>
>>>>>>> Obrigado,
>>>>>>> F√°bio
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>   ~   *| F√°bio de
>>>>>>> Sousa
>>>>>>> *
>>>>>>> .¬ļv¬ļ. *| T√©c. Inf.*
>>>>>>> /(_)\ | *Seja livre, use LINUX*
>>>>>>> .^.^. | *Socialmente justo, economicamente vi√°vel e
>>>>>>> tecnologicamente sustent√°vel*
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Em 25 de janeiro de 2014 14:22, willian mayan <
>>>>>>> willianmayan em gmail.com> escreveu:
>>>>>>>
>>>>>>> ;) isso
>>>>>>>>
>>>>>>>>
>>>>>>>> 2014-01-24 Jo√£o Paulo Ferreira <jferreira.ba em gmail.com>
>>>>>>>>
>>>>>>>> Errata de Willian.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> BOOTPROTO=dhcp e n√£o BOOTPROTO=dhco
>>>>>>>>>
>>>>>>>>> Atenciosamente,
>>>>>>>>>
>>>>>>>>> *Jo√£o Paulo Ferreira*
>>>>>>>>> *B.S. Computer* - UNIVERSIDADE SALVADOR
>>>>>>>>> Cel.: +55 (71) 9297-1260 TIM
>>>>>>>>> Cel.: +55 (71) 8837-7080 OI
>>>>>>>>> Skype.: joaopaulo.cf
>>>>>>>>> G-Talk/Mail: jferreira.ba em gmail.com
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Em 24 de janeiro de 2014 16:57, Sergio Mira <shbmira em gmail.com>
>>>>>>>>> escreveu:
>>>>>>>>>
>>>>>>>>>  Exato.
>>>>>>>>>>
>>>>>>>>>> Como eu disse, verifique se o seu dhclient est√° rodando.
>>>>>>>>>> √Č ele quem fica "pedindo"/verificando IP nas interfaces
>>>>>>>>>> disponíveis.
>>>>>>>>>>
>>>>>>>>>> Do jeito que o Willian disse, com DHCP ativado no boot, o
>>>>>>>>>> dhclient deve iniciar rodando.
>>>>>>>>>>
>>>>>>>>>> N√£o importa se tem cabo ou n√£o, o dhclient sempre ficar√° rodando.
>>>>>>>>>> Se houver cabo, ele pede IP para o gateway da rede.
>>>>>>>>>> Se n√£o houver cabo ele fica esperando alguma interface fechar um
>>>>>>>>>> enlace.
>>>>>>>>>>
>>>>>>>>>> Verifique também o arquivo /etc/sysconfig/network
>>>>>>>>>>
>>>>>>>>>> Abs!
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>> || --------------------------------------------
>>>>>>>>>> ||        Sergio Mira
>>>>>>>>>> ||   _    BSc of Computer Science (in progress)
>>>>>>>>>> ||  ¬įv¬į   Federal University Of Lavras (UFLA)
>>>>>>>>>> || /(_)\
>>>>>>>>>> ||  ^ ^   sergiohbmira em computacao.ufla.br||        http://graduacao.dcc.ufla.br/~shbm95|| ---------------------------------------------
>>>>>>>>>> || Linux User #497558
>>>>>>>>>> || "Use Linux and be free."
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------ Mensagem original ------
>>>>>>>>>> De: "F√°bio de Sousa" <fabiocs em gmail.com>
>>>>>>>>>> Para: "Portuguese (Brazilian) CentOS mailing list" <
>>>>>>>>>> centos-pt-br em centos.org>
>>>>>>>>>> Cc: "Sergio Mira" <shbmira em gmail.com>
>>>>>>>>>> Enviado(s): 24/01/2014 17:43:19
>>>>>>>>>> Assunto: Re: [CentOS-pt-br] Up link autom√°tico
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>  Tranquilo galera!
>>>>>>>>>> Mas acho q n√£o entenderam!
>>>>>>>>>> Vamos partir do principio que usei as sugest√Ķes citadas!
>>>>>>>>>> A placa sobe no boot, solicita o IP via dhcp, pega ip, ok!
>>>>>>>>>> Agora eu puxo o cabo de rede! Fico sem rede ok?, ent√£o..
>>>>>>>>>> Agora conecto o cabo! Ai t√° o pulo do gato!
>>>>>>>>>> Com interface gráfica, acho q é o NetworkManager que cuida disso,
>>>>>>>>>> o sistema já solicita um novo ip, para o gateway da rede, sem interferência
>>>>>>>>>> do usu√°rio!
>>>>>>>>>>  A minha d√ļvida √© essa, se consigo implementar de modo q fique
>>>>>>>>>> da mesma, porém em modo texto!
>>>>>>>>>> A qualquer hora eu conectar um cabo na placa de rede. o sistema
>>>>>>>>>> solicitar um IP para gateway da rede!
>>>>>>>>>>
>>>>>>>>>> Grato,
>>>>>>>>>> F√°bio
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>   ~   *| F√°bio de
>>>>>>>>>> Sousa
>>>>>>>>>> *
>>>>>>>>>> .¬ļv¬ļ. *| T√©c. Inf.*
>>>>>>>>>> /(_)\ | *Seja livre, use LINUX*
>>>>>>>>>> .^.^. | *Socialmente justo, economicamente vi√°vel e
>>>>>>>>>> tecnologicamente sustent√°vel*
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Em 24 de janeiro de 2014 16:57, willian mayan <
>>>>>>>>>> willianmayan em gmail.com> escreveu:
>>>>>>>>>>
>>>>>>>>>>> GATEWAY=192.168.1.1 **(errata)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 2014-01-24 willian mayan <willianmayan em gmail.com>
>>>>>>>>>>>
>>>>>>>>>>>  Você pode deixar configurado as interfaces de rede:
>>>>>>>>>>>>
>>>>>>>>>>>>  /etc/sysconfig/network-scripts/ifcfg-eth0
>>>>>>>>>>>>
>>>>>>>>>>>> Exemplo IP fixo:
>>>>>>>>>>>>  DEVICE=eth0
>>>>>>>>>>>> BOOTPROTO=none
>>>>>>>>>>>> ONBOOT=yes
>>>>>>>>>>>> HWADDR=XX:XX:XX:XX:XX:XX
>>>>>>>>>>>> NETMASK=255.255.255.0
>>>>>>>>>>>> IPADDR=192.168.1.10
>>>>>>>>>>>> GATEWAY=192.168.1.10
>>>>>>>>>>>> TYPE=Ethernet
>>>>>>>>>>>>
>>>>>>>>>>>> Exemplo IP por DHCP:
>>>>>>>>>>>> DEVICE=eth0
>>>>>>>>>>>> BOOTPROTO=dhco
>>>>>>>>>>>> ONBOOT=yes
>>>>>>>>>>>> TYPE=Ethernet
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> 2014-01-24 Sergio Mira <shbmira em gmail.com>
>>>>>>>>>>>>
>>>>>>>>>>>>>   Salve, F√°bio!
>>>>>>>>>>>>>
>>>>>>>>>>>>> Verifique se o dhclient est√° rodando na sua interface de rede,
>>>>>>>>>>>>> com, por exemplo, o comando:
>>>>>>>>>>>>>
>>>>>>>>>>>>> *ps axu | grep dhclient*
>>>>>>>>>>>>>
>>>>>>>>>>>>> Se não estiver rodando, peça um IP ao gateway com o comando:
>>>>>>>>>>>>>
>>>>>>>>>>>>> *dhclient -v eth0*
>>>>>>>>>>>>>
>>>>>>>>>>>>> Onde *eth0* é a sua interface de rede.
>>>>>>>>>>>>> Para verificar as interfaces disponíveis, faça:
>>>>>>>>>>>>>
>>>>>>>>>>>>> *ifconfig*
>>>>>>>>>>>>>
>>>>>>>>>>>>> Caso n√£o tenha nenhuma interface ativa, verifique se possui
>>>>>>>>>>>>> interfaces listadas:
>>>>>>>>>>>>>
>>>>>>>>>>>>> *ifconfig -a*
>>>>>>>>>>>>>
>>>>>>>>>>>>> Se houver apenas a interface de loopback, aí o problema é mais
>>>>>>>>>>>>> embaixo, rs!
>>>>>>>>>>>>>
>>>>>>>>>>>>> Abraço!
>>>>>>>>>>>>>
>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>> || --------------------------------------------
>>>>>>>>>>>>> ||        Sergio Mira
>>>>>>>>>>>>> ||   _    BSc of Computer Science (in progress)
>>>>>>>>>>>>> ||  ¬įv¬į   Federal University Of Lavras (UFLA)
>>>>>>>>>>>>> || /(_)\
>>>>>>>>>>>>> ||  ^ ^   sergiohbmira em computacao.ufla.br||        http://graduacao.dcc.ufla.br/~shbm95|| ---------------------------------------------
>>>>>>>>>>>>> || Linux User #497558
>>>>>>>>>>>>> || "Use Linux and be free."
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ------ Mensagem original ------
>>>>>>>>>>>>> De: "F√°bio de Sousa" <fabiocs em gmail.com>
>>>>>>>>>>>>> Para: "Portuguese (Brazilian) CentOS mailing list" <
>>>>>>>>>>>>> centos-pt-br em centos.org>
>>>>>>>>>>>>> Enviado(s): 24/01/2014 14:06:40
>>>>>>>>>>>>> Assunto: [CentOS-pt-br] Up link autom√°tico
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Um salve a todos,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Um d√ļvida: no centOS com interface gr√°fica, ligo m√°quina sem o
>>>>>>>>>>>>> cabo de rede conectado. Após o sistema subir eu conecto o cabo de rede e o
>>>>>>>>>>>>> sistema reconhece  e solicita o ip via dhcp!
>>>>>>>>>>>>>  Dá para fazer isso também em uma sistema somente em  modo
>>>>>>>>>>>>> texto?
>>>>>>>>>>>>> Eu até consigo fazer o sistema solicitar o IP via dhcp somente
>>>>>>>>>>>>> no boot! Depois do sistema inicializado eu conecto o cabo de rede e nada
>>>>>>>>>>>>> acontece!
>>>>>>>>>>>>>  Alguém sabe como fazer em um sistema modo texto?
>>>>>>>>>>>>> Uso centOS 6.5
>>>>>>>>>>>>>
>>>>>>>>>>>>>  Grato,
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>   ~   *| F√°bio de
>>>>>>>>>>>>> Sousa
>>>>>>>>>>>>> *
>>>>>>>>>>>>> .¬ļv¬ļ. *| T√©c. Inf.*
>>>>>>>>>>>>> /(_)\ | *Seja livre, use LINUX*
>>>>>>>>>>>>> .^.^. | *Socialmente justo, economicamente vi√°vel e
>>>>>>>>>>>>> tecnologicamente sustent√°vel*
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> CentOS-pt-br mailing list
>>>>>>>>>>>>> CentOS-pt-br em centos.org
>>>>>>>>>>>>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Willian.A.Mayan
>>>>>>>>>>>> GNU/Linux user:#536163
>>>>>>>>>>>> Fedora Project - Ambassador
>>>>>>>>>>>> <https://fedoraproject.org/wiki/User:Willianmayan>
>>>>>>>>>>>> <https://fedoraproject.org/wiki/User:Willianmayan>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Willian.A.Mayan
>>>>>>>>>>> GNU/Linux user:#536163
>>>>>>>>>>> Fedora Project - Ambassador
>>>>>>>>>>> <https://fedoraproject.org/wiki/User:Willianmayan>
>>>>>>>>>>> <https://fedoraproject.org/wiki/User:Willianmayan>
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> CentOS-pt-br mailing list
>>>>>>>>>>> CentOS-pt-br em centos.org
>>>>>>>>>>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> CentOS-pt-br mailing list
>>>>>>>>>> CentOS-pt-br em centos.org
>>>>>>>>>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> CentOS-pt-br mailing list
>>>>>>>>> CentOS-pt-br em centos.org
>>>>>>>>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Willian.A.Mayan
>>>>>>>> GNU/Linux user:#536163
>>>>>>>> Fedora Project - Ambassador
>>>>>>>> <https://fedoraproject.org/wiki/User:Willianmayan>
>>>>>>>> <https://fedoraproject.org/wiki/User:Willianmayan>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> CentOS-pt-br mailing list
>>>>>>>> CentOS-pt-br em centos.org
>>>>>>>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> CentOS-pt-br mailing list
>>>>>>> CentOS-pt-br em centos.org
>>>>>>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> CentOS-pt-br mailing list
>>>>>> CentOS-pt-br em centos.org
>>>>>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> CentOS-pt-br mailing list
>>>>> CentOS-pt-br em centos.org
>>>>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>>>>
>>>>>
>>>>
>>>
>>> _______________________________________________
>>> CentOS-pt-br mailing list
>>> CentOS-pt-br em centos.org
>>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>>
>>>
>>
>> _______________________________________________
>> CentOS-pt-br mailing list
>> CentOS-pt-br em centos.org
>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>
>>
>
> _______________________________________________
> CentOS-pt-br mailing list
> CentOS-pt-br em centos.org
> http://lists.centos.org/mailman/listinfo/centos-pt-br
>
>
-------------- Průxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://lists.centos.org/pipermail/centos-pt-br/attachments/20140729/685f2902/attachment.html 


Mais detalhes sobre a lista de discuss„o CentOS-pt-br