Skip to content

Commit

Permalink
Merge branch 'cl-doc-fixes' into stage
Browse files Browse the repository at this point in the history
  • Loading branch information
cumulusAnia committed Feb 24, 2025
2 parents fdbcfec + 6966efb commit 1b7c743
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ cumulus@leaf01:~$ nv config apply

### Gateway IP Address as Source IP for Relayed DHCP Packets (Advanced)

You can configure the `dhcrelay` service to forward IPv4 (only) DHCP packets to a DHCP server and ensure that the source IP address of the relayed packet is the same as the gateway IP address.
You can configure the `dhcrelay` service to forward IPv4 (only) DHCP packets to a DHCP server and ensure that the source IP address of the relayed packet is the same as the gateway IP address. By default, the source IP address of the relayed packet is taken from a layer 3 interface on the switch using normal routing methods.

{{%notice note%}}
This option impacts all relayed IPv4 packets globally.
Expand All @@ -511,6 +511,13 @@ cumulus@leaf01:~$ nv set service dhcp-relay default source-ip gateway
cumulus@leaf01:~$ nv config apply
```

To configure this setting back to the default (where the source IP address of the relayed packet is taken from a layer 3 interface), set the source IP address to `auto`:

```
cumulus@leaf01:~$ nv set service dhcp-relay default source-ip auto
cumulus@leaf01:~$ nv config apply
```

{{< /tab >}}
{{< tab "Linux Commands ">}}

Expand All @@ -529,6 +536,8 @@ cumulus@leaf01:~$ nv config apply
cumulus@leaf01:~$ sudo systemctl restart [email protected]
```

To configure this setting back to the default (where the source IP address of the relayed packet is taken from a layer 3 interface), remove the `--giaddr-src` from the `OPTIONS` line.

