You are not logged in.
I am having a network problem in a new arch-linux installation. I have a static
ethernet connection. I created a ethernet-static profile in /etc/netctl.
Running the profile (sudo netctl restart ethernet-static) gives me access to
the internet for about a minute before it goes down. Rerunning the profile
does the same again. Please let me know if I need to post more information.
Thanks in advance.
Last edited by tima04 (2015-12-30 19:35:33)
Offline
You really don't need netctl for a static ethernet connection, just `enable` dhcpcd@<interface name>.service
EDIT: Make sure you stop netctl completely first, only a single networking service should be running for each interface.
Last edited by Head_on_a_Stick (2015-12-30 13:38:17)
Jin, Jîyan, Azadî
Offline
If you continue using netctl, rename the profile ethernet_static or something else without any dashes. Dashes have a special meaning to systemd:
# netctl list
net1
* net2
net0
* net3_157
net1-test
# netctl start net1-test
# systemctl status netctl@net1-test
● netctl@net1-test.service - Networking for netctl profile net1/test
Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static; vendor preset: disabled)
Active: inactive (dead)
Docs: man:netctl.profile(5)
Notice how systemctl output reads "Networking for netctl profile net1/test".
# mv /etc/netctl/net1-test /etc/netctl/net1_test
# netctl start net1_test
# systemctl status netctl@net1_test
● netctl@net1_test.service - Networking for netctl profile net1_test
Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static; vendor preset: disabled)
Active: active (exited) since Wed 2015-12-30 09:09:03 EST; 6s ago
Docs: man:netctl.profile(5)
Process: 1724 ExecStart=/usr/lib/network/network start %I (code=exited, status=0/SUCCESS)
Main PID: 1724 (code=exited, status=0/SUCCESS)
Once you've done that, post the output of systemctl status netctl@ethernet_static or such. There may also be more information in the journal.
Last edited by alphaniner (2015-12-30 14:18:49)
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Thanks both.
@Heads_on_a_Stick: Following your advise gave me a internet for about a minute after boot up and then it disappear.
@alphaniner: I was was not using dashes but underscore but still i changed the profile name to ethernetStatic, I get the same behavior. Running systemctl status command gave me the very similar output
to yours, it's difficult to paste the whole output as I don't have internet in the relevant computer,
Offline
Regardless of the method you use, did you see anything in systemctl status output or journal after the loss of connection?
Also, just for the record, the method suggested by H_o_a_S is not a substituse for a static netctl profile. Do you know if your network is configured for static or dhcp configuration?
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Can you please post the output of find /etc/systemd/system/ ?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
@ alphaniner: I don't know if my network is configured for dhcp or static configuration, but I do
have a static ip. How can I check this?
@ ewaller:
# find /etc/systemd/system
/etc/systemd/system
/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service
/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
/etc/systemd/system/getty.target.wants
/etc/systemd/system/getty.target.wants/getty@tty1.service
/etc/systemd/system/multi-user.target.wants
/etc/systemd/system/multi-user.target.wants/NetworkManager.service
/etc/systemd/system/multi-user.target.wants/remote-fs.target
/etc/systemd/system/multi-user.target.wants/netctl@ethernetStatic.service
/etc/systemd/system/display-manager.service
/etc/systemd/system/netctl@ethernet\x2dstatic.service
/etc/systemd/system/netctl@ethernetStatic.service
Offline
Thought so. You have multiple things trying to control your wifi. Stop and disable all NetworkManager stuff if you want to use netctl. Conversely, stop and disable all netctl stuff if you want to use NetworkManager.
What is /etc/systemd/system/netctl@ethernet\x2dstatic.service for?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Many thanks, disabling NetworkManager solved it. I don't know what /etc/systemd/system/netctl@ethernet\x2dstatic.service is for?
Thanks again.
PS: how can mark this solved, this is my first time here.
Last edited by tima04 (2015-12-30 17:20:18)
Offline
Edit the first post in the thread. There is an option to edit the thread title only on the first post. Just prepend [SOLVED] to the title.
I think that service may just be an artifact of some of your experiments. You can probably disable it. What is the output of
ls -l /etc/systemd/system/netctl@ethernet\x2dstatic.service
??
Lets see where it links.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
strange:
# ls -l /etc/systemd/system/netctl@ethernet\x2dstatic.service
ls: cannot access /etc/systemd/system/netctl@ethernetx2dstatic.service: No such file or directory
Offline
Okay, how about ls -l /etc/systemd/system/ ?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
That must be an artefact of having enabled profile "ethernet-static", though I don't know why it didn't get removed when the symlink did.
Last edited by alphaniner (2015-12-30 19:51:39)
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline