上一篇编译好的文件,有dhcp6c,dhcp6s,dhcp6replay等几个可执行文件。
这边取其所需,即dhcp6c到开发板上在执行。
使用命令./dhpc6c,随即弹出了提示框
usage: dhcp6c [-c configfile] [-dDfi] [-p pid-file] interface [interfaces...]
这是些什么参数,不是很懂。
到之前prefix指定的安装路径/man/man8.
敲击命令,即可查看这些参数的说明了。man -l dhcp6c.8
DESCRIPTION
dhcp6c works as a DHCPv6 client and gets information from DHCPv6 servers to configure the specified
interface. Multiple interfaces can be specified separated by spaces or tabs, in which case dhcp6c
will work on all the interfaces simultaneously.
The command line options are:
-c configfile
Use configfile as the configuration file.
-d Print debugging messages.
-D Even more debugging information is printed.
-f Foreground mode (useful when debugging). Although dhcp6c usually prints warning, debug鈥[m
ging, or error messages to syslog(