aboutgitcodebugslistschat
path: root/passt.1
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-06-10 12:32:43 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-06-15 09:38:10 +0200
commitca0c33ae5b8a68806dd1c766e2f58ce24867f334 (patch)
treebdabe0027c287d1b3d2617a175b66f281dc389c6 /passt.1
parent2320ac3349789551e9c7500dba03e04b9ac02f41 (diff)
downloadpasst-ca0c33ae5b8a68806dd1c766e2f58ce24867f334.tar
passt-ca0c33ae5b8a68806dd1c766e2f58ce24867f334.tar.gz
passt-ca0c33ae5b8a68806dd1c766e2f58ce24867f334.tar.bz2
passt-ca0c33ae5b8a68806dd1c766e2f58ce24867f334.tar.lz
passt-ca0c33ae5b8a68806dd1c766e2f58ce24867f334.tar.xz
passt-ca0c33ae5b8a68806dd1c766e2f58ce24867f334.tar.zst
passt-ca0c33ae5b8a68806dd1c766e2f58ce24867f334.zip
Tweak dhclient arguments for readability
A number of tests and examples use dhclient in both IPv4 and IPv6 modes. We use "dhclient -6" for IPv6, but usually just "dhclient" for IPv4. Add an explicit "-4" argument to make it more clear and explicit. In addition, when dhclient is run from within pasta it usually won't be "real" root, and so will not have access to write the default global pid file. This results in a mostly harmless but irritating error: Can't create /var/run/dhclient.pid: Permission denied We can avoid that by using the --no-pid flag to dhclient. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'passt.1')
-rw-r--r--passt.14
1 files changed, 2 insertions, 2 deletions
diff --git a/passt.1 b/passt.1
index d3af916..28704e9 100644
--- a/passt.1
+++ b/passt.1
@@ -484,7 +484,7 @@ udhcpc: started, v1.30.1
udhcpc: sending discover
udhcpc: sending select for 192.168.1.118
udhcpc: lease of 192.168.1.118 obtained, lease time 4294967295
-# dhclient -6
+# dhclient -6 --no-pid
# ip address show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
@@ -581,7 +581,7 @@ udhcpc: started, v1.30.1
udhcpc: sending discover
udhcpc: sending select for 192.168.1.118
udhcpc: lease of 192.168.1.118 obtained, lease time 4294967295
-# dhclient -6
+# dhclient -6 --no-pid
# ip address show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00