Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Now my DHCP server is up and running, but it has no internet connection.
Is this what it is supposed to be? Because now this station is a server, so it has no internet connection?
My internet connection is fine. I have internet connection on my laptop, and DHCP client station.
And also when I typed 192.168.1.131, my Apache server is up. But when I tried to go to google.com or any site, it says "server not found".
Yes, DHCP server and DHCP client are 2 separate computers.
On the DHCP server, it is still "wired connected" to the internet. Although everything is fine, it has no internet connection.
The DHCP client is also "wired connected". I am sending this message via my DHCP client. As you can see, I have internet connection.
My laptop is using wifi, which has no problem also. I am not sure if it is also a DHCP client or not. It's turned off at the moment.
I can't ping 172.217.2.238. "The network is unreachable".
Thank you,
Denny
Quote:
Originally Posted by RandomTroll
No. Is it a separate computer?
How do you know? Is the laptop a client of the DHCP server?
Since the DHCP server is configured with a static IP address the DNS name servers also have to be manually added. If you are running a desktop you can manually add the name servers using the Network Manager applet.
you have to have up and running networking before getting out to internet
the installation manual for your distribution should walk you through getting out to the internet (if it doesn't: you haven't seen the right guide yet)
furst ping 127.0.0.1 (that's localhost on most linux boxes, though check your /etc/ files if they are not XML config files on your system). if that's not working you don't have anything configured.
next use 'ifconfig' to get a list of network devices that are "up". (if there are none they haven't been configured. if they can't be configured - the kernel doesn't have a driver for your network - but it probably does)
if you have an "up" interface, check your route table insure there is a route outward (note: use a routing daemon to automatically provide routes so you don't have to learn how)
finally: IF YOU HAVE A MODERN MODEM OR ROUTER steer your web browser to it's address (written on the modem somewheres)
IMPORTANT: while you can use linux to "configure site networking and firewalling": a modern modem can do the same using your web browser (it's built-in). your choice, you can guess which is easier to start with.
finally: if your using a ISP (internet service provider) they may be blocking DHCP. your not on the "internet" by default your on their local DMZ/lan and getting access to the internet through them. you may have to "pay extra" or switch providers to get a real connection and real IP without "signal blocking" - and the same for each remote machine as well, as they may only be able to get dhcp from the isp they are on.
Last edited by X-LFS-2010; 05-30-2018 at 11:19 PM.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
X-LFS-2010, your post above needs help. "If you are using a ISP ..."Everyone with Internet access uses an ISP! Also, could you please provide an example of an ISP blocking DHCP? And what is ISP signal blocking? ISPs may block certain ports to prevent customers from running servers.
Just added DNS nameservers to my DHCP server, and still no internet access.
nameserver 8.8.8.8
nameserver 4.4.4.4
Those are now in my /etc/resolv.conf
I can also ping 127.0.0.1.
Any thoughts on this?
Thanks again,
Denny
Quote:
Originally Posted by michaelk
Since the DHCP server is configured with a static IP address the DNS name servers also have to be manually added. If you are running a desktop you can manually add the name servers using the Network Manager applet.
#ip route
192.168.1.0/24 dev p8p1 proto kernel scope link src 192.168.1.138 metric 100
192.168.122.0/24 dev vir0 proto kernel scope link src 192.168.122.1
Thanks for your reply,
Denny
Quote:
Originally Posted by smallpond
Do you have a default gateway? What is the output of "route -n" or "ip route show" (whichever works) on your DHCP server.
By the way, I also don't have a default gateway. I don't know if this is an issue or not.
And this is what I get when I typed ip route:
#ip route
192.168.1.0/24 dev p8p1 proto kernel scope link src 192.168.1.138 metric 100
192.168.122.0/24 dev vir0 proto kernel scope link src 192.168.122.1
Thanks again,
Denny
Quote:
Originally Posted by michaelk
Your server is running CentOS 7?
Can you ping 8.8.8.8?
If your running a desktop on this server the best method would be to use the Network Manager applet to add DNS servers.
If your not running a desktop then you can use the nmcli command line utility.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.