Documentation




Name
net link igp-weight - set the IGP weight of one link
Synopsis
igp-weight
[--bidir]
[--tos]
<weight>
Arguments
- --bidir
- optionally change weight in both directions
- --tos
- optional type of service
- weight
- new IGP weight
Description
This command sets the IGP weight of the link. If the link is a point-to-point link added with command net add link the option --bidir can be specified to change the IGP weight of the link in both directions.
Here is an example that shows how the IGP weight of a link can be set to 100 in both directions:
net add node 1.0.0.1
net add node 1.0.0.2
net add link 1.0.0.1 1.0.0.2
net link 1.0.0.1 1.0.0.2 igp-weight --bidir 100
If the link supports multiple IGP weights (i.e. was created with the --depth option), then the --tos option can be used to specify which IGP weight to set.
See also
See command net domain compute to learn how to compute shortest-paths routes with the IGP model.
This command actually makes use of a simpler command to change the IGP weight for an interface. This command is net node X iface igp-weight.