Pogoplug V2 static IP query

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

Pogoplug V2 static IP query

Postby rev667 » Mon Aug 04, 2014 11:54 am

Hi folks,

Currently running a Pogoplug pink/grey E02 connected to an ADSL router with dhcp.

I am looking at assigning a static IP, currently I have done this using the router, reserving the IP number for the pogo.

I know this is the preferred method, but I am trying to understand the netctl configurations. It may be that if I change ISP the router will be dumber.

Most of the things I can understand, but one item flummoxes me, even my google-fu fails to shed much light on it.
Below is my current eth0

$this->bbcode_second_pass_code('', 'Description='A basic dhcp ethernet connection'
Interface=eth0
Connection=ethernet
IP=dhcp
ExecUpPost='/usr/bin/ntpd -gq || true'
DhcpcdOptions='-A'
ExecUpPost='/usr/bin/ntpdate -u pool.ntp.org'
')

What is the DhcpcdOptions='-A' for?

My google-fu says it's something to do with passing an instruction to the dhcp client...

-A, --noarp - Don't request or claim the address by ARP. This also disables IPv4LL.

and...

DhcpcdOptions=, DhclientOptions=, DhclientOptions6=
Additional options to be passed to the DHCP client. Do not use this
unless you know what you are doing.

My proposed static IP eth0 would look like this :-

$this->bbcode_second_pass_code('', 'Description='A basic static ethernet connection'
Connection=ethernet
Interface=eth0
IP=static
Address='192.168.0.4/24'
gateway='192.168.0.1'
DNS=('8.8.8.8' '8.8.4.4')
#These were added when I did the timezone.
ExecUpPost='/usr/bin/ntpd -gq || true'
ExecUpPost='/usr/bin/ntpdate -u pool.ntp.org'')

Do I need to add the DhcpcdOptions='-A' to this, if so, why?

Go on, explain to the stupid old geezer, mebbe I'll learn something ;)

Rev
rev667
 
Posts: 18
Joined: Tue May 07, 2013 8:19 am

Re: Pogoplug V2 static IP query

Postby WarheadsSE » Mon Aug 04, 2014 1:28 pm

If you aren't using DHCP, why would you provide it options?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Pogoplug V2 static IP query

Postby rev667 » Mon Aug 04, 2014 2:42 pm

Thanks WarheadsSE,

You answered my question, it *is* something to do with passing options to the dhcp client.

:)

Rev
rev667
 
Posts: 18
Joined: Tue May 07, 2013 8:19 am

Re: Pogoplug V2 static IP query

Postby WarheadsSE » Mon Aug 04, 2014 3:29 pm

You can always check /etc/netctl/examples/ethernet-static
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Pogoplug V2 static IP query

Postby metalshark » Tue Sep 02, 2014 4:35 am

Hi Guy,

I'm a total NOOB coming from a Windows environment. I really want to learn how to use Linux. Right now I'm playing with my Pogoplug with ARM on it. Can you guys please tell me how to set my Pogoplug to use a static IP? I've searched the internet and saw some information but it was still too technical for my feeble brain to comprehend. Thanks in advance guys.
metalshark
 
Posts: 21
Joined: Tue Sep 02, 2014 12:17 am

Re: Pogoplug V2 static IP query

Postby rev667 » Tue Sep 02, 2014 8:20 am

rev667
 
Posts: 18
Joined: Tue May 07, 2013 8:19 am

Re: Pogoplug V2 static IP query

Postby pepedog » Tue Sep 02, 2014 11:57 am

It depends on what rootfs you have (age) on how network starts/configured

Older, look at the file /etc/netctl/eth0
Replace contents of that file from example in /etc/netctl/samples/
If you backup old file, don't leave backup in that folder

Newer, (systemd-networkd) edit file in /etc/systemd/network/
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Pogoplug V2 static IP query

Postby metalshark » Mon Sep 15, 2014 12:45 am

Hi Rev,

Thanks buddy for the link. Unfortunately I did see that and tried it out but it seems now I have 2 IP ADDRESSES. I did get the 192.168.0.100 that I wanted but I still have the original 192.168.0.6 ip address that I believe my router has initially assigned to me. So what's up with that?
metalshark
 
Posts: 21
Joined: Tue Sep 02, 2014 12:17 am

Re: Pogoplug V2 static IP query

Postby WarheadsSE » Mon Sep 15, 2014 1:15 am

You have to disable the other one's service that is fetching that dhcp address.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Pogoplug V2 static IP query

Postby metalshark » Mon Sep 15, 2014 1:24 am

Hi WarheadsSE,

Yes, I figured that's what's causing the original ip address to still remain. I hope you wouldn't mind sharing to us how to do so. Us being total noobs and all. Thanks buddy
metalshark
 
Posts: 21
Joined: Tue Sep 02, 2014 12:17 am


Return to ARMv5

Who is online

Users browsing this forum: No registered users and 5 guests