Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-03-2017, 12:42 PM   #1
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 793

Rep: Reputation: Disabled
Not Connecting


I recently re-installed Kubuntu 14.04 LTS on my Acer Aspire 7739 laptop to fix a "boot halt" problem! See:

It will not ever connect to the internet. I checked and the eth0 had not been declared in: /etc/network/interfaces, so I added it.

I additionally have the script:

#! /bin/bash
# Scrip to start wired networking

# Stop eth0 and restart networking
echo "Shutting down iface and networking! \n";
ifconfig eth0 down;
service networking stop;
service network-manager stop;
echo "\n";

# Start up eth0 & restart dhcp client and assign IP Address
echo "Starting networking & iface! \n";
service networking start;
service network-manager start;
ifconfig eth0 up;
echo "\n";

echo "Starting DHC Client! \n";
dhclient eth0;
echo "\n";
ping -c 3;

# Finish
Which runs down to the "dhclient" line where it freezes, so something is wrong. The dhclient runs completely and quickly with all the network config settings are right.

What HOWTO should I be looking at to finish the proper network config for my laptop?



I tested my script on my server and it is also hanging on the "dhclient" cmd. Not sure why this is a problem.

Old 02-03-2017, 01:46 PM   #2
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Does dhclient work outside of the script or does it freeze as well? You might try adding -v to get more output
Old 02-04-2017, 06:15 PM   #3
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 793

Original Poster
Rep: Reputation: Disabled


Thanks for the feedback! After running:

dhclient -v eth0
on both machines, it became obvious I had a network issue. Found that dhcp server on the router had been set "OFF" so resolved that and all is working now!

Marking this solved/closed!




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
ODBC drivers and connecting to mssql on linux not connecting to data source Sharkadder Linux - Server 3 01-04-2016 09:20 AM
Digikam connecting as root/not connecting as regular user jayhel Slackware 5 09-29-2005 06:57 PM
connecting SSENT12 Linux - Networking 10 07-21-2003 01:45 PM
Mysql is not connecting from servlet.But connecting from java, help pls Harish_f Linux - General 0 05-08-2002 04:21 AM
connecting chens_83 Linux - Newbie 1 12-29-2001 01:34 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:39 AM.

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