Skip to content

Commit

Permalink
Merge branch 'command-ref-org' into stage
Browse files Browse the repository at this point in the history
  • Loading branch information
cumulusAnia committed Nov 26, 2024
2 parents f4ff0b1 + 6636827 commit 3709c2f
Showing 1 changed file with 40 additions and 16 deletions.
56 changes: 40 additions & 16 deletions content/nvue-reference/Set-and-Unset-Commands/Static-Routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,47 @@ Cumulus Linux adds static routes to the FRR routing table and then to the kernel

<HR STYLE="BORDER: DASHED RGB(118,185,0) 0.5PX;BACKGROUND-COLOR: RGB(118,185,0);HEIGHT: 4.0PX;"/>

## <h>nv set vrf \<vrf-id\> router static \<route-id\> address-family \<address-family\></h>

Configures static routes for the specified address family. The default value is `IPv4-unicast`.

### Command Syntax

| Syntax | Description |
| --------- | -------------- |
| `<vrf-id>` | The VRF you want to configure. |
| `<address-family>` | The address family: `IPv4-unicast` or `IPv6-unicast`. |

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

```
cumulus@switch:~$ nv set vrf default router static 10.10.10.101/32 address-family ipv4
```

<HR STYLE="BORDER: DASHED RGB(118,185,0) 0.5PX;BACKGROUND-COLOR: RGB(118,185,0);HEIGHT: 4.0PX;"/>

## <h>nv set vrf \<vrf-id\> router static \<route-id\> distance \<distance-id\></h>

Configures static route settings with the destination path distance.


<HR STYLE="BORDER: DASHED RGB(118,185,0) 0.5PX;BACKGROUND-COLOR: RGB(118,185,0);HEIGHT: 4.0PX;"/>

## <h>nv set vrf \<vrf-id\> router static \<route-id\> distance \<distance-id\> via \<via-id\></h>
## <h>nv set vrf \<vrf-id\> router static \<route-id\> distance \<distance-id\> tag</h>

Configures the destination path distance and next hop for a specific static route in the specified VRF.
Configures the destination path distance and tag for a specific static route in the specified VRF. The tag provides additional information about the static route, such as the community tag or a route metric and is with the route in the routing table. The tag can be a value between 1 and 4294967295, or `none`.

### Command Syntax

| Syntax | Description |
| --------- | -------------- |
| `<vrf-id>` | The VRF you want to configure. |
| `<route-id>` | The IPv4 or IPv6 prefix. |
| `<distance-id>` | A path distance. |
| `<via-id>` | The IP address of the next hop router. |
| `<distance-id>` | The path distance. |

### Version History

Expand All @@ -50,22 +73,22 @@ Introduced in Cumulus Linux 5.0.0
### Example

```
cumulus@switch:~$ nv set vrf default router static 10.10.10.101/32 distance 2 via 10.0.1.0
cumulus@switch:~$ nv set vrf default router static 10.10.10.101/32 distance 2 tag none
```

<HR STYLE="BORDER: DASHED RGB(118,185,0) 0.5PX;BACKGROUND-COLOR: RGB(118,185,0);HEIGHT: 4.0PX;"/>

## <h>nv set vrf \<vrf-id\> router static \<route-id\> distance \<distance-id\> via \<via-id\> flag onlink</h>
## <h>nv set vrf \<vrf-id\> router static \<route-id\> distance \<distance-id\> via \<via-id\></h>

Configures the destination path distance and next hop for a specific static route in the specified VRF, and adds the `onlink` flag, which configures the switch to pretend that the next hop is directly attached to the link, even if it does not match any interface prefix.
Configures the destination path distance and next hop for a specific static route in the specified VRF.

### Command Syntax

| Syntax | Description |
| --------- | -------------- |
| `<vrf-id>` | The VRF you want to configure. |
| `<route-id>` | The IPv4 or IPv6 prefix. |
| `<distance-id>` | The path distance. |
| `<distance-id>` | A path distance. |
| `<via-id>` | The IP address of the next hop router. |

