Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th July 2012, 02:01 AM
Argedion's Avatar
Argedion Offline
Registered User
 
Join Date: Dec 2009
Location: I Live in the USA - Georgia
Posts: 90
linuxfirefox
A Bit of Networking Help Please.

I have a print/file server that every time my router is reset give the printer a different IP address. I would like to make this a Static IP but am not aware how. I have about 9 devices that connect to the internet from the router. I want to keep the dynamic Ip's for those devices however the 1 server I want to have a static. It is a Linux Server just basic samba / with cups I share the printer with my wife so its important that she have access to it but her windows machine is stupid and wont scan for and adjust for the Ip. (Windows 7 Home Premium)
__________________
Command Line Flunkie and a GUI Junkie
Currently using F17
androidforum.com for all android needs (Htc Evo 4G)
Reply With Quote
  #2  
Old 6th July 2012, 02:11 AM
DBelton's Avatar
DBelton Online
Administrator
 
Join Date: Aug 2009
Posts: 6,613
linuxfirefox
Re: A Bit of Networking Help Please.

I would recommend static network addresses for servers, anyway. It's much easier that way.

You can set up a static network address by changing your /etc/sysconfig/network-scripts/ifcfg-xxxx file (xxxx is the name of your network interface, like eth0, em1, p33p1, etc...)

For example, here is the ifcfg file on one of my machines that has a static network address.

Code:
NM_CONTROLLED="yes"
BOOTPROTO=none
DEVICE="p33p2"
ONBOOT=yes
HWADDR=6C:62:6D:7C:0C:31
TYPE=Ethernet
IPADDR0=192.168.1.20
PREFIX0=24
GATEWAY0=192.168.1.254
DNS1=192.168.1.254
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System p33p2"
chances are, on your system, these are the only 5 lines you will need to change:

Code:
BOOTPROTO=none ------------------------ 	BOOTPROTO=dhcp tells it to use DHCP and dynamic addressing
IPADDR0=192.168.1.20  ------------------- network address you wish to assign
PREFIX0=24 --------------------------------- netmask - equilivant to 255.255.255.0
GATEWAY0=192.168.1.254 ---------------- address of router/gateway
DNS1=192.168.1.254 ----------------------- address of your DNS server (I used my router address, which pulls DNS from my ISP)
Reply With Quote
  #3  
Old 6th July 2012, 10:45 AM
Argedion's Avatar
Argedion Offline
Registered User
 
Join Date: Dec 2009
Location: I Live in the USA - Georgia
Posts: 90
linuxfirefox
Re: A Bit of Networking Help Please.

Thanks for the quick response and help. I'll report back how it worked out.

---------- Post added 6th July 2012 at 05:45 AM ---------- Previous post was 5th July 2012 at 09:19 PM ----------

Ok I first created a file but it didn't work. (did not have on in natively) so went opended up Network Manager. clicked on IP4 settings and changed the method to Manual
then added ipaddress, netmask, gateway
Dns server is same as router

clicked saved rebooted and it all worked well. So then I unplugged inet connection rebooted and again all was well. SAME IP all the way around thanks bro
__________________
Command Line Flunkie and a GUI Junkie
Currently using F17
androidforum.com for all android needs (Htc Evo 4G)
Reply With Quote
  #4  
Old 6th July 2012, 11:26 AM
flyingfsck Offline
Registered User
 
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 1,044
linuxfirefox
Re: A Bit of Networking Help Please.

You can also specify the MAC address and corresponding IP address in a configuration file for the DHCP Daemon.
Reply With Quote
  #5  
Old 13th July 2012, 09:31 AM
Argedion's Avatar
Argedion Offline
Registered User
 
Join Date: Dec 2009
Location: I Live in the USA - Georgia
Posts: 90
linuxfirefox
Re: A Bit of Networking Help Please.

Quote:
Originally Posted by flyingfsck View Post
You can also specify the MAC address and corresponding IP address in a configuration file for the DHCP Daemon.
this is what I ended up doing on the router. I reserved all the ip's for my servers. found that the other way router would still try to give the IP to other componets.
__________________
Command Line Flunkie and a GUI Junkie
Currently using F17
androidforum.com for all android needs (Htc Evo 4G)
Reply With Quote
Reply

Tags
bit, networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Networking Help pathway27 Servers & Networking 0 10th November 2007 01:10 AM
Need help with networking! Imad Servers & Networking 5 8th November 2007 05:27 PM
Networking Xang Using Fedora 1 2nd September 2005 08:45 PM
Need Help in Networking kokaly Servers & Networking 2 4th March 2005 09:56 PM
Networking FC2 and XP mustangfanatic EOL (End Of Life) Versions 2 20th October 2004 03:44 AM


Current GMT-time: 13:51 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat