Re: mcx(4) and bridge(4)

Hauke Fath <[email protected]>
Newsgroups gmane.os.netbsd.devel.network
Message-ID <[email protected]>
On 4/11/25 19:12, Manuel Bouyer wrote:
> I'd say the mcx driver fails to receive packets that are not for
> its owm mac address. Maybe an issue with promiscious mode.

That sounds plausible. mcx0 claims it's running in promiscuous mode, though.

> What does ifconfig in the dom0 say ?

% ifconfig mcx0
mcx0: flags=0x8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
         capabilities=0x3ff00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx>
  
capabilities=0x3ff00<UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx>
         capabilities=0x3ff00<UDP6CSUM_Rx,UDP6CSUM_Tx>
         enabled=0x3ff00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx>
         enabled=0x3ff00<UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx>
         enabled=0x3ff00<UDP6CSUM_Rx,UDP6CSUM_Tx>
         ec_capabilities=0x7<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
         ec_enabled=0x1<VLAN_MTU>
         address: 98:03:9b:0e:f0:32
         media: Ethernet autoselect (10GBASE-CR1 full-duplex)
         status: active
         inet6 fe80::9a03:9bff:fe0e:f032%mcx0/64 flags 0 scopeid 0x1
% ifconfig vlan2
vlan2: flags=0x8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
         capabilities=0x3ff00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx>
  
capabilities=0x3ff00<UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx>
         capabilities=0x3ff00<UDP6CSUM_Rx,UDP6CSUM_Tx>
         enabled=0
         vlan: 2 parent: mcx0
         address: 98:03:9b:0e:f0:32
         status: active
         inet6 fe80::9a03:9bff:fe0e:f032%vlan2/64 flags 0 scopeid 0x6
         inet 130.83.AA.BB/27 broadcast 130.83.AA.CC flags 0

% brconfig bridge0
bridge0: flags=41<UP,RUNNING>
         Configuration:
                 priority 32768 hellotime 2 fwddelay 15 maxage 20
                 ipfilter disabled flags 0x0
         Interfaces:
                 xvif2i0 flags=3<LEARNING,DISCOVER>
                         port 14 priority 128
                 vlan2 flags=3<LEARNING,DISCOVER>
                         port 6 priority 128
         Address cache (max cache: 100, timeout: 1200):
                 00:16:3e:10:4b:11 xvif2i0 1182 flags=0<>
                 00:16:3e:17:4c:11 vlan2 918 flags=0<>
                 a0:36:9f:25:62:26 vlan2 518 flags=0<>
                 00:30:48:59:e8:c2 vlan2 1134 flags=0<>
                 00:16:3e:17:4b:11 vlan2 19 flags=0<>
                 00:25:90:aa:bf:8a vlan2 1162 flags=0<>
                 00:30:48:58:5f:64 vlan2 1069 flags=0<>
                 a0:36:9f:23:22:7a vlan2 809 flags=0<>
                 00:16:3e:00:4a:11 vlan2 631 flags=0<>
                 00:30:48:7e:04:b8 vlan2 886 flags=0<>
                 00:25:90:82:33:46 vlan2 1188 flags=0<>
                 24:8a:07:ba:61:e0 vlan2 1200 flags=0<>
                 00:16:3e:00:47:11 vlan2 1133 flags=0<>
                 14:23:f2:a5:bd:50 vlan2 1199 flags=0<>
                 00:16:3e:00:4b:11 vlan2 1062 flags=0<>
%

Cheerio,
Hauke

-- 
      The ASCII Ribbon Campaign                    Hauke Fath
()     No HTML/RTF in email	        Institut für Nachrichtentechnik
/\     No Word docs in email                     TU Darmstadt
      Respect for open standards              Ruf +49-6151-16-21344
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.