[AYUDA] comando ROUTE

Hola, muy buenas.

Tengo que enrutar el tráfico a traves de una VPN.
Al utilizar el comando route -p add x.x.x.x mask 255.255.255.255 x.x.x.x if (interface)
Tengo varias interfaces y desconozco el "parametro" que identifica la interface en los ejemplos que veo por internet aparece como 0xA o similares.

Alguien podría ayudarme por favor??
PSXBCN escribió:Hola, muy buenas.

Tengo que enrutar el tráfico a traves de una VPN.
Al utilizar el comando route -p add x.x.x.x mask 255.255.255.255 x.x.x.x if (interface)
Tengo varias interfaces y desconozco el "parametro" que identifica la interface en los ejemplos que veo por internet aparece como 0xA o similares.

Alguien podría ayudarme por favor??

Creo que aquí tienes la respuesta:

if Interface : Specifies the interface index for the interface over which the destination is reachable. For a list of interfaces and their corresponding interface indexes, use the display of the route print command. You can use either decimal or hexadecimal values for the interface index. For hexadecimal values, precede the hexadecimal number with 0x. When the if parameter is omitted, the interface is determined from the gateway address

Fuente: Route (TechNet)
Tengo que enrutar el tráfico a traves de una VPN.
Al utilizar el comando route -p add x.x.x.x mask 255.255.255.255 x.x.x.x if (interface)
Tengo varias interfaces y desconozco el "parametro" que identifica la interface en los ejemplos que veo por internet aparece como 0xA o similares.

Alguien podría ayudarme por favor??[/quote]
Creo que aquí tienes la respuesta:

if Interface : Specifies the interface index for the interface over which the destination is reachable. For a list of interfaces and their corresponding interface indexes, use the display of the route print command. You can use either decimal or hexadecimal values for the interface index. For hexadecimal values, precede the hexadecimal number with 0x. When the if parameter is omitted, the interface is determined from the gateway address



No estoy muy seguro, pero creo que route print para mostrar y después las agregas.

PD : No me hagas mucho caso, que tengo estoy muy "perdido" y dejado[quote="Newton"][quote="PSXBCN"]Hola, muy buenas.
Solucionado! Gracias!

Era introduciendo el número de interface en hexadecimal con el sufijo 0x

[beer]
3 respuestas