You are not logged in.
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
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
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
Last edited by 2ManyDogs (2012-10-06 02:36:43)
How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.
Offline
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)
Offline
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
Ha ha! I am the winner!
Offline
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
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.
Offline
I don't know, I ask questions, and I think I am still probably a fool.
Offline
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
Offline
Wow, you are just quote-tastic today!
Offline
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.
Edit, perhaps we should end here as I'm sure we're getting totally off-topic..
Last edited by headkase (2012-10-06 04:18:23)
Offline