You are not logged in.

#1 2013-05-30 12:33:47

Swarfega
Member
Registered: 2011-08-19
Posts: 104

[SOLVED] netcfg to netctl

Just updated one of my boxes and now it has no networking. Reading the front page it suggests that netcfg is being removed anyway.

Ive done the following so far but can't get Networking working.

pacman -R netcfg
pacman -S netctl
systemctl enable netcfg
cd /etc/netctl
cp examples/ethernet-static .

Edited the file with IP details and rebooted.

Can anyone offer any assistance? Thanks.

It works manually with...

ip link set ens32 up
ip addr add x.x.x.x/24 dev ens32

Last edited by Swarfega (2013-05-30 13:05:27)

Offline

#2 2013-05-30 12:37:42

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] netcfg to netctl

Did you read the netctl wiki page and/or man pages? (I think I know the answer....)

Offline

#3 2013-05-30 12:39:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] netcfg to netctl

Offline

#4 2013-05-30 12:41:07

Swarfega
Member
Registered: 2011-08-19
Posts: 104

Re: [SOLVED] netcfg to netctl

I'll go take a look. The above came from https://wiki.archlinux.org/index.php/Be … he_network

Offline

#5 2013-05-30 12:48:30

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: [SOLVED] netcfg to netctl

Swarfega wrote:

Edited the file with IP details

Could be a typo or bits missing, but we can't tell.

What does "systemctl status netctl" show after a "systemctl restart netctl"?

Last edited by vacant (2013-05-30 12:48:46)

Offline

#6 2013-05-30 13:04:43

Swarfega
Member
Registered: 2011-08-19
Posts: 104

Re: [SOLVED] netcfg to netctl

Working now. The issue I think was I used

systemctl enable netctl

when I actually needed

netctl enable ethernet-static

followed by removing my mistake

systemctl disable netctl

Cheers for the help guys. The migration section of netctl was helpful.

Last edited by Swarfega (2013-05-30 13:05:13)

Offline

#7 2013-05-30 13:58:35

Swarfega
Member
Registered: 2011-08-19
Posts: 104

Re: [SOLVED] netcfg to netctl

Final reply. Did this again to my second box but couldn't get it to work.  The issue in the end was the example config has a mistake in it.

Description='A basic static ethernet connection'
Interface=eth0
Connection=ethernet
IP=static
Address=('192.168.1.23/24' '192.168.1.87/24')
#Routes=('192.168.0.0/24 via 192.168.1.2')
Gateway='192.168.1.1'
DNS=('192.168.1.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'

The Gateway= value was missing its () brackets.

Offline

#8 2013-05-30 17:21:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] netcfg to netctl

The config in question is provided by /etc/netctl/examples/ethernet-static . If anyone can confirm that this is a mistake, please open a bug report.

Offline

Board footer

Powered by FluxBB