You are not logged in.

#1 2013-05-20 19:06:59

Pacopag
Member
Registered: 2011-05-29
Posts: 287

[SOLVED] Can't get ethernet-static to work with netctl

Hi.  This is a fresh install.  I can't seem to get a static IP address to work with netctl.  Here is my profile (ethernet-static)

Description='A basic static ethernet connection'
Interface=enp6s0
Connection=ethernet
IP=static
Address=('192.168.0.109/24')
#Routes=('192.168.0.0/24 via 192.168.1.2')
Gateway='192.168.0.1'
DNS=('192.168.0.1')

## For IPv6 autoconfiguration
#IP6=stateless

## For IPv6 static address configuration
#IP6=static
#Address6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
#Routes6=('abcd::1234')
#Gateway6='1234:0:123::abcd'

When I do "netctl start ethernet-static" I don't get any failure message.  The output of "netctl status ethernet-static is"

netctl@ethernet\x2dstatic.service - A basic static ethernet connection
   Loaded: loaded (/etc/systemd/system/netctl@ethernet\x2dstatic.service; enabled)
   Active: active (exited) since Mon 2013-05-20 15:03:16 EDT; 14s ago
     Docs: man:netctl.profile(5)
  Process: 367 ExecStop=/usr/lib/network/network stop %I (code=exited, status=0/SUCCESS)
  Process: 625 ExecStart=/usr/lib/network/network start %I (code=exited, status=0/SUCCESS)

May 20 15:03:14 archnme systemd[1]: Starting A basic static ethernet connection...
May 20 15:03:14 archnme network[625]: Starting network profile 'ethernet-static'...
May 20 15:03:16 archnme systemd[1]: Started A basic static ethernet connection.

I can successfully ping IP addresses, but not domain names.

I have also tried disabling dhcpcd.  It works fine with ethernet-dhcp (from examples with my interface name)

Last edited by Pacopag (2013-05-21 00:24:52)

Offline

#2 2013-05-20 20:16:40

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: [SOLVED] Can't get ethernet-static to work with netctl

Abandoned netctl.  I followed this https://wiki.archlinux.org/index.php/Ne … IP_address and it works.

Just make sure to change instances of net0 to the name of your interface.

Edit:  Actually, after reboot, even with the network service the situation is the same.  Static ip, but I can only visit/ping IP addresses and not domain names.

Last edited by Pacopag (2013-05-20 21:45:39)

Offline

#3 2013-05-20 22:02:37

Arctus
Member
Registered: 2012-07-14
Posts: 99

Re: [SOLVED] Can't get ethernet-static to work with netctl

You've probably forgotten to add DNS servers. Try adding 8.8.8.8 to your /etc/resolv.conf file.

Or maybe not, I'm a bit confused about your setup. How are you connecting to the internet? Are you using a router, etc.?

Last edited by Arctus (2013-05-20 22:03:50)

Offline

#4 2013-05-20 22:47:32

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: [SOLVED] Can't get ethernet-static to work with netctl

I'm using some kinda Cisco modem/router that Rogers gave me.

I was using this exact same setup with the posted config file before the fresh install.  Only difference what that the interface before was eth0, and now it's changed to enp6s0 (account of new systemd?)

Last edited by Pacopag (2013-05-20 22:50:35)

Offline

#5 2013-05-21 00:24:11

Pacopag
Member
Registered: 2011-05-29
Posts: 287

Re: [SOLVED] Can't get ethernet-static to work with netctl

Arctus was right.  The problem was with nameservers.

I still can't get it to work with netctl, but with the service here https://wiki.archlinux.org/index.php/Ne … IP_address it works.  The problem was that I had disabled dhcpcd.  After enabling it, it seems to pick up the nameservers (my ISPs I think) automatically in resolv.conf.

Seems to work now.

Offline

Board footer

Powered by FluxBB