Dhcpcd

Page content

IPv6 Client mit OpenBSD

Stateless Autoconfig

ifconfig vether0 slaacd

falls der Router im RA ein “Managed Address Configuration: Set” schickt, muss der Client eine DHCPv6 Anfrage an den DHCPv6 Server schicken. OpenBSD hat das im Base System nicht drin, drum installieren wird den Client

pkg_add dhcpcd

umweg ~# cat /etc/dhcpcd.conf
ipv6only
noipv6rs
duid
persistent
option rapid_commit
require dhcp_server_identifier

# disable running any hooks; not typically required for simple DHCPv6-PD setup
script ""

# List interfaces explicitly so that dhcpcd doesn't touch others
allowinterfaces vether0

interface vether0
        # the following two lines tell dhcpcd to do router solicitation
        # itself. don't use them if using "inet6 autoconf" (slaacd)
        ipv6rs
        ia_na 1

und last but not least den Service enablen und restarten

rcctl enable dhcpcd
rcctl start dhcpcd

umweg ~# ifconfig vether0
vether0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr fe:e1:ba:xx:xx:xx
        index 8 priority 0 llprio 3
        groups: vether egress
        media: Ethernet autoselect
        status: active
        inet 130.xx.xx.xx netmask 0xffffff80 broadcast 130.xx.xx.xxx
        inet6 fe80::fce1:baff:fexx:xxxx%vether0 prefixlen 64 scopeid 0x8
        inet6 2001:67c:xxxx:xxxx:xxxx::xxx prefixlen 128 pltime 52097 vltime 84497

Any Comments ?

sha256: 2830fa757b18b96a9a8ace3c3dea222a02789980fe7acf8f48ce57306f0d8808