Ajoute d'une règle de routage sous W2K - Windows & Software
Marsh Posté le 06-06-2002 à 20:19:10
ce qui est dit dans l'aide de W2k:
Route
Manipulates network routing tables. This command is available only if the TCP/IP protocol has been installed.
route [-f] [-p] [command [destination] [mask subnetmask] [gateway] [metric costmetric]]
Parameters
-f
Clears the routing tables of all gateway entries. If this is used in conjunction with one of the commands, the tables are cleared prior to running the command.
-p
When used with the add command, makes a route persistent across boots of the system. By default, routes are not preserved when the system is restarted. When used with the print command, displays the list of registered persistent routes. Ignored for all other commands, which always affect the appropriate persistent routes.
command
Specifies one of the following commands.
Command Purpose
print Prints a route
add Adds a route
delete Deletes a route
change Modifies an existing route
destination
Specifies the computer to send command.
mask subnetmask
Specifies a subnet mask to be associated with this route entry. If not specified, 255.255.255.255 is used.
gateway
Specifies gateway.
All symbolic names used for destination or gateway are referenced in both the network database file called Networks, and the computer name database file called Hosts. If the command is print or delete, wildcards may be used for the destination and gateway, or the gateway argument may be omitted.
metric costmetric
Assigns an integer cost metric (ranging from 1 to 9999) to be used in calculating the fastest, most reliable, and/or least expensive routes.
regards
Marsh Posté le 07-06-2002 à 22:24:49
HipHopoTaM a écrit a écrit : J'aimerais joindre l'ip 10.0.0.138 mon Ip : 192.168.0.2 Ceci n est possible qu en passant par la passerelle ayant pour IP 192.168.0.1 + 10.0.0.10 Comment ajouter cette regle dans la table de routage de win2k $ route add 10.0.0.0 MASK 255.255.255.0 ? ?? ? ? ? vore aide me serais precieuse |
ce qui a été dit ne t'avance pas à grand chose...
essaie les choses suivantes :
route add 10.0.0.0 mask 255.255.255.0 10.10.0.10
route add 192.168.0.0 mask 255.255.255.0 192.168.0.1
ajoute une route par defaut sur 192.168.0.2 (route add 0.0.0.0 mask 0.0.0.0 192.168.0.1)
ajoute sur 10.0.0.138 (192.168.0.0 mask 255.255.255.0 10.0.0.10)
route -f sert à effacer ce que ta fé
Marsh Posté le 06-06-2002 à 19:49:00
J'aimerais joindre l'ip 10.0.0.138
mon Ip : 192.168.0.2
Ceci n est possible qu en passant par la passerelle ayant pour IP 192.168.0.1 + 10.0.0.10
Comment ajouter cette regle dans la table de routage de win2k
$ route add 10.0.0.0 MASK 255.255.255.0 ? ?? ? ? ?
vore aide me serais precieuse