You are not logged in.

#1 2010-02-19 19:17:17

colbert
Member
Registered: 2007-12-16
Posts: 809

[SOLVED] Static IP/assigning router IP per box

I am a bit confused about static IP and router IP even after reading some guides from searching. What I would like to do if possible is, I have one server and 2 desktops (one arch one win7) and I would like to assign one 192.168.1.10? IP per each. So for example I want to make sure that my server is always 192.168.1.100, even after a power outage or something, when it restarts its network and tries to get IP from router it is always 192.168.1.100, and no other device connected to the network can possibly take that spot. How exactly do I accomplish this? Is this static IP or a bit different? TIA for any help smile

Last edited by colbert (2010-02-19 21:07:43)

Offline

#2 2010-02-19 19:22:58

Cyrusm
Member
From: Bozeman, MT
Registered: 2007-11-15
Posts: 1,053

Re: [SOLVED] Static IP/assigning router IP per box

I configured this in my router's software.  I'm assuming you can as well through your routers software as well.


Hofstadter's Law:
           It always takes longer than you expect, even when you take into account Hofstadter's Law.

Offline

#3 2010-02-19 19:23:06

SemiBz
Member
From: Riga, Latvia
Registered: 2010-01-30
Posts: 80

Re: [SOLVED] Static IP/assigning router IP per box

Depends on the router - you should be able to assign a local IP address by MAC.

Offline

#4 2010-02-19 19:25:03

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] Static IP/assigning router IP per box

You can set static ip addresses on the clients, or you can configure static dhcp leases on your router (if it supports static leases, of course).

Offline

#5 2010-02-19 19:28:49

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: [SOLVED] Static IP/assigning router IP per box

Okay I am in my Linksys (WRT54GS) control panel in browser, but I am unsure of where to proceed.

nT0bUl.jpg

or

n6ZMOl.jpg

Any of those? In the first pic I was thinking maybe Static DNS section, dunno.

edit: image size

Last edited by colbert (2010-02-19 19:41:07)

Offline

#6 2010-02-19 19:36:01

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] Static IP/assigning router IP per box

Please use an image hoster, and post a thumbnail here. Large images like that are not allowed.

I don't see any static lease settings on those pages.

Offline

#7 2010-02-19 19:36:38

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: [SOLVED] Static IP/assigning router IP per box

Change the router "start IP address" from 100 to 150

Then give your Server and PCs the static IPs you want (192.168.1.100 etc)

Offline

#8 2010-02-19 19:42:26

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: [SOLVED] Static IP/assigning router IP per box

Sorry for image size! Resized hopefully is OK.

vacant wrote:

Change the router "start IP address" from 100 to 150

Then give your Server and PCs the static IPs you want (192.168.1.100 etc)

Okay, how do I do the second part though, how do I give the pc the static IP? Is that this: http://wiki.archlinux.org/index.php/Net … _Static_IP  ??

Offline

#9 2010-02-19 20:04:33

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: [SOLVED] Static IP/assigning router IP per box

colbert wrote:

Sorry for image size! Resized hopefully is OK.

vacant wrote:

Change the router "start IP address" from 100 to 150

Then give your Server and PCs the static IPs you want (192.168.1.100 etc)

Okay, how do I do the second part though, how do I give the pc the static IP? Is that this: http://wiki.archlinux.org/index.php/Net … _Static_IP  ??

Yes.

For your server 192.168.1.100, assuming a wired interface on eth0, in /etc/rc.conf

#Static IP example
eth0="eth0 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(eth0)
gateway="default gw 192.168.1.1"
ROUTES=(gateway)

For your Arch PC do the same but change the IP address to 192.168.1.101
For you Windows PC, something like right click on the network connection, properties, TCP, IPV4, then uncheck "automatic" or DHCP and fill in the IP address as 192.168.1.102, broadcast 192.168.1.255, netmask 255.255.255.0, gateway & DNS 192.168.1.1

Last edited by vacant (2010-02-19 20:06:50)

Offline

#10 2010-02-19 21:07:29

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: [SOLVED] Static IP/assigning router IP per box

Thanks so much vacant! I did that on both rc.conf's of server and desktop Arch boxes, now they are at the correct IPs big_smile Thanks a lot!!! smile

Offline

#11 2010-02-19 22:45:01

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] Static IP/assigning router IP per box

Colbert - glad you got it worked out, but you'd have got there a lot faster if you'd just followed the wiki - you even found the right page, and it says exactly what vacant just said. smile

Offline

#12 2010-02-19 23:04:38

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: [SOLVED] Static IP/assigning router IP per box

Oh for sure, but again my concern was whether or not what I wanted was static IP setting smile Been having so many net issues last couple weeks just didn't want to make changes unless I knew the right path to go down... big_smile

Offline

Board footer

Powered by FluxBB