BBB running Ubuntu 13.10, DHCP client very slow

I'm running Ubuntu 13.10 on my BBB. It seems pretty stable with no
major issues, but it takes quite a long time for the system to get its
IP address from my local DHCP server, is this normal?

One symptom is that ntpdate and other ntp daemons report errors in
syslog:-

Mar 19 22:01:33 beaglebone ntpdate[589]: Can't find host 0.ubuntu.pool.ntp.org: Name or service not known (-2)
Mar 19 22:01:33 beaglebone ntpdate[589]: Can't find host 1.ubuntu.pool.ntp.org: Name or service not known (-2)
Mar 19 22:01:33 beaglebone ntpdate[589]: Can't find host 2.ubuntu.pool.ntp.org: Name or service not known (-2)
Mar 19 22:01:33 beaglebone ntpdate[589]: Can't find host 3.ubuntu.pool.ntp.org: Name or service not known (-2)
Mar 19 22:01:33 beaglebone ntpdate[589]: Can't find host ntp.ubuntu.com: Name or service not known (-2)

All those hosts are successfully found later.

DHCP/Static is pretty slow on the bbb. The device actually has two eth
ports with a bunch of configuration options, so it takes the kernel a
little bit of time to configure it in the driver.

Regards,

OK, thanks Robert, so it doesn't indicate anything amiss in my setup.

I just need to make sure that things I fire off at system start-up
don't depend on having a net connection. It was making a number of
reverse ssh tunnels fail until I added a delay before starting them.

I have the same issue, is there any way to speed things up ?

How long is it currently taking?

Regards,

I’m running a test. I turn on the beaglebone without cable attached to it, and when it finishes the boot process, I plug the cable, and it takes about 5 minutes for beaglebone to get the ip address…

Doesn't seem un-normal...

what kernel?

uname -r

what rootfs?

lsb_release -a

For ethX, how do you have the rootfs setup to enable it?
(/etc/network/interfaces network-manager, etc..?)

Regards,

Yeah, feel free to upgrade to jessie at any time...

http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Debian_Image_Testing_Snapshots

debian@beaglebone:~$ journalctl | grep connmand ; date

<snip>

Jan 31 18:59:30 beaglebone connmand[357]: can1 {newlink} index 5
address 00:00:00:00:00:00 mtu 16
Jan 31 18:59:30 beaglebone connmand[357]: can1 {newlink} index 5
operstate 2 <DOWN>
Sun Jan 31 19:00:22 UTC 2016

debian@beaglebone:~$ journalctl | grep connmand

<snip>
Jan 31 18:59:30 beaglebone connmand[357]: can1 {newlink} index 5
address 00:00:00:00:00:00 mtu 16
Jan 31 18:59:30 beaglebone connmand[357]: can1 {newlink} index 5
operstate 2 <DOWN>
Jan 31 19:00:28 beaglebone connmand[357]: eth0 {add} route fe80:: gw
:: scope 0 <UNIVERSE>
Jan 31 19:00:28 beaglebone connmand[357]: eth0 {update} flags 102467
<UP,RUNNING,LOWER_UP>
Jan 31 19:00:28 beaglebone connmand[357]: eth0 {newlink} index 2
address 7C:66:9D:4B:AC:90 mtu 1500
Jan 31 19:00:28 beaglebone connmand[357]: eth0 {newlink} index 2
operstate 6 <UP>
Jan 31 19:00:28 beaglebone connmand[357]: Skipping disconnect of
carrier, network is connecting.
Jan 31 19:00:31 beaglebone connmand[357]: Failed to set hostname to beaglebone
Jan 31 19:00:31 beaglebone connmand[357]: eth0 {add} address
192.168.0.163/24 label eth0 family 2
Jan 31 19:00:31 beaglebone connmand[357]: eth0 {add} route 192.168.0.0
gw 0.0.0.0 scope 253 <LINK>
Jan 31 19:00:31 beaglebone connmand[357]: eth0 {add} route 192.168.0.1
gw 0.0.0.0 scope 253 <LINK>
Jan 31 19:00:31 beaglebone connmand[357]: eth0 {add} route 0.0.0.0 gw
192.168.0.1 scope 0 <UNIVERSE>

So: Jan 31 19:00:22 -> Jan 31 19:00:31 = 9 seconds...

Which include me, hitting enter, rotating chair and plugging the cable in..

Note, time stamp shows: Jan 31 has npt hasn't run yet..

Jan 31 19:00:32 beaglebone connmand[357]: eth0 {del} route
82.165.8.211 gw 192.168.0.1 scope 0 <UNIVERSE>
Jan 31 19:00:43 beaglebone sudo[1628]: debian : TTY=ttyO0 ;
PWD=/home/debian ; USER=root ; COMMAND=/sbin/ifconfig -a
Jan 31 19:00:43 beaglebone sudo[1628]: pam_unix(sudo:session): session
opened for user root by (uid=0)
Jan 31 19:00:43 beaglebone sudo[1628]: pam_unix(sudo:session): session
closed for user root
Jan 31 19:00:47 beaglebone systemd-timesyncd[270]: Using NTP server
138.236.128.36:123 (2.debian.pool.ntp.org).
Feb 01 17:04:47 beaglebone systemd[478]: Time has been changed

as that took 25 seconds after i hit <enter>...

Regards,