You are not logged in.

#1 2010-11-03 16:49:37

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

IPv6 address and IPv6 default gw - setting it at boot time

Hi,

How would be the best way of setting an specific IPv6 address plus gateway during boot?

I could use ifconfig in rc.local, but is there an Arch specific way of doing this?

Couldn't find any info on this in the wiki.

Thanks.

Ashren

Last edited by Ashren (2010-12-01 16:55:24)

Offline

#2 2010-11-04 09:40:26

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: IPv6 address and IPv6 default gw - setting it at boot time

Probably going to use ip from the iproute2 package in rc.local if anyone's interested. Ip seems more flexible than ifconfig.

Offline

#3 2010-11-04 15:37:34

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: IPv6 address and IPv6 default gw - setting it at boot time

Solved it with netcfg:

CONNECTION="ethernet"
DESCRIPTION="eth0"
INTERFACE="eth0"
IP="static"
IPCFG=("addr add 10.221.0.16/32 broadcast 10.226.0.255 dev eth0"
       "route add default via 10.221.0.12 dev eth0"

       "addr add 2A02:8E8:18:1::2/64 dev eth0"
       "route add default via 2A02:8E8:18:1::1 dev eth0")

Offline

Board footer

Powered by FluxBB