[Bug 268976] Traffic will not route across two bridges on the same /8
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 Jan 2023 09:30:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268976
--- Comment #1 from Zhenlei Huang <zlei@FreeBSD.org> ---
> db {
> # For reproducing the bug
> #$ip = "10.10.2.32";
> $ip = "192.168.100.32";
> ...
> exec.start = "/sbin/ifconfig epair${id}b ${ip}";
> exec.start += "/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 = "10.10.2.32/24" .
Good luck!
--
You are receiving this mail because:
You are the assignee for the bug.