Autor Tópico: Renovar IP NetVirtua  (Lida 5481 vezes)

Offline Andras

  • Usuário Ubuntu
  • *
  • Mensagens: 2
    • Ver perfil
Renovar IP NetVirtua
« Online: 19 de Outubro de 2009, 11:14 »
Salve galera
estou com um problema ja faz umas 2 semanas que ando pesquisando
e não consigo renovar o IP no linux de jeito nenhum
no Windows eu usava os comandos
ipconfig /flushdns
ipconfig /registerdns
ipconfig /setclassid NET
ipconfig /release
netsh int ip add add name=NET 111.111.111.111 255.0.0.0
netsh int ip set add name=NET source=dhcp
ipconfig /renew


tipo na pratica esses comandos faziam o seguinte

lembrando que NET é nome da minha conexão local

ipconfig /flushdns
Flushes and resets the contents of the DNS client resolver cache. During DNS troubleshooting, you can use this procedure to discard negative cache entries from the cache, as well as any other entries that have been added dynamically.

ipconfig /registerdns
Initiates manual dynamic registration for the DNS names and IP addresses that are configured at a computer. You can use this parameter to troubleshoot a failed DNS name registration or resolve a dynamic update problem between a client and the DNS server without rebooting the client computer. The DNS settings in the advanced properties of the TCP/IP protocol determine which names are registered in DNS.

ipconfig /setclassid NET
Configures the DHCP class ID for a specified adapter. To set the DHCP class ID for all adapters, use the asterisk (*) wildcard character in place of Adapter. This parameter is available only on computers with adapters that are configured to obtain an IP address automatically. If a DHCP class ID is not specified, the current class ID is removed.

ipconfig /release
Sends a DHCPRELEASE message to the DHCP server to release the current DHCP configuration and discard the IP address configuration for either all adapters (if an adapter is not specified) or for a specific adapter if the Adapter parameter is included. This parameter disables TCP/IP for adapters configured to obtain an IP address automatically. To specify an adapter name, type the adapter name that appears when you use ipconfig without parameters.

netsh int ip add add name=NET 111.111.111.111 255.0.0.0
esse comando configurava manualmente o ip para 111.111.111.111 e a mascara para 255.0.0.0

netsh int ip set add name=NET source=dhcp
esse fazia pegar outro ip automaticamente

ipconfig /renew

Renews DHCP configuration for all adapters (if an adapter is not specified) or for a specific adapter if the Adapter parameter is included. This parameter is available only on computers with adapters that are configured to obtain an IP address automatically. To specify an adapter name, type the adapter name that appears when you use ipconfig without parameters.

porem não consigo fazer nada do genero no ubuntu
e pelo que eu conheço so existe esse modo no Win de renovar o IP do NetVirtua

se alguem puder me ajudar agradeço muito!

Abraços!

OBS:
esses comandos da para fazer no modo grafico no win exemplo
http://www.styletutos.net/?p=87 é um tutorial que ensina a fazer o mesmo q eu faço com os comandos
porem em modo grafico no windows

OBS 2: os comandos + importantes são

ipconfig /release
netsh int ip add add name=NET 111.111.111.111 255.0.0.0
netsh int ip set add name=NET source=dhcp
ipconfig /renew

Offline fchevitarese

  • Usuário Ubuntu
  • *
  • Mensagens: 265
    • Ver perfil
    • Fred Chevitarese
Re: Renovar IP NetVirtua
« Resposta #1 Online: 20 de Outubro de 2009, 09:34 »
Você tem logicamente um sevidor DHCP rodando aí né?

Já rodou o comando dhclient ?

Abraços!
Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com

Offline Andras

  • Usuário Ubuntu
  • *
  • Mensagens: 2
    • Ver perfil
Re: Renovar IP NetVirtua
« Resposta #2 Online: 21 de Outubro de 2009, 00:47 »
Infelizmente pelo que vi o linux não possui nenhum comando equivalente a o ipconfig /release
mesmo usando comandos como
ifconfig eth0 down
dhclient -r
dhcpcd -k
dhcpcd -n
pump

nada funcinou!
passei dias ja pesquisando lendo sites forums americanos, brasileiros, espanhóis
e não achei a solução para isso
porem consegui juntar grande informação sobre o problema
o problema do NetVirtua é o CableModem que segura o IP da maquina e quando  é usado o comando ipconfig /release
o Windows manda para o servidor DHCP do Virtua derrubar o IP do CableModem e o windows derruba a placa de rede.

bem se alguem tiver alguma informação que possa me ajudar
fico muito grato

Abraços!

Obs: caso alguem pergunte ja tentei configurar outro IP
ifconfig interface 111.111.111.111 netmask 255.0.0.0 up
e não funcionou
« Última modificação: 21 de Outubro de 2009, 01:02 por Andras »