LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-25-2019, 07:34 PM   #1
ssenuta
Member
 
Registered: Mar 2006
Location: NYS
Distribution: Mandriva-2006
Posts: 123

Rep: Reputation: 16
router static IP addresses


I currently use dynamically assigned IP addresses with my Netgear router but I'm thinking of trying static IP addresses. By doing this I hope to avoid NFS file sharing problems after a power failure.

When the power goes out, my router switches IP addresses around forcing me to restart my computers in a fixed sequence to get back their original IP addresses.

My home network is pretty basic:

PC#1
ethernet card 192.168.1.2
wifi card 192.168.1.3

PC#2
ethernet card x.x.x.x
wifi card 192.168.1.4

Chromecast x.x.x.x

Router 192.168.1.1

ISP TWC

I do file sharing between PC#1 (192.168.1.2) & PC#2 (192.168.1.4).
I do not use the Chromecast device & it is disconnected.

Do you think static IP addresses will be good for me or am I asking for trouble?

Thank you for reading this post ---STAN
 
Old 04-25-2019, 07:42 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I see nothing to take exception to.

I'd use xxx.xxx.xxx.5, xxx.xxx.xxx.10, xx.xxx.xxx.15, but that's just a matter of personal preference.
 
Old 04-25-2019, 08:41 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
Most routers built in DHCP server has the capability to assign an IP address. Its basically a static IP address but less effort since you don't have to mess with the clients configuration files which depends on distribution. Although it looks like you have an older router since your IP addresses are assigned in numerical order.
 
Old 04-25-2019, 09:11 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,985

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
There sure is a few ways to go on this to find local resources. At one time I'd think most folks used static and many still do.

This is similar to what I do (I think) and michaelk suggests. https://fatmin.com/2017/03/07/asus-r...-home-devices/

Basically the router lives on DHCP but takes your input of mac addresses and keeps the dynamic ip assignment reserved for the devices you select to keep same. It can fail once in a great while too.
 
Old 05-03-2019, 08:58 AM   #5
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled
I use a combination of static and dynamic addresses on my home network. Cell phones, Roku, etc are DHCP since as long as they can talk, address doesn't matter. File server, access point, network printer, etc are static since I only manage things from 2 machines and rarely add static devices-- maintaining a few hosts files that change once every 2-3 years isn't much work. I define a range for static addresses and dynamic. I just configure my DHCP server to only lease addresses in the dhcp range.

Example:

static: 192.168.0.1-192.168.0.50
dhcp: 192.168.0.51-254
 
1 members found this post helpful.
Old 05-03-2019, 12:56 PM   #6
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
+1 to tyler2016's comments.
I use static IPs for the networked printer and this desktop ('cause it's also a backup for my production server). All other hardware is dynamic. I used to assign static IPs to everything with my old router, because its DHCP server kept flaking out, but the new router doesn't have that problem...
 
  


Reply



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
Binding 2 NICs (MAC addresses) to 2 IP Addresses in same Subnet RedHat EL4.0 skhira Linux - Networking 13 02-24-2008 08:16 PM
Binding 2 NICs (MAC addresses) to 2 IP Addresses in same Subnet RedHat EL4.0 skhira Linux - Networking 1 02-09-2008 07:17 AM
Mapping IP addresses to MAC addresses basilio Linux - Networking 17 09-12-2007 01:48 AM
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
mechanics of mapping process memory addresses to physical addresses on amd64 Tischbein Linux - Kernel 2 02-01-2007 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:04 AM.

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
Open Source Consulting | Domain Registration