La route statique

Fermé
inasova - 14 mars 2014 à 04:15
 ciscowarrior - 15 mars 2014 à 18:06
Bonjour,



quand en peut utiliser interface serial ou adresse ip dans la route statique

2 réponses

Blockiestbeatle Messages postés 84 Date d'inscription vendredi 27 mai 2011 Statut Membre Dernière intervention 20 mars 2014 5
14 mars 2014 à 08:22
Bonjour,

De par la pratique, lorsque l'on peut spécifier le nom de l'interface next hop on le fait dans le cas d'une liaison série.

Le fait est que si on est lié en série et non en Ethernet, on sait ce qui se trouve derrière et on est rarement confronté à une interface de broadcast, ce qui contre le problème de l'ethernet.
(Je ne sais pas si ça sonne clair?)

En gros, si tu as une série, tape le nom de l'interface.
Si tu as une ethernet en next hop, soit tu tape l'ip soit le nom, mais si cette dernière est une interface de braodcast, il vaut mieux taper l'adresse car tous les hôtes s'y verront directement connecté a ton insu. Dans le cas de l'adresse, on peut aisément paramétrer le traffic de manière plus précise pour n'autoriser que certains hôtes.

Cfr: Doc Cisco:

"If you point a static route to a broadcast interface, the route is inserted into the routing table only when the broadcast interface is up. This configuration is not recommended because when the next hop of a static route points to an interface, the router considers each of the hosts within the range of the route to be directly connected through that interface. For example, ip route 0.0.0.0 0.0.0.0 Ethernet0.

With this type of configuration, a router performs Address Resolution Protocol (ARP) on the Ethernet for every destination the router finds through the default route because the router considers all of these destinations as directly connected to Ethernet 0.

This kind of default route, especially if it is used by a lot of packets to many different destination subnets, can cause high processor utilization and a very large ARP cache (along with attendant memory allocation failures).

Specifying a numerical next hop on a directly connected interface prevents the router from performing ARP or each destination address. However, if the interface with the next hop goes down and the numerical next hop is reachable through a recursive route, you should specify both the next hop IP address and the interface through which the next hop should be found. For example, ip route 0.0.0.0 0.0.0.0 Serial 3/3 192.168.20.1."

https://www.cisco.com/c/en/us/support/docs/dial-access/floating-static-route/118263-technote-nexthop-00.html

@+

Gilles
0
ciscowarrior
15 mars 2014 à 18:06
si l'interface est une interface point-à-point comme PPP,HDLC, Frame-relay p2p
alors on peut utiliser l'interface.
Si l'interface est multipoint alors il faut utiliser le next-hop
0