[SOLVED]Netctl Static ip configuration

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

[SOLVED]Netctl Static ip configuration

Postby SkyboyLP » Fri Mar 25, 2016 7:34 pm

Hey guys i have another question

I want to setup a static ip with netctl so i can access my raspberry pi from the internet via ssh.
There is a example ethernet-static config.
But my issue is that i dont know what all these values mean :o

Can someone please explain what these mean and how i figure out the values i need to enter?

$this->bbcode_second_pass_code('', '
Description='A basic static ethernet connection'
Interface=eth0
Connection=ethernet
IP=static
Address=('192.168.0.86/24')
#Routes=('192.168.0.0/24 via 192.168.1.2')
Gateway='192.168.0.1'
DNS=('8.8.8.8' '8.8.4.4')
')

2nd Question pls write how I can setup a static ip with netctl.
Last edited by SkyboyLP on Sat Mar 26, 2016 9:13 am, edited 1 time in total.
SkyboyLP
 
Posts: 6
Joined: Fri Mar 25, 2016 9:49 am

Re: Netctl Static ip configuration

Postby Abzie » Fri Mar 25, 2016 8:45 pm

If you don't know what those mean, wouldn't it be simpler to use the example dhcp profile, and do:
$this->bbcode_second_pass_code('', 'ip addr')
to find the mac address then set an IP address reservation on your router, if it uses dhcp?

Description - the connection name for logging purposes
Interface - what device to hook
Connection - keep it as ethernet
IP - keep as static
Address - what IP you want the pi to use
Gateway - your router IP
DNS - self-explanatory

Or use networkd
Abzie
 
Posts: 29
Joined: Tue Mar 15, 2016 6:05 pm

Re: Netctl Static ip configuration

Postby WarheadsSE » Fri Mar 25, 2016 10:35 pm

Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to ARMv6h

Who is online

Users browsing this forum: Majestic-12 [Bot] and 9 guests