Skip to content

Commit b095ef1

Browse files
committed
Merge remote-tracking branch 'origin/stage'
2 parents a4919d0 + 8a821b4 commit b095ef1

File tree

2 files changed

+40
-40
lines changed

2 files changed

+40
-40
lines changed

content/cumulus-linux-516/Layer-1-and-Switch-Ports/DHCP/DHCP-Relays.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,45 @@ cumulus@switch:~$ sudo systemctl restart dhcrelay-type1-server-group-default.ser
9191
- When you configure DHCP relay with VRR, the DHCP relay client must run on the SVI; not on the -v0 interface.
9292
{{%/notice%}}
9393

94+
## VRF-aware DHCP Relay
95+
96+
You can configure Cumulus Linux to use a single DHCP relay instance to relay DHCP requests from the multiple clients connected to different VRFs towards DHCP servers and to relay responses back from the DHCP server to clients across multiple VRFs.
97+
98+
To enable the DHCP relay to process DHCP requests from clients connected to interfaces in different VRFs, you must configure the relay with downstream interfaces that belong to each client VRF, while the gateway interface and uplink interface remain part of the DHCP Relay VRF.
99+
100+
{{< tabs "TabID175 ">}}
101+
{{< tab "NVUE Commands ">}}
102+
103+
```
104+
cumulus@switch:~$ nv set interface vlan10 vrf RED
105+
cumulus@switch:~$ nv set interface vlan20 vrf BLUE
106+
cumulus@switch:~$ nv set service dhcp-relay default downstream-interface vlan10,20 server-group-name SG1
107+
cumulus@switch:~$ nv unset service dhcp-relay default downstream-interface vlan10
108+
cumulus@switch:~$ nv config apply
109+
```
110+
111+
{{< /tab >}}
112+
{{< tab "Linux Commands ">}}
113+
114+
In the `/etc/default` directory, create a file with the name of the server group in the format `isc-dhcp-relay-<server-group-id>-<vrf-id>`. Add the DHCP server IP addresses and the interfaces participating in DHCP relay associated with the server group (upstream and downstream interfaces).
115+
116+
```
117+
cumulus@switch:~$ sudo nano /etc/default/isc-dhcp-relay-type1-server-group-default
118+
SERVERS="172.16.1.102"
119+
INTF_CMD="-i swp51-52 -i vlan10"
120+
OPTIONS=""
121+
```
122+
123+
Restart the DHCP relay service for the server group with the `dhcrelay-<server-group>-<vrf-id>.service` command:
124+
125+
```
126+
cumulus@switch:~$ sudo systemctl enable dhcrelay-type1-server-group-default.service
127+
cumulus@switch:~$ sudo systemctl restart dhcrelay-type1-server-group-default.service
128+
```
129+
130+
{{< /tab >}}
131+
{{< /tabs >}}
132+
94133
## Optional Configuration
95134

96135
This section describes optional DHCP relay configurations. The steps provided in this section assume that you have already configured basic DHCP relay, as described above.
@@ -166,45 +205,6 @@ cumulus@switch:~$ nv config apply
166205
{{< /tab >}}
167206
{{< /tabs >}}
168207

169-
### VRF-aware DHCP Relay
170-
171-
You can configure Cumulus Linux to use a single DHCP relay instance to relay DHCP requests from the multiple clients connected to different VRFs towards DHCP servers and to relay responses back from the DHCP server to clients across multiple VRFs.
172-
173-
To enable the DHCP relay to process DHCP requests from clients connected to interfaces in different VRFs, you must configure the relay with downstream interfaces that belong to each client VRF, while the gateway interface and uplink interface remain part of the DHCP Relay VRF.
174-
175-
{{< tabs "TabID175 ">}}
176-
{{< tab "NVUE Commands ">}}
177-
178-
```
179-
cumulus@switch:~$ nv set interface vlan1002 vrf vrf1
180-
cumulus@switch:~$ nv set interface vlan1006 vrf vrf2
181-
cumulus@switch:~$ nv set interface vlan1007 vrf vrf3
182-
cumulus@switch:~$ nv set service dhcp-relay vrf4002 downstream-interface vlan1002,1006-1007 server-group-name sg1
183-
cumulus@switch:~$ nv unset service dhcp-relay vrf4002 downstream-interface vlan1002
184-
```
185-
186-
{{< /tab >}}
187-
{{< tab "Linux Commands ">}}
188-
189-
In the `/etc/default` directory, create a file with the name of the server group in the format `isc-dhcp-relay-<server-group-id>-<vrf-id>`. Add the DHCP server IP addresses and the interfaces participating in DHCP relay associated with the server group (upstream and downstream interfaces).
190-
191-
```
192-
cumulus@switch:~$ sudo nano /etc/default/isc-dhcp-relay-type1-server-group-default
193-
SERVERS="172.16.1.102"
194-
INTF_CMD="-i swp51-52 -i vlan10"
195-
OPTIONS=""
196-
```
197-
198-
Restart the DHCP relay service for the server group with the `dhcrelay-<server-group>-<vrf-id>.service` command:
199-
200-
```
201-
cumulus@switch:~$ sudo systemctl enable dhcrelay-type1-server-group-default.service
202-
cumulus@switch:~$ sudo systemctl restart dhcrelay-type1-server-group-default.service
203-
```
204-
205-
{{< /tab >}}
206-
{{< /tabs >}}
207-
208208
### Control the Gateway IP Address with RFC 3527
209209

210210
When you need DHCP relay in an environment that relies on an anycast gateway (such as EVPN), a unique IP address is necessary on each device for return traffic. By default, in a BGP unnumbered environment with DHCP relay, the source IP address is the loopback IP address and the gateway IP address is the SVI IP address. However with anycast traffic, the SVI IP address is not unique to each rack; it is typically shared between racks. Most EVPN ToR deployments only use a single unique IP address, which is the loopback IP address.

content/nvue-reference/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ The NVUE CLI provides descriptions and examples for the following commands:
2222

2323
## Download the Command Reference
2424

25-
You can download the NVUE command reference and view it offline. {{<exlink url="https://docs.nvidia.com/networking-ethernet-software/nvue-reference/NVUECL514-html.zip" text="Download a zip file">}} of the command reference in HTML format, extract it locally, then open `nvue-reference.html` in your web browser.
25+
You can download the NVUE command reference and view it offline. {{<exlink url="https://docs.nvidia.com/networking-ethernet-software/nvue-reference/NVUECL515-html.zip" text="Download a zip file">}} of the command reference in HTML format, extract it locally, then open `nvue-reference.html` in your web browser.

0 commit comments

Comments
 (0)