LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-10-2011, 06:50 PM   #1
Economicus
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
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.

Last edited by Economicus; 12-10-2011 at 06:52 PM.
 
Old 12-10-2011, 07:06 PM   #2
ptrivino
Member
 
Registered: May 2008
Location: San Diego CA
Distribution: CentOS
Posts: 34

Rep: Reputation: 5
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
 
Old 12-11-2011, 05:43 AM   #3
Economicus
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect to my campus' network. (DHCP problem?) n1k Fedora 2 01-24-2009 03:31 PM
cant automatically connect to my wifi network capn_hector Linux - Wireless Networking 1 01-07-2008 10:16 AM
Unable to connect to DHCP Network WolfCub Debian 34 09-21-2007 02:20 AM
Unable to connect to DHCP gateway Setya Suse/Novell 1 06-05-2007 10:16 PM
dhcp won't start automatically on boot blk96gt Slackware 5 01-24-2005 01:42 PM


All times are GMT -5. The time now is 02:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration