weird netstat -i IF output in bridge configuration.
Stefan Lambrev
stefan.lambrev at moneybookers.com
Mon Jan 28 08:23:22 PST 2008
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
More information about the freebsd-current
mailing list