Skip to content

Commit 6ff9825

Browse files
committed
docs(networking.md): document the --rename option for interface-rename
Clarify that users can use the --rename option to change network interface nameson XCP-ng hosts. Previously, only --update was mentioned in the documentation, which led to confusion and prevented some users from renaming their NICs. Signed-off-by: Thomas Moraine <[email protected]>
1 parent 5c02eab commit 6ff9825

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/networking/networking.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,14 @@ ifconfig eth4 down
142142
ifconfig eth8 down
143143
```
144144

145-
The most common use will be an update statement like the following:
146-
```
147-
interface-rename --update eth4=00:24:81:80:19:63 eth8=00:24:81:7f:cf:8b
148-
```
145+
The most common use will be an update statement like:
146+
147+
`interface-rename --update eth4=00:24:81:80:19:63 eth8=00:24:81:7f:cf:8b`
148+
149+
or:
150+
151+
`interface-rename --rename eth4=00:24:81:80:19:63 eth8=00:24:81:7f:cf:8b`
152+
149153
This example will set the mac-address for eth4 & eth8, switching them in the process.
150154

151155
The XAPI database needs the old PIFs removed. First list your PIFs for the affected NICs:

0 commit comments

Comments
 (0)