Re: weird netstat -i IF output in bridge configuration.



Err,

I found that I'm using the wrong parameter :)

Stefan Lambrev wrote:
Greetings,

While testing the bridge I noticed something interesting
netstat -w 1 -i em2 reports packets that are not passed through em2

em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=198<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:15:17:58:10:99
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
em1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=198<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:15:17:58:10:98
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
em2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:15:17:58:10:9b
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active

-em3, and em4 skipped-

bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether ea:b9:a3:31:7f:fb
inet 10.3.3.3 netmask 0xffffff00 broadcast 10.3.3.255
id 00:15:17:49:d5:3c priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:15:17:49:d5:3c priority 32768 ifcost 0 port 0
member: em1 flags=1e7<LEARNING,DISCOVER,STP,EDGE,AUTOEDGE,PTP,AUTOPTP>
port 2 priority 128 path cost 20000 proto rstp
role designated state forwarding
member: em0 flags=1e7<LEARNING,DISCOVER,STP,EDGE,AUTOEDGE,PTP,AUTOPTP>
port 1 priority 128 path cost 20000 proto rstp
role designated state forwarding

netstat -w 1 -i interface reports incomming and outgoing traffic on all interfaces even the one that are without carrier.

It seems like netstat always reports statistics from bridge0 device.

Is this expected behavior or I just hit a bug? :)

FreeBSD 7.0-RC1 #18: Sun Jan 27 18:55:16 EET 2008 amd64


--

Best Wishes,
Stefan Lambrev
ICQ# 24134177

_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: if_bridge FreeBSD 6.0 on a Broadcom interface not working
    ... So I have now duplicated that config in a Supermicro board with three PRO/1000 interfaces, using em0 and em1. ... So I tried avoiding adding em0 to the bridge, ...
    (freebsd-net)
  • weird netstat -i IF output in bridge configuration.
    ... em0: flags=8943metric 0 mtu 1500 ... em1: ... It seems like netstat always reports statistics from bridge0 device. ...
    (freebsd-current)
  • Carp wont become master
    ... machines will not become master. ... em0: flags=8943mtu 1500 ... both test1 and test2 have these sysctl variables: ... If I do a tcpdump on the em0 interface on the boxes, ...
    (freebsd-questions)
  • Re: VPN / Bridge
    ... have the same MTU, but ifconfig doesn't seem to check it. ... My setup wouldn't work as gif0 has a MTU of 1280. ... root@spike> ifconfig bridge0 create ...
    (freebsd-questions)
  • IPv6 bridge0 link-local address
    ... I've configured a bridge0 interface that bridges fxp0 and em0. ... newif fxp0 ... index: 1, mtu: 1500, metric: 0 ...
    (freebsd-net)