Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
I am back and still clueless. I am tring to get my linux box config for the internet on a static IP. I can get it to work with dhcp but not static. I am using netconfig to do the work. When i put in my ip to my router it configs the rest of the selections
netmask 255.255.255.0 defalt gateway 192.168.1.254
Primarynameserver 192.168.1.1 Where is it pulling these from I can ping inside the network but cant get to the internet.
Don't use the numbers it throws in there. If your using a static IP, then you need to also specify your Gateway, Nameserver...etc. Unless what it automatically gives you is correct which in most cases isn't, most likely that is why its not working..
And if your pinging inside the network, then most likely its a problem with DNS, just add those entries to your /etc/resolv.conf
I am behind a router. I want to static the linux box so I can forward ports to it. This box is at home but will be moved to my office in time. I only want to static this box here as a test so it will be turnkey when I move it. The problem is I have tried all the numbers I can find ie ip, gateway, subnet and I cant get any of them to work. I know the router is right. I have several of them config static for win boxes. Linux on the other hand is giving me fits.
If that is red hat 7.x, you can try , netconfig or linux-conf.If you are a newbie, you can use linux conf. If you use netconf, it gives you a blue screen with options. Uncheck DHCP by pressing space bar and select activate on boot.Then fill up all the columns ( your ip, gateway, dns . After that do, ifup eth0. It should work. I hope it works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.