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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
To set your eth0 address to static would affect the address for the cabled Ethernet. If you have no cable plugged in, you don't need to change anything for your eth0 settings.
Is your WIFI working fine? If so, are you looking to change the WIFI address? If not, and if everything is fine, no need to do anything.
OK, so I'm using a computer as a home server. I can not easily connect a wired connection in the location it's in so it's using wifi right now. Everyone suggests that the server have a static ip. I'm using dhcp on the wifi right now and everything works fine. So I don't need to change just want to cover my bases in case the server gets a different address assigned at some point
You can assign a static IP for your wireless network. The wireless network is not eth0.
If you type ifconfig, do you see wlan0 or something appearing to be wireless?
If you type iwconfig, do you see wlan0 or something appearing to be wireless?
I'm not up on CentOS, but if you have an /etc/network/interfaces file, you can put in lines there to make your wireless a static IP. And I just searched for that to find that it doesn't use the /etc/network/interfaces file, it uses network scripts to do this.
A couple of things to do:
On your wireless router, make sure you have an address you can use that's not out of your DHCP pool. For instance DHCP may give out addresses in the 192.168.1.xxx network and give out address .100-.250 for DHCP. You can pick say address 192.168.1.99; it'll still be on that network but won't be duplicated by another wireless device which uses DHCP. Make sure you don't pick the router's address either; probably 192.168.1.1. But these addresses are examples; you should examine your network first before you start.
Then work at configuring your server to be the chosen IP address.
You should search for recommendations on how to set a static IP for your system type.
Or instead you can configure your wireless router to always assign the same IP to the server's MAC address. That way the server can stay on DHCP, but you can rest assured that it will always have the same IP, controlled by the router.