Enter configuration commands, one per line. End with CNTL/Z. R1(config)#ip route ? A.B.C.D Destination prefix profile Enable IP routing table profile vrf Configure static route for a VPN Routing/Forwarding instance R1(config)#ip route 1.1.1.1 ? A.B.C.D Destination prefix mask R1(config)#ip route 1.1.1.1 255.255.255.255 ? A.B.C.D Forwarding router's address FastEthernet FastEthernet IEEE 802.3 Null Null interface R1(config)#ip route 1.1.1.1 255.255.255.255 f0/0 ? <1-255> Distance metric for this route A.B.C.D Forwarding router's address name Specify name of the next hop permanent permanent route tag Set tag for this route <cr> R1(config)#ip route 1.1.1.1 255.255.255.255 f0/0 tag ? <1-4294967295> Tag value R1(config)#ip route 1.1.1.1 255.255.255.255 f0/0 tag 2
StaticRouteEntry attributes lists attributes supported by StaticRouteEntry.
Display name |
Type |
Description |
---|---|---|
Gateway |
String |
On Cisco the gateway. null0 for reject, and HP is just reject keyword on route. |
IpAddress |
IpAddressString |
Ip address of route. |
IpCIDR |
IpAddressString |
The CIDR representation of the IpAddress and IpMask. |
IpMask |
String |
IP netmask for route. |
IpMaskLength |
Integer |
Mask length in bits. |
IpVersion |
Integer |
Ip protocol version of the IpAddress. |
Metric |
Integer |
The metric value for the route. |
Permanent |
Boolean |
Puts value in route table even if gateway may not exist |
RouteName |
String |
The route’s name on devices that support this. |
Tag |
Long |
A numeric tag value assigned to the route. |