LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-03-2017, 11:42 AM   #1
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Rep: Reputation: Disabled
Not Connecting


All,

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:

Code:
#! /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 www.google.com;

# 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?

Cheers!

TBNK

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

TBNK
 
Old 02-03-2017, 12:46 PM   #2
TheEzekielProject
Member
 
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, 05:15 PM   #3
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Solved

All,

Thanks for the feedback! After running:

Code:
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!

Cheers!

TBNK
 
  


Reply



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 08:20 AM
Digikam connecting as root/not connecting as regular user jayhel Slackware 5 09-29-2005 05:57 PM
connecting SSENT12 Linux - Networking 10 07-21-2003 12:45 PM
Mysql is not connecting from servlet.But connecting from java, help pls Harish_f Linux - General 0 05-08-2002 03:21 AM
connecting chens_83 Linux - Newbie 1 12-29-2001 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:08 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration