You are not logged in.
Pages: 1
Every times when I boot the system, i need to do this comands to my net works:
# ip link set enp0s3 up
# dhcpcd enp0s3 -K
How can I do this permanent?
Ps> I'm running Arch under VirtualBox to learn, I don't know if has differences
Last edited by MaykeFA (2015-01-31 23:49:24)
Offline
# systemctl enable dhcpcd.service
Offline
Unfortunately don't worked. I've done that: systemctl enable dhcpcd.service, but when I rebooted the system, I had to configure it again.
[root@mayke-notebook mayke]# ping -c www.google.com
ping: unknown host www.google.com
[root@mayke-notebook mayke]# systemctl enable dhcpcd.service
[root@mayke-notebook mayke]# ping -c www.google.com
ping: unknown host www.google.com
[root@mayke-notebook mayke]# systemctl enable dhcpcd@enp0s3.service
[root@mayke-notebook mayke]# ping -c www.google.com
ping: unknown host www.google.com
[root@mayke-notebook mayke]#
[root@mayke-notebook mayke]# ip link set enp0s3 up
[root@mayke-notebook mayke]# dhcpcd enp0s3 -K
dhcpcd[564]: control_open: Connection refused
dhcpcd[564]: version 6.6.7 starting
dhcpcd[564]: DUID 00:01:00:01:1c:5f:b8:9a:08:00:27:17:ba:ed
dhcpcd[564]: enp0s3: IAID 27:17:ba:ed
dhcpcd[564]: enp0s3: rebinding lease of 10.0.2.15
dhcpcd[564]: enp0s3: soliciting an IPv6 router
dhcpcd[564]: enp0s3: leased 10.0.2.16 for 86400 seconds
dhcpcd[564]: enp0s3: adding route to 10.0.2.0/24
dhcpcd[564]: enp0s3: adding default route via 10.0.2.2
dhcpcd[564]: enp0s3: forked to background, vhild pid 605
[root@mayke-notebook mayke]# ping -c www.google.com
PING www.google.com (74.125.196.103) 56(84) bytes of data.
64 bytes from yk-in-f103.1e100.net (74.125.196.103): icmp_seq=1 ttl=40 time=189 ms
64 bytes from yk-in-f103.1e100.net (74.125.196.103): icmp_seq=2 ttl=40 time=199 ms
64 bytes from yk-in-f103.1e100.net (74.125.196.103): icmp_seq=3 ttl=40 time=186 ms
--- www.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 186.746/191.757/199.073/5.313 ms
Last edited by MaykeFA (2015-02-01 00:58:15)
Offline
Don't post screenshots of text; paste the actual text in code tags...
And read the wiki entry on systemd.
Offline
Don't post screenshots of text; paste the actual text in code tags...
And read the wiki entry on systemd.
Sorry, I'm new here. Thanks for support!
Offline
You have to reboot after enabling the systemd module. Or you can do
systemctl start dhcpcd.service
Offline
When I configured my network device with systemd I couldn't get to work with
# systemctl enable dhcpcd.service
I had to type
# systemctl enable dhcpcd@enp0s3.service
instead.
This solved my problem, I hope it solves yours.
Last edited by pg1992 (2015-02-01 03:27:46)
Offline
Pages: 1