mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 03:08:08 +02:00
man: clarify an nmcli example for adding static addresses in nmcli-examples
(cherry picked from commit 1553607223)
This commit is contained in:
parent
a83db628b9
commit
bc4bc62fa6
1 changed files with 10 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ Copyright (C) 2013 - 2014 Red Hat, Inc.
|
||||||
<refentry id="nmcli-examples">
|
<refentry id="nmcli-examples">
|
||||||
<refentryinfo>
|
<refentryinfo>
|
||||||
<title>nmcli-examples</title>
|
<title>nmcli-examples</title>
|
||||||
<date>15 January 2014</date>
|
<date>16 June 2014</date>
|
||||||
<author>NetworkManager developers</author>
|
<author>NetworkManager developers</author>
|
||||||
</refentryinfo>
|
</refentryinfo>
|
||||||
|
|
||||||
|
|
@ -250,9 +250,15 @@ $ nmcli -p con show my-con-em1
|
||||||
<para>
|
<para>
|
||||||
The first command adds an Ethernet connection profile named <emphasis>my-con-em1</emphasis>
|
The first command adds an Ethernet connection profile named <emphasis>my-con-em1</emphasis>
|
||||||
that is bound to interface name <emphasis>em1</emphasis>. The profile is configured
|
that is bound to interface name <emphasis>em1</emphasis>. The profile is configured
|
||||||
with static IP addresses. The second and third commands modify DNS parameters of the
|
with static IP addresses. Three addresses are added, two IPv4 addresses and one IPv6.
|
||||||
new connection profile. The last <emphasis>con show</emphasis> command displays the
|
The first IP 192.168.100.100 has a prefix of 24 (netmask equivalent of 255.255.255.0).
|
||||||
profile so that all parameters can be reviewed.
|
Gateway entry for the first IP address will become the default route if this profile
|
||||||
|
is activated on em1 interface (and there is no connection with higher priority).
|
||||||
|
The second two addresses don't specify a prefix, so a default prefix will be used, i.e.
|
||||||
|
32 for IPv4 and 128 for IPv6.
|
||||||
|
The second and third commands modify DNS parameters of the new connection profile.
|
||||||
|
The last <emphasis>con show</emphasis> command displays the profile so that all
|
||||||
|
parameters can be reviewed.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<example><title>Escaping colon characters in tabular mode</title>
|
<example><title>Escaping colon characters in tabular mode</title>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue