You are not logged in.

#1 2019-10-19 06:09:05

vorlket
Member
Registered: 2017-09-30
Posts: 90

[SOLVED] Static network configuration

Hi How do I configure static network?

Back in 2008, the following worked:

ip link set eno1 up
systemctl start dhcpcd.service
cp /etc/netctl/examples/ethernet-static /etc/netctl/eno1

EDIT /etc/netctl/eno1:
Interface:=eno1
Connection=ethernet
IP=static
Address=(‘192.168.1.2/29’)
Gateway=('192.168.1.6')

netctl enable eno1
netctl start eno1
systemctl stop dhcpcd
systemctl disable dhcpcd

I can't find /etc/netctl.

Last edited by vorlket (2019-10-19 08:55:37)

Offline

#2 2019-10-19 06:37:56

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: [SOLVED] Static network configuration

Back in 2008, the following worked

Ftr, your memory is cheating on you here - this cannot have worked and will not today.

a) don't run multiple network managing services, netctl and dhcpcd will conflict - netctl will invoke dhcpcd as it sees fit (you did that after starting netctl, but there's no point in starting dhcpcd at all. Also don't bring the interface up, netctl won't like that)
b) dhcp and static IPs are pretty much mutually exclusive concepts
c) what do you mean "can't find"?

pacman -Qikk netctl

d) https://wiki.archlinux.org/index.php/Ne … e_profiles

Offline

#3 2019-10-19 06:46:06

vorlket
Member
Registered: 2017-09-30
Posts: 90

Re: [SOLVED] Static network configuration

Ah I have to install netctl. How do you start network after fresh installation?

Offline

#4 2019-10-19 06:54:09

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: [SOLVED] Static network configuration

If you didn't install any further packages: https://wiki.archlinux.org/index.php/Ne … IP_address
You can also boot the live iso, arch-chroot into the installed system and supply yourself w/ some network managers from there.

Offline

#5 2019-10-19 07:58:32

vorlket
Member
Registered: 2017-09-30
Posts: 90

Re: [SOLVED] Static network configuration

Installed netctl and then configured following https://wiki.archlinux.org/index.php/Ne … e_profiles. When netctl start eno1, it says "Job for netctl@eno1.service failed because the control process exited with error code". What's going on?

Last edited by vorlket (2019-10-19 08:21:16)

Offline

#6 2019-10-19 08:04:37

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: [SOLVED] Static network configuration

No idea, output for

systemctl status netctl@eno1

?

Offline

#7 2019-10-19 08:30:15

vorlket
Member
Registered: 2017-09-30
Posts: 90

Re: [SOLVED] Static network configuration

* netctl@eno1.service - A basic static ethernet connection
    Loaded: loaded (/usr/lib/systemd/system/netctl@.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/netctl@eno1.service.d
                `-profile.conf
    Active: failed (Result: exit-code) since Sat 2019-10-19 19:20:58 AEDT; 35s ago
        Docs: man:netctl.profile(5)
  Process: 617 ExecStart=/usr/lib/netctl/network start eno1 (code=exited, status=1/FAILURE)
Main PID: 617 (code=exited, status=1/FAILURE)

Oct 19 19:20:53 server systemd[1]: Starting A basic static ethernet connection...
Oct 19 19:20:53 server network[617]: Starting network profile 'eno1'...
Oct 19 19:20:58 server network[617]: No connection found on interface 'eno1' (timeout)
Oct 19 19:20:53 server network[617]: Failed to bring the network up for profile 'eno1'
Oct 19 19:20:53 server systemd[1]: netctl@eno1.service: Main process exited, code=exited, status=1/FAILURE
Oct 19 19:20:53 server systemd[1]: netctl@eno1.service: Failed with result 'exit-code'.
Oct 19 19:20:53 server systemd[1]: Failed to start A basic static ethernet connection.

Offline

#8 2019-10-19 08:35:07

vorlket
Member
Registered: 2017-09-30
Posts: 90

Re: [SOLVED] Static network configuration

https://wiki.archlinux.org/index.php/Ne … _a_profile

SkipNoCarrier=yes does the trick to connect to router but it doesn't connect to the internet.

ping www.example.com says "ping: www.example.com: Temporary failure in name resolution".

Last edited by vorlket (2019-10-19 08:43:01)

Offline

#9 2019-10-19 08:55:13

vorlket
Member
Registered: 2017-09-30
Posts: 90

Re: [SOLVED] Static network configuration

Offline

Board footer

Powered by FluxBB