Browse Source

netctl: Add and enable by default a basic DHCP con

Jakub Valenta 1 year ago
parent
commit
14d797762f
3 changed files with 12 additions and 14 deletions
  1. 11 0
      src/etc/netctl/ethernet-dhcp
  2. 0 13
      src/etc/netctl/example
  3. 1 1
      src/etc/netctl/my-network

+ 11 - 0
src/etc/netctl/ethernet-dhcp

@@ -0,0 +1,11 @@
+Description='A basic dhcp ethernet connection'
+Interface=eth0
+Connection=ethernet
+IP=dhcp
+#DHCPClient=dhcpcd
+#DHCPReleaseOnStop=no
+## for DHCPv6
+#IP6=dhcp
+#DHCP6Client=dhclient
+## for IPv6 autoconfiguration
+#IP6=stateless

+ 0 - 13
src/etc/netctl/example

@@ -1,13 +0,0 @@
-Description='A simple WPA encrypted wireless connection using a static IP'
-Interface=wlan0
-Connection=wireless
-Security=wpa
-ESSID='MyNetwork'
-Key='WirelessKey'
-#IP=dhcp
-IP=static
-Address='192.168.1.23/24'
-Gateway='192.168.1.1'
-DNS=('192.168.1.1')
-# Uncomment this if your ssid is hidden
-#Hidden=yes

+ 1 - 1
src/etc/netctl/my-network

@@ -1 +1 @@
-example
+ethernet-dhcp