LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-23-2014, 01:15 PM   #1
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Rep: Reputation: Disabled
Static IP on wifi?


I am only using Wifi on my CentOS server. To set the static IP would I still be setting it on the eth0 controller?
 
Old 01-23-2014, 02:21 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,087
Blog Entries: 10

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Sorry. That reads as two different questions.

To set a static WIFI IP address is one thing.

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.
 
Old 01-23-2014, 02:51 PM   #3
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
Sorry. That reads as two different questions.

To set a static WIFI IP address is one thing.

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
 
Old 01-23-2014, 03:03 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,087
Blog Entries: 10

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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.
 
Old 01-23-2014, 03:10 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] How to add a static route to wired router without dropping wifi internet. captdavid1949 Linux - Networking 1 04-18-2013 08:53 PM
[SOLVED] /etc/network/interfaces for static wifi suicidaleggroll Linux - Networking 3 06-29-2012 07:48 PM
setting static IP on linux PCs with no static IP address from internet provider? solvetek Linux - Networking 1 10-22-2011 09:04 AM
Static LAN (wired and WiFi) IP in Debian setup problems. CloudyWizzard Debian 15 03-29-2009 03:07 AM
College Campus: PC on ethernet, Laptop on wifi, no static IP, can I still ssh? Romanus81 Linux - Wireless Networking 1 09-02-2008 11:52 AM


All times are GMT -5. The time now is 06:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration