# cp /etc/network.d/examples/ethernet-static /etc/network.d/ethernet-static
# nano /etc/network.d/ethernet-static
CONNECTION='ethernet'
DESCRIPTION='A basic static ethernet connection using iproute'
INTERFACE='eno1'
IP='static'
ADDR='192.168.0.101'
NETMASK='255.255.255.0'
GATEWAY='192.168.0.1'
DNS=('8.8.8.8' '8.8.4.4')
# systemctl enable netcfg@ethernet-static
# systemctl start netcfg@ethernet-static
It works but after reboot i have to manually type "systemctl start netcfg@ethernet-static" or "netcfg ethernet-static" for network to get activated.
What i am doing wrong?
Edit:Solved it. Had to edit /etc/systemd/system/mutli-user.target.wants/netcfg@ethernet-static.service and add this to the unit section:
After=sys-subsystem-net-devices-eno1.device
Requires=sys-subsystem-net-devices-eno1.device
With the given information, this is a bit of a guess, but it should be as simple as this:
1) Forget about the "ip link set...", "ip addr add...", etc.
2) Create a new network profile:# cp /etc/network.d/examples/ethernet-static /etc/network.d/newprofile
3) Edit the file with the appropriate IP, Gateway, and DNS.
4) Disable your other netcfg profile, if any:# systemctl stop netcfg@otherprofile # systemctl disable netcfg@otherprofile
5) Enable your new profile:
# systemctl enable netcfg@newprofile # systemctl start netcfg@newprofile
The network should be correctly set up after reboot.
or cp /etc/network.d/examples/ethernet-static /etc/network.d/newprofile
pacman -S ifplugd
systemctl enable net-auto-wired
Thank you.
]]>Linux4life, reinstalling is never the answer. You should identify the cause of the problem.
]]>That's what I need to know - What I meant by a simple , clear way to configure it.
Gonna try it like that with a fresh install , and will let you know if
everything works as it should.
1) Forget about the "ip link set...", "ip addr add...", etc.
2) Create a new network profile:
# cp /etc/network.d/examples/ethernet-static /etc/network.d/newprofile
3) Edit the file with the appropriate IP, Gateway, and DNS.
4) Disable your other netcfg profile, if any:
# systemctl stop netcfg@otherprofile
# systemctl disable netcfg@otherprofile
5) Enable your new profile:
# systemctl enable netcfg@newprofile
# systemctl start netcfg@newprofile
The network should be correctly set up after reboot.
]]>The failure of both the automated (netcfg) and manual (ip ... ) solutions should alert you to the presence of a more fundamental issue.
This.
Your post at the moment is a rant with minimal information for us to be able to assist you. Provide us with your configuration and error message so we can actually attempt to help you out with the issues.
]]>FYI, your thread title is misleading - we already have a number of solutions for static ip configuration, one of which you have already chosen. The failure of both the automated (netcfg) and manual (ip ... ) solutions should alert you to the presence of a more fundamental issue.
]]>Firstly I configured my network using the rc.conf method which is deprecated . When that didn't work ,
I configured the network using the method : https://wiki.archlinux.org/index.php/Netcfg ( Scroll down to Automatic Operation with 1 IP )
After that it was working , then I rebooted twice within a few minutes. Upon login I ping and get : connect : Network is unreachable
I did also remove ifplugd , but I'm not 100% convinced that this might be the problem. Now I want to manually connect , using the method explained above ( which should according to me , work instantly , with no issues ) as it had done before the problem occurred.
What to do now , and how to proceed to get network access again is my problem.
]]>I've been trying out Arch for the last couple of days, got it installed and working, and then started configuring
my network. I find it very powerful and fast but there is one HUGE issue that's keeping from actually using the OS.
This issue is Networking. There seems to be various way's to configure your network , but i went through all of them
and I can't find a CLEAR, SIMPLE way to configure my networking to be static and remembered at boot. I can't express enough frustration
because configuring my network on linux has never been harder than this.....
Got it working with netcfg, but that only lasted 2 reboots, now im left
with no networking , cause the " ip link set <ip> dev eth0 up" and "ip addr add <ip/netmask/> dev eth0" (Which is the manual connect method) doesn't even work.
The manual method worked for the install BTW. Im so confused as to what the correct/arch way really is, cause the way of configuring the network seems to change
too often for me to know which method to follow and which method is actually valid at the time of install.
If there is anyone out there that knows a simple , viable and reliable method of doing this please help me out!!!
Oh and btw , network card is fine , got a second network card to make sure. And I did the install without any issues - like I said
my networking was working.I followed the arch wiki , Begginer's guide as well as the official detailed guide and tons of posts in the forums.
THANKS IN ADVANCE
]]>