You are not logged in.

#1 2012-10-06 02:28:48

kens
Member
Registered: 2011-11-11
Posts: 29

[SOLVED] Request a certain IP from the wireless router using netcfg

I am using netcfg to connect to the internet with wireless, and have some port forwarding on my router. However, I have many devices using the router, so every time I turn my computer off and back on, the IP I get is a tossup, and if I get a different one (from say 192.168.1.5) then I will have to go in and update the port forwarding.

Is there a way to get netcfg to ask for a certain IP from the router instead of just saying "give me whatever you've got"? I was thinking you could pick an high number that would be unlikely to be assigned to another device and not have to mess with updating port forwarding.

I'm sorry I don't know what that's called or I could Google it. I don't even know if it's possible though.

Last edited by kens (2012-10-06 02:43:58)

Offline

#2 2012-10-06 02:31:52

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: [SOLVED] Request a certain IP from the wireless router using netcfg

It is referred to as a static IP, and can definitely be set up from your arch system.  But it might be easier to reserve a particular IP from the router itself.  Assuming you have access to router configuration of course, which I assume you do since you have set up port forwarding.

Offline

#3 2012-10-06 02:32:09

2ManyDogs
Member
Registered: 2012-01-15
Posts: 1,670

Re: [SOLVED] Request a certain IP from the wireless router using netcfg

What you want is called a "static" ip address. You can use netcfg to do this, but if you are using systemd there is an easier way: https://wiki.archlinux.org/index.php/Sy … et_network

(edit) hey wonderwoofy smile

Last edited by 2ManyDogs (2012-10-06 02:36:43)

Offline

#4 2012-10-06 02:33:37

headkase
Member
From: Canada
Registered: 2011-12-06
Posts: 1,476
Website

Re: [SOLVED] Request a certain IP from the wireless router using netcfg

That kind of configuration is usually handled in the router itself.  You can try going to http://192.168.0.1 and if that doesn't get your router web-interface you'll have to consult your manual.  You will need a user login name and password - again consult your manual.  Once you are in the router you get it to assign your computer a specific IP address from the MAC address of your computer's hardware.  The MAC address in your computer, part of the networking hardware, doesn't change.  So you tell your router: "whenever you see this MAC address give it this IP Address."

Edit: and with the router giving you the correct IP address your computer still uses DHCP to get the address - the router just gives it the same one every time.

Last edited by headkase (2012-10-06 02:36:39)


We all make choices, but in the end, our choices make us.

Online

#5 2012-10-06 02:34:23

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,320

Re: [SOLVED] Request a certain IP from the wireless router using netcfg

You should be able to configure the router to always assign a specific IP address to a specified MAC address

Too slow

Last edited by skunktrader (2012-10-06 02:35:06)

Offline

#6 2012-10-06 02:34:59

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: [SOLVED] Request a certain IP from the wireless router using netcfg

Ha ha!  I am the winner!

Offline

#7 2012-10-06 02:43:32

kens
Member
Registered: 2011-11-11
Posts: 29

Re: [SOLVED] Request a certain IP from the wireless router using netcfg

Wow thanks guys, that was very easy, I just did it from my router. Sorry for the stupid question but thanks very much for the extremely fast help.

Offline

#8 2012-10-06 02:45:39

headkase
Member
From: Canada
Registered: 2011-12-06
Posts: 1,476
Website

Re: [SOLVED] Request a certain IP from the wireless router using netcfg

kens wrote:

Wow thanks guys, that was very easy, I just did it from my router. Sorry for the stupid question but thanks very much for the extremely fast help.

He who asks a question is a fool for five minutes; he who does not ask a question remains a fool forever.  ~ Chinese Proverb.  wink


We all make choices, but in the end, our choices make us.

Online

#9 2012-10-06 03:13:38

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: [SOLVED] Request a certain IP from the wireless router using netcfg

I don't know, I ask questions, and I think I am still probably a fool.

Offline

#10 2012-10-06 03:17:15

headkase
Member
From: Canada
Registered: 2011-12-06
Posts: 1,476
Website

Re: [SOLVED] Request a certain IP from the wireless router using netcfg

WonderWoofy wrote:

I don't know, I ask questions, and I think I am still probably a fool.


Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. ~ Albert Einstein

wink tongue big_smile


We all make choices, but in the end, our choices make us.

Online

#11 2012-10-06 03:44:40

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: [SOLVED] Request a certain IP from the wireless router using netcfg

Wow, you are just quote-tastic today!

Offline

#12 2012-10-06 04:00:55

headkase
Member
From: Canada
Registered: 2011-12-06
Posts: 1,476
Website

Re: [SOLVED] Request a certain IP from the wireless router using netcfg

WonderWoofy wrote:

Wow, you are just quote-tastic today!

“It is a good thing for an uneducated man to read books of quotations. The quotations, when engraved upon the memory, give you good thoughts. They also make you anxious to read the authors and look for more.” ~ Winston Churchill

Between half remembering a quote and Google I usually have a good saying. wink

Edit, perhaps we should end here as I'm sure we're getting totally off-topic.. smile

Last edited by headkase (2012-10-06 04:18:23)


We all make choices, but in the end, our choices make us.

Online

Board footer

Powered by FluxBB