Date: Sun, 21 Jul 2019 20:17:08 +0200 From: Pierre Dupond <76nemo76@gmx.ch> To: freebsd-questions@freebsd.org Subject: Assign an IP address to a bridge fail Message-ID: <240458a3-789a-7368-1848-e7dc66bb2eb7@gmx.ch>
next in thread | raw e-mail | index | archive | help
Hi all, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 I am facing a stran= ge problem. Just after installing a fresh Freebsd 12 on an Pc Engines APU machine, I build a bridge with the 4 network cards. If I try to setup the address of the bridge in the "/etc/rc.conf" file, I can not ping (outside the address given to the bridge). But if I comment the line for setting the address in the file "/etc/rc.conf" and I set the address manually with the command "ifconfig bridge0 inet 172.16.0.11 netmask 255.255.254.0" the ping works. Do I have made an obvious mistake in the "rc.conf" file? What could be the reason of this problem? Any ideas would be greatly appreciated. best regards, =2D---------------------------------Content of the rc.conf file---------------------------------------------------------- root@oche:~ # cat /tmp/rc.conf cat: /tmp/rc.conf: No such file or directory root@oche:~ # cat /etc/rc.conf cloned_interfaces=3D"bridge0" ifconfig_bridge0=3D"addm igb0 addm igb1 addm igb2 addm igb3 up" ifconfig_igb0=3D"up" ifconfig_igb1=3D"up" ifconfig_igb2=3D"up" ifconfig_igb3=3D"up" ifconfig_bridge0=3D"inet 172.16.0.11 netmask 255.255.254.0" defaultrouter=3D"172.16.0.10" # #Reste de la config #------------------ # clear_tmp_enable=3D"YES" hostname=3D"oche.local.sourire.ch" sshd_enable=3D"YES" ntpdate_enable=3D"YES" ntpd_enable=3D"YES" powerd_enable=3D"YES" # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable dumpdev=3D"AUTO" =2D----------------------------------------------Info about the bridge and ping commands bridge0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ether 02:91:bc:80:6d:00 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 inet 172.16.0.11 netmask 0xffff= fe00 broadcast 172.16.1.255 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 id 00:00:00:00:00:00 priority 3= 2768 hellotime 2 fwddelay 15 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 maxage 20 holdcnt 6 proto rstp = maxaddr 2000 timeout 1200 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 root id 00:00:00:00:00:00 prior= ity 32768 ifcost 0 port 0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 groups: bridge =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 nd6 options=3D9<PERFORMNUD,IFDI= SABLED> root@oche:~ # ping 172.16.0.11 PING 172.16.0.11 (172.16.0.11): 56 data bytes 64 bytes from 172.16.0.11: icmp_seq=3D0 ttl=3D64 time=3D0.221 ms 64 bytes from 172.16.0.11: icmp_seq=3D1 ttl=3D64 time=3D0.202 ms 64 bytes from 172.16.0.11: icmp_seq=3D2 ttl=3D64 time=3D0.203 ms ^C =2D-- 172.16.0.11 ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev =3D 0.202/0.209/0.221/0.009 ms root@oche:~ # ping 172.16.0.10 PING 172.16.0.10 (172.16.0.10): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C =2D-- 172.16.0.10 ping statistics --- 4 packets transmitted, 0 packets received, 100.0% packet loss
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?240458a3-789a-7368-1848-e7dc66bb2eb7>