[arch-general] Can not assign static IP address with net-auto-wired.service
Hello, I am having a trouble configuring static IP address on fresh arch installation. As beginners guide point, I installed ifplugd (with dhcp), copied ethernet-static in /etc/network.d. Here is my /etc/network.d/ethernet-static CONNECTION='ethernet' DESCRIPTION='A basic static ethernet connection using iproute' INTERFACE='eth0' IP='static' ADDR='129.82.47.19' ROUTES=('129.82.44.0/22 via 129.82.44.1') GATEWAY='129.82.44.1' DNS=('129.82.45.181') ## For IPv6 autoconfiguration #IP6=stateless ## For IPv6 static address configuration #IP6='static' #ADDR6=('1234:5678:9abc:def::1/64' '1234:3456::123/96') #ROUTES6=('abcd::1234') #GATEWAY6='1234:0:123::abcd' systemctl enable net-auto-wired.service systemctl start net-auto-wired.service fails with a error "Network is unreachable, Adding gateway 129.82.44.1 failed". $ cat /etc/conf.d/netcfg NETWORKS=(last) WIRED_INTERFACE="eth0" WIRELESS_INTERFACE="wlan0" #AUTO_PROFILES=("profile1" "profile2") My network settings are: Ip: 129.82.47.19/22 Gw: 129.82.44.1 DNS: 129.82.45.181 Any help is appreciated. Thank you.
On Thu, Nov 15, 2012 at 4:51 PM, Mikhail Strizhov <mikhailstrizhov@gmail.com> wrote:
ROUTES=('129.82.44.0/22 via 129.82.44.1')
You don't need this - it's for extra static routes. netcfg will set up the default route for you. You do need to add "NETMASK=22" to your config, otherwise netcfg assumes it to be a /24 network and will set up a wrong default route.
On Thu 15 Nov 14:51, Mikhail Strizhov wrote:
Hello,
I am having a trouble configuring static IP address on fresh arch installation.
As beginners guide point, I installed ifplugd (with dhcp), copied ethernet-static in /etc/network.d. Here is my /etc/network.d/ethernet-static
You installed netcfg package, right?
On 11/16/2012 08:51 AM, Mikhail Strizhov wrote:
CONNECTION='ethernet' DESCRIPTION='A basic static ethernet connection using iproute' INTERFACE='eth0' IP='static' ADDR='129.82.47.19' ROUTES=('129.82.44.0/22 via 129.82.44.1') GATEWAY='129.82.44.1'
systemctl start net-auto-wired.service fails with a error "Network is unreachable, Adding gateway 129.82.44.1 failed".
You should set ip netmask (now it is 24 or 32).
participants (4)
-
Ephe Caff
-
Mikhail Strizhov
-
Ray Kohler
-
Thanos Zygouris