[arch-general] Can not assign static IP address with net-auto-wired.service

Mikhail Strizhov mikhailstrizhov at gmail.com
Thu Nov 15 16:51:04 EST 2012


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.


More information about the arch-general mailing list