From bc4bc62fa60e393d36368b7c02bb30d8235df7cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Mon, 16 Jun 2014 12:43:52 +0200 Subject: [PATCH] man: clarify an nmcli example for adding static addresses in nmcli-examples (cherry picked from commit 1553607223f003b6e11bea40168c42bc2ffc3216) --- man/nmcli-examples.xml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/man/nmcli-examples.xml b/man/nmcli-examples.xml index 9efa94be32..71bc1950a9 100644 --- a/man/nmcli-examples.xml +++ b/man/nmcli-examples.xml @@ -9,7 +9,7 @@ Copyright (C) 2013 - 2014 Red Hat, Inc. nmcli-examples - 15 January 2014 + 16 June 2014 NetworkManager developers @@ -250,9 +250,15 @@ $ nmcli -p con show my-con-em1 The first command adds an Ethernet connection profile named my-con-em1 that is bound to interface name em1. The profile is configured - with static IP addresses. The second and third commands modify DNS parameters of the - new connection profile. The last con show command displays the - profile so that all parameters can be reviewed. + with static IP addresses. Three addresses are added, two IPv4 addresses and one IPv6. + The first IP 192.168.100.100 has a prefix of 24 (netmask equivalent of 255.255.255.0). + 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 con show command displays the profile so that all + parameters can be reviewed. Escaping colon characters in tabular mode