How do I setup Static IP with netctl

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

How do I setup Static IP with netctl

Postby SuperKomputerKid » Sun Feb 16, 2014 10:57 pm

Hi! I have a raspberry pi model b with a Wi-Fi dongle plugged into it. I would like to use the wpa-wireless-static config to connnect to my netwrok since the Pi acts as a small server for ssh and nginx with the ghost blogging platform. When I configure the static wpa file I generally use:

Description='A simple WPA encrypted wireless connection using a static IP'
Interface=wlan0
Connection=wireless
Security=wpa
ESSID='My SSID'
Key='My Passkey'
IP=static
Address='192.168.1.106'
Gateway='192.168.1.1'
DNS=('8.8.8.8')
# Uncomment this if your ssid is hidden
Hidden=yes

My wifi network is hidden.

I would like to setup static IP so I don't have to mess with portforwarding every 2 to 3 weeks.
What am I doing wrong?
SuperKomputerKid
 
Posts: 3
Joined: Sun Feb 16, 2014 10:51 pm

Re: How do I setup Static IP with netctl

Postby moonman » Sun Feb 16, 2014 10:59 pm

why not use static dhcp leases in the router itself?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: How do I setup Static IP with netctl

Postby SuperKomputerKid » Sun Feb 16, 2014 11:17 pm

Did not think of that. :P but I'm not the admin in the house, my dad is. All I can do with the router is portforward my site. :P

If I did anything else with it he wouldn't be too happy.
SuperKomputerKid
 
Posts: 3
Joined: Sun Feb 16, 2014 10:51 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 1 guest