Date: Mon, 16 Jan 2023 09:30:21 +0000 From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 268976] Traffic will not route across two bridges on the same /8 Message-ID: <bug-268976-7501-Mi6kHyZZKH@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-268976-7501@https.bugs.freebsd.org/bugzilla/> References: <bug-268976-7501@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268976 --- Comment #1 from Zhenlei Huang <zlei@FreeBSD.org> --- > db { > # For reproducing the bug > #$ip =3D "10.10.2.32"; > $ip =3D "192.168.100.32"; > ... > exec.start =3D "/sbin/ifconfig epair${id}b ${ip}"; > exec.start +=3D "/sbin/route add default ${private_gw}"; > ... > } The netmask assigned to the epair interface in jails is apparently wrong. You dmz (bridge0) network is 10.10.1.1/24, but you did it `/sbin/ifconfig epair${id}b 10.10.2.32` without netmask / prefixlen, then the netmask / prefixlen will end up with `255.0.0.0` or `/8`, that is default for classful address `10.x.x.x` . As for `192.168.100.32` the prefixlen is default 24. Try classless (CIDR) addresses, example for db `$ip =3D "10.10.2.32/24" . Good luck! --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268976-7501-Mi6kHyZZKH>