ip route source
This command configures source-based routing to specific destinations. Source-based routing can include VLANs.
Syntax
ip route source < IP source prefix>|local-voip destination <IP source prefix> [next-hop ip address] <interface> <interface id> [<metric value>] [track <track id>] [bfd-neighbor <neighbor ID>] [output-vrf <vrf_id>] [description <string>]
Command |
Description |
---|---|
IP source prefix local-voip |
Defines the IP source prefix (a.b.c.d/p). MSBR in single network mode can also be set with local-voip to define the route source address to all VoIP packets generated locally by the MSBR |
IP source prefix |
Defines the ip destination prefix (a.b.c.d/p) |
next-hop |
Defines the next hop for routing |
metric value |
Defines the metric (priority) value for this route (0-255). |
track id |
Defines the track ID (1-100). Up to two tracking objects can be configured (track <first track number> track <second track number>) and in this scenario, the route will only be active if both tracking objects are in "up" state. |
output-vrf |
Defines the output vrf name for route leaking between vrfs. |
bfd-neighbor |
Defines the ID of a BFD neighbor to attach the route to. |
desciption |
Define a description name for this route |
Interface Type (ifname) |
Interface ID |
|
---|---|---|
gigabitethernet |
GigabitEthernet interface slot and port (VLAN ID is optional) |
[SLOT/PORT.VLANID] |
cellular |
Cellular interface ID |
0/0 |
gre |
Tunnel GRE ID |
[1-255] |
ipip |
Tunnel IPIP ID |
[1-255] |
l2tp |
L2TP ID |
[0-99] |
pppoe |
PPPoE interface ID |
[1-3] |
pptp |
PPTP ID |
[0-99] |
vlan |
Vlan ID |
[1-3999] |
loopback |
Loopback ID |
[1-5] |
bvi |
Bridge interface |
[1-255] |
Default
NA
Note
This command is applicable to Mediant MSBR devices.
Command Mode
Privileged User
Example
The following are examples of how this command can be used:
(config-data) # ip route source 10.3.0.0/16 destination 0.0.0.0/0 10.4.5.0 gre 18 track 5 track 6