IP Routing
If you are working in
a
Adding an IP route
You can add an IP route to a network port.
ip route add
You need to define four parameters to add an IP route:
SWITCH | PARAMETER | DEFINITION | STATUS | EXAMPLE |
|
|
|
|
|
DESTINATION IP | IP OF HOST | MANDATORY | 10.10.20.20 | |
|
| STATION |
|
|
| DESTINATION | IP MASK OF HOST | MANDATORY | 255.255.255.0 |
| MASK | STATION |
|
|
GATEWAY IP | IP ADDRESS OF | MANDATORY | 30.30.20.20 | |
| ADDRESS | THE GATEWAY |
|
|
|
| ROUTER |
|
|
INTERFACE | NETWORK PORT TO | MANDATORY | eth2 | |
| ALIAS | OPEN |
|
|
|
| COMMUNICATION |
|
|
|
| THROUGH |
|
|
Example:
An IP routing path to Network D, IP 10.10.20.20, (IP mask 255.255.255.0) is mapped from network port Eth2 through router gateway 30.30.20.20.
ip route add
If you are working in
a
Removing an IP route
You can remove an IP route to a network.
ip route remove
You need to define four parameters to remove an IP routing path
SWITCH | PARAMETER | DEFINITION | STATUS | EXAMPLE |
|
|
|
|
|
DESTINATION IP | DESTINATION | MANDATORY | 10.10.20.20 | |
|
| NETWORK IP |
|
|
|
| ADDRESS |
|
|
| DESTINATION | DESTINATION | MANDATORY | 255.255.255.0 |
| MASK | NETWORK IP MASK |
|
|
|
|
|
|
|
180 | SANRAD |