### Version History
Expand All @@ -75,14 +98,14 @@ Introduced in Cumulus Linux 5.0.0
### Example

```
cumulus@switch:~$ nv set vrf default router static 10.10.10.101/32 distance 2 via 10.0.1.0 flag onlink
cumulus@switch:~$ nv set vrf default router static 10.10.10.101/32 distance 2 via 10.0.1.0
```

<HR STYLE="BORDER: DASHED RGB(118,185,0) 0.5PX;BACKGROUND-COLOR: RGB(118,185,0);HEIGHT: 4.0PX;"/>

## <h>nv set vrf \<vrf-id\> router static \<route-id\> distance \<distance-id\> via \<via-id\> interface \<interface-id\></h>
## <h>nv set vrf \<vrf-id\> router static \<route-id\> distance \<distance-id\> via \<via-id\> flag onlink</h>

Configures the destination path distance and next hop for a specific static route in the specified VRF and the interface to use for egress. If you do not specify an interface, Cumulus Linux determines the interface automatically. This command is only valid when the next hop (via) type is an IPv4 or IPv6 address.
Configures the destination path distance and next hop for a specific static route in the specified VRF, and adds the `onlink` flag, which configures the switch to pretend that the next hop is directly attached to the link, even if it does not match any interface prefix.

### Command Syntax

Expand All @@ -92,7 +115,6 @@ Configures the destination path distance and next hop for a specific static rout
| `<route-id>` | The IPv4 or IPv6 prefix. |
| `<distance-id>` | The path distance. |
| `<via-id>` | The IP address of the next hop router. |
| `<interface-id>` | The interface to use for egress. |

### Version History

Expand All @@ -101,14 +123,14 @@ Introduced in Cumulus Linux 5.0.0
### Example

```
cumulus@switch:~$ nv set vrf default router static 10.10.10.101/32 distance 2 via 10.0.1.0 interface swp1
cumulus@switch:~$ nv set vrf default router static 10.10.10.101/32 distance 2 via 10.0.1.0 flag onlink
```

<HR STYLE="BORDER: DASHED RGB(118,185,0) 0.5PX;BACKGROUND-COLOR: RGB(118,185,0);HEIGHT: 4.0PX;"/>

## <h>nv set vrf \<vrf-id\> router static \<route-id\> distance \<distance-id\> tag</h>
## <h>nv set vrf \<vrf-id\> router static \<route-id\> distance \<distance-id\> via \<via-id\> interface \<interface-id\></h>

Configures the destination path distance and tag for a specific static route in the specified VRF. The tag provides additional information about the static route, such as the community tag or a route metric and is with the route in the routing table. The tag can be a value between 1 and 4294967295, or `none`.
Configures the destination path distance and next hop for a specific static route in the specified VRF and the interface to use for egress. If you do not specify an interface, Cumulus Linux determines the interface automatically. This command is only valid when the next hop (via) type is an IPv4 or IPv6 address.

### Command Syntax

Expand All @@ -117,6 +139,8 @@ Configures the destination path distance and tag for a specific static route in
| `<vrf-id>` | The VRF you want to configure. |
| `<route-id>` | The IPv4 or IPv6 prefix. |
| `<distance-id>` | The path distance. |
| `<via-id>` | The IP address of the next hop router. |
| `<interface-id>` | The interface to use for egress. |

### Version History

Expand All @@ -125,7 +149,7 @@ Introduced in Cumulus Linux 5.0.0
### Example

```
cumulus@switch:~$ nv set vrf default router static 10.10.10.101/32 distance 2 tag none
cumulus@switch:~$ nv set vrf default router static 10.10.10.101/32 distance 2 via 10.0.1.0 interface swp1
```

<HR STYLE="BORDER: DASHED RGB(118,185,0) 0.5PX;BACKGROUND-COLOR: RGB(118,185,0);HEIGHT: 4.0PX;"/>
Expand Down

0 comments on commit 3709c2f

Please sign in to comment.