Re: ipv6 gateway on different subnet

Peter Miller <[email protected]>
Newsgroups gmane.os.netbsd.devel.network
Message-ID <CAO5oKY+mDLXz78R7B6oem54fPcCeKpPVWTgaCVKhCTiQZXW61Q@mail.gmail.com>
On Wed, Jan 22, 2025 at 2:23 PM Robert Swindells <[email protected]> wrote:
> >
> > It was buried in one of the posts. I am not using dhcpcd.
>
> Have you tried using it?
>
> Maybe using:
>
> dhcpcd_flags="-C resolv.conf -6 --nodhcp6 vioif0"

dhcpcd works for ipv4 just fine, but not ipv6.

dhcpcd=YES
dhcpcd_flags="-qM vioif0"

ifconfig
vioif0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ec_capabilities=0x1<VLAN_MTU>
    ec_enabled=0
    address: 00:16:3e:d7:cf:50
    status: active
    inet6 fe80::5fcd:799d:8299:7afa%vioif0/64 flags 0 scopeid 0x1
    inet 23.173.152.249/24 broadcast 23.173.152.255 flags 0


with
dhcpcd=YES
dhcpcd_flags="-qM -6 vioif0"

vioif0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ec_capabilities=0x1<VLAN_MTU>
    ec_enabled=0
    address: 00:16:3e:d7:cf:50
    status: active
    inet6 fe80::5fcd:799d:8299:7afa%vioif0/64 flags 0 scopeid 0x1


I did not see --nodhcp6 option in the man page, but adding it didn't work.

I also tried with ip6mode="autohost" which did not work.

-- 
Thanks
Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.