Diferencia entre revisiones de «Cambiar de IP sin resincronizar»

De Wiki de BandaAncha.eu
Saltar a: navegación, buscar
m (Enlaces)
m
Línea 2: Línea 2:
  
 
- Entrar al router por telnet:
 
- Entrar al router por telnet:
Inicio - Ejecutar - cmd - telnet 192.168.1.1 (ip del router)
+
 
 +
'''Inicio''' - '''Ejecutar''' - '''cmd''' - '''telnet 192.168.1.1''' (ip del router)
  
 
- Teclear:
 
- Teclear:
  
ppp config 0.8.35 down
+
'''ppp config 0.8.35 down'''
  
 
(para dar de baja la IP actual)
 
(para dar de baja la IP actual)
  
ppp config 0.8.35 up
+
'''ppp config 0.8.35 up'''
  
 
(para conseguir una nueva IP)
 
(para conseguir una nueva IP)
Línea 21: Línea 22:
 
==Explicación del comando==
 
==Explicación del comando==
  
'''SYNOPSIS'''
+
===SYNOPSIS===
  
 
Código:
 
Código:
 
ppp config [port.vpi.vci] up|down
 
ppp config [port.vpi.vci] up|down
  
'''DESCRIPTION'''
+
===DESCRIPTION===
  
 
ppp is used to control the ppp interfaces. Ppp command brings up the ppp connection with "up" option, and brings down the connection with "down" option. For ppp connection in on-demand mode, in addition to the "up" option, traffic to the ppp interface needs to be initiated to bring the connection up.
 
ppp is used to control the ppp interfaces. Ppp command brings up the ppp connection with "up" option, and brings down the connection with "down" option. For ppp connection in on-demand mode, in addition to the "up" option, traffic to the ppp interface needs to be initiated to bring the connection up.

Revisión del 20:38 5 nov 2008

Para cambiar de IP sin necesidad de resincronizar en el Comtrend, y tambien en todos los que usan el mismo chipset (Asus, Huawei, US Robotics...)

- Entrar al router por telnet:

Inicio - Ejecutar - cmd - telnet 192.168.1.1 (ip del router)

- Teclear:

ppp config 0.8.35 down

(para dar de baja la IP actual)

ppp config 0.8.35 up

(para conseguir una nueva IP)


Supongo que se puede hacer un script con Expect o similares para cambiar de IP con un clic mediante un acceso directo, pero esto lo dejo a los gurús o para cuando me aburra mucho

La ventaja es que el cambio de IP es practicamente instantáneo, a diferencia del método de resincronizar o reiniciar el router.

Explicación del comando

SYNOPSIS

Código: ppp config [port.vpi.vci] up|down

DESCRIPTION

ppp is used to control the ppp interfaces. Ppp command brings up the ppp connection with "up" option, and brings down the connection with "down" option. For ppp connection in on-demand mode, in addition to the "up" option, traffic to the ppp interface needs to be initiated to bring the connection up.

[port.vpi.vci]

Port number, VPI and VCI that identifies the VCC where the ppp connection is established.

Enlaces