You are not logged in.
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
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
Offline
Ah I have to install netctl. How do you start network after fresh installation?
Offline
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
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
No idea, output for
systemctl status netctl@eno1
?
Offline
* 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
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
https://unix.stackexchange.com/question … tion-error did the trick.
Offline