{{< /tab >}}
{{< /tabs >}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ cumulus@leaf01:~$ nv config apply

### Gateway IP Address as Source IP for Relayed DHCP Packets (Advanced)

You can configure the `dhcrelay` service to forward IPv4 (only) DHCP packets to a DHCP server and ensure that the source IP address of the relayed packet is the same as the gateway IP address.
You can configure the `dhcrelay` service to forward IPv4 (only) DHCP packets to a DHCP server and ensure that the source IP address of the relayed packet is the same as the gateway IP address. By default, the source IP address of the relayed packet is taken from a layer 3 interface on the switch using normal routing methods.

{{%notice note%}}
This option impacts all relayed IPv4 packets globally.
Expand All @@ -511,6 +511,13 @@ cumulus@leaf01:~$ nv set service dhcp-relay default source-ip gateway
cumulus@leaf01:~$ nv config apply
```

To configure this setting back to the default (where the source IP address of the relayed packet is taken from a layer 3 interface), set the source IP address to `auto`:

```
cumulus@leaf01:~$ nv set service dhcp-relay default source-ip auto
cumulus@leaf01:~$ nv config apply
```

{{< /tab >}}
{{< tab "Linux Commands ">}}

Expand All @@ -529,6 +536,8 @@ cumulus@leaf01:~$ nv config apply
cumulus@leaf01:~$ sudo systemctl restart [email protected]
```

To configure this setting back to the default (where the source IP address of the relayed packet is taken from a layer 3 interface), remove the `--giaddr-src` from the `OPTIONS` line.

{{< /tab >}}
{{< /tabs >}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ cumulus@leaf01:~$ nv config apply

### Gateway IP Address as Source IP for Relayed DHCP Packets (Advanced)

You can configure the `dhcrelay` service to forward IPv4 (only) DHCP packets to a DHCP server and ensure that the source IP address of the relayed packet is the same as the gateway IP address.
You can configure the `dhcrelay` service to forward IPv4 (only) DHCP packets to a DHCP server and ensure that the source IP address of the relayed packet is the same as the gateway IP address. By default, the source IP address of the relayed packet is taken from a layer 3 interface on the switch using normal routing methods.

{{%notice note%}}
This option impacts all relayed IPv4 packets globally.
Expand All @@ -511,6 +511,13 @@ cumulus@leaf01:~$ nv set service dhcp-relay default source-ip gateway
cumulus@leaf01:~$ nv config apply
```

To configure this setting back to the default (where the source IP address of the relayed packet is taken from a layer 3 interface), set the source IP address to `auto`:

```
cumulus@leaf01:~$ nv set service dhcp-relay default source-ip auto
cumulus@leaf01:~$ nv config apply
```

{{< /tab >}}
{{< tab "Linux Commands ">}}

Expand All @@ -529,10 +536,11 @@ cumulus@leaf01:~$ nv config apply
cumulus@leaf01:~$ sudo systemctl restart [email protected]
```

To configure this setting back to the default (where the source IP address of the relayed packet is taken from a layer 3 interface), remove the `--giaddr-src` from the `OPTIONS` line.

{{< /tab >}}
{{< /tabs >}}


### Configure Multiple DHCP Relays

Cumulus Linux supports multiple DHCP relay daemons on a switch to enable relaying of packets from different bridges to different upstream interfaces.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ cumulus@leaf01:~$ nv config apply

### Gateway IP Address as Source IP for Relayed DHCP Packets (Advanced)

You can configure the `dhcrelay` service to forward IPv4 (only) DHCP packets to a DHCP server and ensure that the source IP address of the relayed packet is the same as the gateway IP address.
You can configure the `dhcrelay` service to forward IPv4 (only) DHCP packets to a DHCP server and ensure that the source IP address of the relayed packet is the same as the gateway IP address. By default, the source IP address of the relayed packet is taken from a layer 3 interface on the switch using normal routing methods.

{{%notice note%}}
This option impacts all relayed IPv4 packets globally.
Expand All @@ -511,6 +511,13 @@ cumulus@leaf01:~$ nv set service dhcp-relay default source-ip gateway
cumulus@leaf01:~$ nv config apply
```

To configure this setting back to the default (where the source IP address of the relayed packet is taken from a layer 3 interface), set the source IP address to `auto`:

```
cumulus@leaf01:~$ nv set service dhcp-relay default source-ip auto
cumulus@leaf01:~$ nv config apply
```

{{< /tab >}}
{{< tab "Linux Commands ">}}

Expand All @@ -529,10 +536,11 @@ cumulus@leaf01:~$ nv config apply
cumulus@leaf01:~$ sudo systemctl restart [email protected]
```

To configure this setting back to the default (where the source IP address of the relayed packet is taken from a layer 3 interface), remove the `--giaddr-src` from the `OPTIONS` line.

{{< /tab >}}
{{< /tabs >}}


### Configure Multiple DHCP Relays

Cumulus Linux supports multiple DHCP relay daemons on a switch to enable relaying of packets from different bridges to different upstream interfaces.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ cumulus@leaf01:~$ nv config apply

### Gateway IP Address as Source IP for Relayed DHCP Packets (Advanced)

You can configure the `dhcrelay` service to forward IPv4 (only) DHCP packets to a DHCP server and ensure that the source IP address of the relayed packet is the same as the gateway IP address.
You can configure the `dhcrelay` service to forward IPv4 (only) DHCP packets to a DHCP server and ensure that the source IP address of the relayed packet is the same as the gateway IP address. By default, the source IP address of the relayed packet is taken from a layer 3 interface on the switch using normal routing methods.

{{%notice note%}}
This option impacts all relayed IPv4 packets globally.
Expand All @@ -511,6 +511,13 @@ cumulus@leaf01:~$ nv set service dhcp-relay default source-ip gateway
cumulus@leaf01:~$ nv config apply
```

To configure this setting back to the default (where the source IP address of the relayed packet is taken from a layer 3 interface), set the source IP address to `auto`:

```
cumulus@leaf01:~$ nv set service dhcp-relay default source-ip auto
cumulus@leaf01:~$ nv config apply
```

{{< /tab >}}
{{< tab "Linux Commands ">}}

Expand All @@ -529,10 +536,11 @@ cumulus@leaf01:~$ nv config apply
cumulus@leaf01:~$ sudo systemctl restart [email protected]
```

To configure this setting back to the default (where the source IP address of the relayed packet is taken from a layer 3 interface), remove the `--giaddr-src` from the `OPTIONS` line.

{{< /tab >}}
{{< /tabs >}}


### Configure Multiple DHCP Relays

Cumulus Linux supports multiple DHCP relay daemons on a switch to enable relaying of packets from different bridges to different upstream interfaces.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ cumulus@leaf01:~$ nv config apply

### Gateway IP Address as Source IP for Relayed DHCP Packets (Advanced)

You can configure the `dhcrelay` service to forward IPv4 (only) DHCP packets to a DHCP server and ensure that the source IP address of the relayed packet is the same as the gateway IP address.
You can configure the `dhcrelay` service to forward IPv4 (only) DHCP packets to a DHCP server and ensure that the source IP address of the relayed packet is the same as the gateway IP address. By default, the source IP address of the relayed packet is taken from a layer 3 interface on the switch using normal routing methods.

{{%notice note%}}
This option impacts all relayed IPv4 packets globally.
Expand All @@ -511,6 +511,13 @@ cumulus@leaf01:~$ nv set service dhcp-relay default source-ip gateway
cumulus@leaf01:~$ nv config apply
```

To configure this setting back to the default (where the source IP address of the relayed packet is taken from a layer 3 interface), set the source IP address to `auto`:

```
cumulus@leaf01:~$ nv set service dhcp-relay default source-ip auto
cumulus@leaf01:~$ nv config apply
```

{{< /tab >}}
{{< tab "Linux Commands ">}}

Expand All @@ -529,10 +536,11 @@ cumulus@leaf01:~$ nv config apply
cumulus@leaf01:~$ sudo systemctl restart [email protected]
```

To configure this setting back to the default (where the source IP address of the relayed packet is taken from a layer 3 interface), remove the `--giaddr-src` from the `OPTIONS` line.

{{< /tab >}}
{{< /tabs >}}


### Configure Multiple DHCP Relays

Cumulus Linux supports multiple DHCP relay daemons on a switch to enable relaying of packets from different bridges to different upstream interfaces.
Expand Down
3 changes: 2 additions & 1 deletion content/nvue-reference/Set-and-Unset-Commands/DHCP-Relay.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ cumulus@switch:~$ nv set service dhcp-relay default server 172.16.1.102
Configures the source IP address to use on the relayed packet. You can specify `gateway` to use the gateway IP address as the source IP address or `auto`, where the source IP address of the relayed packet is taken from a layer 3 interface on the switch using normal routing methods. The default setting is `auto`.

{{%notice note%}}
This option impacts all relayed IPv4 packets globally.
- This option impacts all relayed IPv4 packets globally.
- In Cumulus Linux 5.5 and earlier, you specify `giaddress` instead of `gateway`.
{{%/notice%}}

### Command Syntax
Expand Down

0 comments on commit 1b7c743

Please sign in to comment.