Solved question about bridge ipv6 (SLAAC) gateway in freebsd15 ?

dear all:
my pc have only one physical network card em0 , then i have create bridge and add em0 as memeber . let this bridge get ipv4 and ipv6 (SLAAC) . this bridge get ipv4 and gateway was normal....but this bridge can get ipv6 with ipv6 gateway correctly ....below was my configuration :

1. add net.link.bridge.inherit_mac=1 to /etc/sysctl.conf

2.
Code:
ifconfig_em0="-tso -vlanhwtso up"
create_args_bridge5="inet6 auto_linklocal -ifdisabled addm em0 name public"
cloned_interfaces="bridge5"
ifconfig_public="inet 10.0.0.7/24"
defaultrouter="10.0.0.1"
ifconfig_public_ipv6="inet6 accept_rtadv"

i have read booking : https://wiki.freebsd.org/crest/the-correct-way-to-configure-bridges-in-freebsd-for-ipv6-and-ipv4

the pc boot finished . pc will get ipv6 and ipv6 gateway always . .but after 5minutes. the ipv6 gateway disappeared .....please help me. thanks..
 
From the linked wiki page, did you also enable rtsold(8)?

Code:
   6 sysrc rtsold_flags='-i -m bridge0'
   7 sysrc rtsold_enable='YES'
 
From the linked wiki page, did you also enable rtsold(8)?

Code:
   6 sysrc rtsold_flags='-i -m bridge0'
   7 sysrc rtsold_enable='YES'
dear SirDice :
i have fellow https://wiki.freebsd.org/crest/the-correct-way-to-configure-bridges-in-freebsd-for-ipv6-and-ipv4 ... but i still not get stable ipv6 gateway for my bridge ....
if i want to ipv6 work normal . i need to configure a ipv6_defaultrouter="fe80::1$xxxxx" by manual..
if i configure ipv6 default gateway manuallly...i will get double gateway.. please see below inform.
Internet6:
Destination Gateway Flags Netif Expire
::/96 link#2 URS lo0
default fe80::1%public UG public
default fe80::1%public UGS public
::1 link#2 UHS lo0
 
Oh, right! I always forget about that one. I had to configure it for my fibre connection at home too.

Code:
mpd_enable="YES"
netwait_if="ng0"
rtsold_enable="YES"
ipv6_cpe_wanif="ng0"
ipv6_defaultrouter="-iface ng0"
dhcp6c_interfaces="ng0"
rtadvd_enable="YES"
rtadvd_interfaces="em1.10 em1.11 em1.20"
DHCPv6 -> PPPoE -> VLAN -> physical interface
It was ridiculously complex setting this up, but I refuse to use that locked down router the ISP supplies 😁
 
Dear SirDice :
now my bridge was working . but new problem coming .... when i start vm or stop vm . the bridge will lost default router about 4 seconds...then autocome back....jesus.....
16 bytes from 2620:1ec:33:1::10, icmp_seq=31 hlim=48 time=91.120 ms
16 bytes from 2620:1ec:33:1::10, icmp_seq=32 hlim=48 time=92.485 ms
ping: sendmsg: Network is down
ping: wrote bing.com 16 chars, ret=-1
ping: sendmsg: Network is down
ping: wrote bing.com 16 chars, ret=-1
ping: sendmsg: Network is down
ping: wrote bing.com 16 chars, ret=-1
ping: sendmsg: Network is down
ping: wrote bing.com 16 chars, ret=-1
16 bytes from 2620:1ec:33:1::10, icmp_seq=37 hlim=48 time=92.775 ms
16 bytes from 2620:1ec:33:1::10, icmp_seq=38 hlim=48 time=92.720 ms
16 bytes from 2620:1ec:33:1::10, icmp_seq=39 hlim=48 time=92.859 ms

do you know what happened to me ?

{only one physical network card} em0 ----as member----->bridge5<--------all vms and jails

em0 no IP configured ....
bridge5 have daul-stack (ipv4 static and ipv6 SLAAC) . thanks.
 
Back
Top