Main / Ifconfig
ip is newer, more powerful option over ifconfig. ip link show shows a subset of ip addr show udhcpc'Micro DHCP client' interesting udhcpc info: I can extend the run of the first udhcpc instance with the -T timeout try, but can't reduce it below 3s for some reason. That doesn't seem to be a timeout between req packet retries within the same udhcpc instance because wouldn't that be the -t value times the -T value? Would by WAY longer if it wasn't working. EDIT: I can get it down to 1 second with -T if I adjust -A as well. So -T extends the first run and this delays the entire boot process. The symptom for not working I think is because 'Sending discover...' is shown twice so I suspect that corresponds to each instance of the process. I can remove the second process by setting -t to 0, but then it gives up because it never works the first time and we never get an IP. ?? udhcpc -b -t 0 -A 1 -T 1 -x hostname:$hostname -i eth0 This STILL gives me the second instance... because I think it's not the -t that does it, but the -b which spins to bg if lease is NOT obtained netstatnetstat -lnp will list ports and program/PID that are using them. Recv-Q will be that data which has not yet been pulled from the socket buffer by the application. Send-Q will be that data which the sending application has given to the transport, but has yet to be ACKnowledged by the receiving TCP. https://unix.stackexchange.com/questions/9252/determining-what-process-is-bound-to-a-port |