You are not logged in.
Hi,
I've never been able to set up a simple static IP configuration for my wired network adapter. Now I need to in order to reset a router I have at home. I use (only) netctl profiles to manage my wireless and wired network connections. I've Googled for solutions to my problem, and the most common solution (disable dhcpcd) does not apply to me, since dhcpcd is not running when I try to enable my static IP profile. Can you guys see what I am doing wrong?
I ran the following commands to generate debugging information.
systemctl --type=service --no-pager
ip addr
cat /etc/netctl/wired-static
netctl start wired-static
systemctl --type=service --no-pager
systemctl status netctl@wired\x2dstatic.service
journalctl -x -n 26 --no-pager
Here is the output.
[root@fenrir ~]# systemctl --type=service --no-pager
UNIT LOAD ACTIVE SUB DESCRIPTION
acpid.service loaded active running ACPI event daemon
dbus.service loaded active running D-Bus System Message Bus
getty@tty1.service loaded active running Getty on tty1
kmod-static-nodes.service loaded active exited Create list of required static device nodes for the
slim.service loaded active running SLiM Simple Login Manager
systemd-backlight@backlight:acpi_video0.service loaded active exited Load/Save Screen Backlight Brightness of backlight:
systemd-backlight@backlight:intel_backlight.service loaded active exited Load/Save Screen Backlight Brightness of backlight
systemd-fsck@dev-sda1.service loaded active exited File System Check on /dev/sda1
systemd-fsck@dev-sda3.service loaded active exited File System Check on /dev/sda3
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-random-seed.service loaded active exited Load/Save Random Seed
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-rfkill@rfkill0.service loaded active exited Load/Save RF Kill Switch Status of rfkill0
systemd-rfkill@rfkill1.service loaded active exited Load/Save RF Kill Switch Status of rfkill1
systemd-rfkill@rfkill2.service loaded active exited Load/Save RF Kill Switch Status of rfkill2
systemd-rfkill@rfkill3.service loaded active exited Load/Save RF Kill Switch Status of rfkill3
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manager
systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown
systemd-user-sessions.service loaded active exited Permit User Sessions
systemd-vconsole-setup.service loaded active exited Setup Virtual Console
user@1000.service loaded active running User Manager for UID 1000
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
26 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
[root@fenrir ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 20:cf:30:58:d9:30 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 1c:4b:d6:40:e3:c2 brd ff:ff:ff:ff:ff:ff
[root@fenrir ~]# cat /etc/netctl/wired-static
Description='A basic static ethernet connection'
Interface=enp1s0
Connection=ethernet
IP=static
Address="192.168.1.23/24"
[root@fenrir ~]# journalctl -x -n 13 --no-pager
-- Logs begin at Fri 2014-01-10 12:13:41 CET, end at Tue 2014-06-17 16:09:10 CEST. --
Jun 17 16:08:55 fenrir systemd[1]: Started User Manager for UID 1000.
-- Subject: Unit user@1000.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit user@1000.service has finished starting up.
--
-- The start-up result is done.
Jun 17 16:08:55 fenrir slim[253]: /usr/bin/xauth: file /home/willard/.Xauthority does not exist
Jun 17 16:08:55 fenrir slim[253]: setterm: $TERM is not defined.
Jun 17 16:08:55 fenrir slim[253]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Jun 17 16:08:55 fenrir slim[253]: > Warning: Symbol map for key <RALT> redefined
Jun 17 16:08:55 fenrir slim[253]: > Using last definition for conflicting fields
Jun 17 16:08:55 fenrir slim[253]: > Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
Jun 17 16:08:55 fenrir slim[253]: > Ignoring extra symbols
Jun 17 16:08:55 fenrir slim[253]: Errors from xkbcomp are not fatal to the X server
Jun 17 16:09:10 fenrir sudo[325]: willard : TTY=pts/0 ; PWD=/home/willard ; USER=root ; COMMAND=/usr/bin/su
Jun 17 16:09:10 fenrir sudo[325]: pam_unix(sudo:session): session opened for user root by willard(uid=0)
Jun 17 16:09:10 fenrir su[326]: (to root) willard on pts/0
Jun 17 16:09:10 fenrir su[326]: pam_unix(su:session): session opened for user root by willard(uid=0)
[root@fenrir ~]# netctl start wired-static
Job for netctl@wired\x2dstatic.service failed. See 'systemctl status netctl@wired\x2dstatic.service' and 'journalctl -xn' for details.
[root@fenrir ~]# systemctl --type=service --no-pager
UNIT LOAD ACTIVE SUB DESCRIPTION
acpid.service loaded active running ACPI event daemon
dbus.service loaded active running D-Bus System Message Bus
getty@tty1.service loaded active running Getty on tty1
kmod-static-nodes.service loaded active exited Create list of required static device nodes for th
●netctl@wired\x2dstatic.service loaded failed failed Networking for netctl profile wired-static
slim.service loaded active running SLiM Simple Login Manager
systemd-backlight@backlight:acpi_video0.service loaded active exited Load/Save Screen Backlight Brightness of backlight
systemd-backlight@backlight:intel_backlight.service loaded active exited Load/Save Screen Backlight Brightness of backlight
systemd-fsck@dev-sda1.service loaded active exited File System Check on /dev/sda1
systemd-fsck@dev-sda3.service loaded active exited File System Check on /dev/sda3
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-random-seed.service loaded active exited Load/Save Random Seed
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-rfkill@rfkill0.service loaded active exited Load/Save RF Kill Switch Status of rfkill0
systemd-rfkill@rfkill1.service loaded active exited Load/Save RF Kill Switch Status of rfkill1
systemd-rfkill@rfkill2.service loaded active exited Load/Save RF Kill Switch Status of rfkill2
systemd-rfkill@rfkill3.service loaded active exited Load/Save RF Kill Switch Status of rfkill3
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manager
systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown
systemd-user-sessions.service loaded active exited Permit User Sessions
systemd-vconsole-setup.service loaded active exited Setup Virtual Console
user@1000.service loaded active running User Manager for UID 1000
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
27 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
[root@fenrir ~]# systemctl status netctl@wired\x2dstatic.service
● netctl@wiredx2dstatic.service - Networking for netctl profile wiredx2dstatic
Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
Active: inactive (dead)
Docs: man:netctl.profile(5)
[root@fenrir ~]# journalctl -x -n 26 --no-pager
-- Logs begin at Fri 2014-01-10 12:13:41 CET, end at Tue 2014-06-17 16:18:47 CEST. --
Jun 17 16:08:55 fenrir systemd[1]: Started User Manager for UID 1000.
-- Subject: Unit user@1000.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit user@1000.service has finished starting up.
--
-- The start-up result is done.
Jun 17 16:08:55 fenrir slim[253]: /usr/bin/xauth: file /home/willard/.Xauthority does not exist
Jun 17 16:08:55 fenrir slim[253]: setterm: $TERM is not defined.
Jun 17 16:08:55 fenrir slim[253]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Jun 17 16:08:55 fenrir slim[253]: > Warning: Symbol map for key <RALT> redefined
Jun 17 16:08:55 fenrir slim[253]: > Using last definition for conflicting fields
Jun 17 16:08:55 fenrir slim[253]: > Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
Jun 17 16:08:55 fenrir slim[253]: > Ignoring extra symbols
Jun 17 16:08:55 fenrir slim[253]: Errors from xkbcomp are not fatal to the X server
Jun 17 16:09:10 fenrir sudo[325]: willard : TTY=pts/0 ; PWD=/home/willard ; USER=root ; COMMAND=/usr/bin/su
Jun 17 16:09:10 fenrir sudo[325]: pam_unix(sudo:session): session opened for user root by willard(uid=0)
Jun 17 16:09:10 fenrir su[326]: (to root) willard on pts/0
Jun 17 16:09:10 fenrir su[326]: pam_unix(su:session): session opened for user root by willard(uid=0)
Jun 17 16:18:41 fenrir systemd[1]: Starting system-netctl.slice.
-- Subject: Unit system-netctl.slice has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit system-netctl.slice has begun starting up.
Jun 17 16:18:41 fenrir systemd[1]: Created slice system-netctl.slice.
-- Subject: Unit system-netctl.slice has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit system-netctl.slice has finished starting up.
--
-- The start-up result is done.
Jun 17 16:18:41 fenrir systemd[1]: Starting Networking for netctl profile wired-static...
-- Subject: Unit netctl@wired\x2dstatic.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit netctl@wired\x2dstatic.service has begun starting up.
Jun 17 16:18:41 fenrir network[442]: Starting network profile 'wired-static'...
Jun 17 16:18:41 fenrir kernel: atl1c 0000:01:00.0: irq 46 for MSI/MSI-X
Jun 17 16:18:41 fenrir kernel: IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
Jun 17 16:18:47 fenrir network[442]: No connection found on interface 'enp1s0' (timeout)
Jun 17 16:18:47 fenrir network[442]: Failed to bring the network up for profile 'wired-static'
Jun 17 16:18:47 fenrir systemd[1]: netctl@wired\x2dstatic.service: main process exited, code=exited, status=1/FAILURE
Jun 17 16:18:47 fenrir systemd[1]: Failed to start Networking for netctl profile wired-static.
-- Subject: Unit netctl@wired\x2dstatic.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit netctl@wired\x2dstatic.service has failed.
--
-- The result is failed.
Jun 17 16:18:47 fenrir systemd[1]: Unit netctl@wired\x2dstatic.service entered failed state.
Jun 17 16:18:47 fenrir systemd[1]: Starting Network.
-- Subject: Unit network.target has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit network.target has begun starting up.
Jun 17 16:18:47 fenrir systemd[1]: Reached target Network.
-- Subject: Unit network.target has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit network.target has finished starting up.
--
-- The start-up result is done.
Last edited by willardthor (2014-06-17 14:37:20)
Offline
There is no link. Bring the link up manually and check status with
ip link set up enp1s0
ip link enp1s0
If the link fails to come up (state other than "UP") it is likely a driver issue. If the link comes up (state UP) but status has "NO-CARRIER" it is likely a hardware issue, either one of the endpoints or the cable. First thing I would try in this case is a different cable.
You can tell netctl to bring the interface up anyway with the option in /etc/netctl/wired-static
SkipNoCarrier=yes
However, the interface will not work until the link is fixed.
Offline