Unable to use Static IP

This forum is for all other ARMv5 devices

Unable to use Static IP

Postby coupondeal » Wed Dec 21, 2011 4:30 pm

Hello all

After successfully installing the ArchLinux, I run into the problem of unable to setup a static IP address.

Currently, the DHCP is in good shape. It can connect to the LAN, use wget to get packages from the Internet, etc.
Here is the DHCP setting in /etc/rc.conf
$this->bbcode_second_pass_code('', '
interface=eth0
address=
netmask=
broadcast=
gateway=
')

However, if I change it to static IP address, and reboot the system , then the unit can't connect to LAN (which is confirmed by checking the LAN connection status from the router in my home), and therefore I am unable to use PUTTY to SSH the unit. Below is the /etc/rc.conf setting

$this->bbcode_second_pass_code('', '
interface=eth0
address=192.168.1.14
netmask=255.255.255.0
broadcast=192.168.1.255
gateway=192.168.1.1
')

FYI: when rebooting after changing to static IP, the LED light will blink for a couple of seconds , then glows steadily.

Later, I also followed instruction on
https://wiki.archlinux.org/index.php/Co ... ng_Network
and
https://wiki.archlinux.org/index.php/Rc.conf

But again, it doesn't work...





I know that there is walk-around approaches such as assigning a fixed IP address on my DHCP server, so that the PogoPlug will retrieve an IP address from the DHCP server but the address is actually fixed. But what I actually need is to figure out what's wrong with my current settings/system. Could anyone help me fix the static IP address problem! Thanks.
coupondeal
 
Posts: 9
Joined: Wed Dec 21, 2011 4:27 pm

Re: Unable to use Static IP

Postby WarheadsSE » Wed Dec 21, 2011 4:36 pm

This is a big, fat, hmm.

You're not the first person I've seen this happen to. I am not certain is related to just the oxnas either.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Unable to use Static IP

Postby coupondeal » Wed Dec 21, 2011 4:45 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'T')his is a big, fat, hmm.
You're not the first person I've seen this happen to. I am not certain is related to just the oxnas either.


Thanks! So we haven't figured this problem out yet?
coupondeal
 
Posts: 9
Joined: Wed Dec 21, 2011 4:27 pm

Re: Unable to use Static IP

Postby pepedog » Wed Dec 21, 2011 5:11 pm

Might I suggest this
Install netcfg
Comment out network stuff in rc.conf
I will show you my interface without explanation, no gateway (for me)
$this->bbcode_second_pass_code('', 'cat /etc/network.d/eth0
CONNECTION='ethernet'
DESCRIPTION='Internal LAN'
INTERFACE='eth0'
IP='static'
ADDR='192.168.2.239'
NETMASK='255.255.255.0'')
Now some changes to my rc.conf, network is gone, replaced with net-profiles
$this->bbcode_second_pass_code('', 'NETWORKS=(eth0) #filename /etc/network.d/eth0 is picked up
DAEMONS=(syslog-ng net-profiles openntpd sshd)
')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Unable to use Static IP

Postby WarheadsSE » Wed Dec 21, 2011 5:18 pm

Very true, rc.conf does indeed mention to use netcfg!
Last edited by WarheadsSE on Wed Dec 21, 2011 5:45 pm, edited 2 times in total.
Reason: oops.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Unable to use Static IP

Postby pepedog » Wed Dec 21, 2011 5:36 pm

You mean netcfg
Here is an example of static directly on ISP static address
$this->bbcode_second_pass_code('', '# cat /etc/network.d/eth1
CONNECTION='ethernet'
DESCRIPTION='ISP'
INTERFACE='eth1'
IP='static'
ADDR='87.194.121.98'
NETMASK='255.255.248.0'
GATEWAY='87.194.120.1'
DNS=('87.194.255.154')')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Unable to use Static IP

Postby coupondeal » Wed Dec 21, 2011 5:41 pm

$this->bbcode_second_pass_quote('pepedog', 'M')ight I suggest this
Install netcfg
Comment out network stuff in rc.conf
I will show you my interface without explanation, no gateway (for me)
$this->bbcode_second_pass_code('', 'cat /etc/network.d/eth0
CONNECTION='ethernet'
DESCRIPTION='Internal LAN'
INTERFACE='eth0'
IP='static'
ADDR='192.168.2.239'
NETMASK='255.255.255.0'')
Now some changes to my rc.conf, network is gone, replaced with net-profiles
$this->bbcode_second_pass_code('', 'NETWORKS=(eth0) #filename /etc/network.d/eth0 is picked up
DAEMONS=(syslog-ng net-profiles openntpd sshd)
')


Thanks. Thanks a lot.
I don't have access to my pogoplug right now. But I will try it later today.


I am just think that even the basic configuration fails, how can we be confident that a more complex netcfg will work....It's like, if a toddler can't walk, then how do we believe he can run....

Still, it doesn't hurt to try a different approach
coupondeal
 
Posts: 9
Joined: Wed Dec 21, 2011 4:27 pm

Re: Unable to use Static IP

Postby pepedog » Wed Dec 21, 2011 5:51 pm

You see, the network used to be done (even multiple interfaces) totally different (all in rc.conf), upstream on arch (x86) they have it figured? out.
I run a few complex interfaces on plugs and this change took me a few days to work out, had to look into scripts to see what was needed (which wasn't mentioned in arch wiki at the time)
I so happen to like the net-profiles DAEMON, even for a single interface
If you had a second usb nic, you can safely experiment without touching DAEMON line in rc.conf
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Unable to use Static IP

Postby Geoff » Wed Dec 21, 2011 7:09 pm

I have been able to get netcfg to work for a static IP address on eth0, similar to how pepedog has done that. However, I can't get wifi (ra0) to work using netcfg; it relies on wpa_supplicant, which always reports failure when negotiating a WPA2/PSK connection. I would be interested to hear if anyone can get wfi to work using netcfg.
Geoff
 
Posts: 231
Joined: Wed Mar 09, 2011 5:14 pm

Re: Unable to use Static IP

Postby pepedog » Wed Dec 21, 2011 7:34 pm

I have only tried wifi in access point mode (works) using hostapd (and netcfg of course)
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Next

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 50 guests