LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Unable to automatically connect to network on boot (DHCP) (http://www.linuxquestions.org/questions/linux-networking-3/unable-to-automatically-connect-to-network-on-boot-dhcp-918098/)

Economicus 12-10-2011 06:50 PM

Unable to automatically connect to network on boot (DHCP)
 
Hi everyone,

I am running a fresh install of Arch Linux, but I am not able to automatically connect to my university network when starting the computer. DHCPCD times out and I am forced to run "dhcpcd eth0" before it works:

Code:

$ sudo dhcpcd eth0
dhcpcd[862]: version 5.2.12 starting
dhcpcd[862]: eth0: broadcasting for a lease
dhcpcd[862]: eth0: offered 158.142.169.208 from 158.142.225.178
dhcpcd[862]: eth0: ignoring offer of 158.142.169.208 from 158.142.225.180
dhcpcd[862]: eth0: acknowledged 158.142.169.208 from 158.142.225.178
dhcpcd[862]: eth0: checking for 158.142.169.208
dhcpcd[862]: eth0: leased 158.142.169.208 for 720 seconds
dhcpcd[862]: forked to bakcground, child pid 883
$

/etc/rc.conf (with network in the daemons array)
Code:

HOSTNAME=arch
interface=eth0
address=
netmask=
broadcast=
gateway=

/etc/hosts
Code:

127.0.0.1  localhost.localdomain  localhost arch
::1  localhost.localdomain  localhost arch

Any ideas?

Thank you in advance.

ptrivino 12-10-2011 07:06 PM

Spanning Tree?
 
If the system boots very fast, the switch port to which you are connected might not be 'forwarding' yet, takes about 45 seconds from when it sees the nic up. If it's a Cisco switch try 'spanning-tree portfast'

Paul

Economicus 12-11-2011 05:43 AM

Thank you for your response, Paul. I am on a university network, so I do not have access to the router. The boot is fairly fast but I am not sure if this is this the issue? Any other advice?


All times are GMT -5. The time now is 03:58 AM.