[SOLVED] CentOS 6 Media Server Can't Connect to Internet
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
First post so please excuse any missteps in explaining this issue.
I am running a CentOS6 box on some old hardware to act as a media server. I'm using Plex as my media server. I have configured eth0 to use a static IP address in the 192.168 range. The media server communicates without any problem on my internal network but is unable to communicate beyond my router.
Pings return ping: unknown host
I changed the boot protocol to DHCP and that resolves the issue, but it negates what I'm trying to do with the system. Here is a copy of my ifcfg-eth0 file.
Set your DNS settings correctly. Presumably your router is also a DNS server, and is the one you want this machine to use. Assuming your router's IP is 192.168.1.1, in ifcfg-eth0, set:
DNS1=192.168.1.1
When it's configured that way, I only get access within my network. I can SSH to it, even FTP to it, but oddly, if I try to transfer anything the connection dies (not sure if this problem is related or not, just an observation). This configuration seems to jive with what Habitual said.
Will continue to muck about with that configuration. Will update if I get it working.
By George I think that's done it. So far so good at any rate. Restart network service, it picked up the designated IP, system can connect both internally and externally. It even fixed the FTP issues I was seeing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.