Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2012 10:58:21 +0200
From:      Monthadar Al Jaberi <monthadar@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   netstat -r do not show bridge0 as the interface for default route.
Message-ID:  <CA%2BsBSo%2BPmYjn8uAp_fNuWj_P1Q3gbZSud_rQgZuK9MLRhWQgkQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I am still trying to learn how bridge(4) work internally. But I found
something that seems strange.

this is my rc.conf file:
defaultrouter=172.16.0.1
fsck_y_enable="YES"
inet_enable="YES"
sshd_enable="YES"
ntpdate_enable="YES"
ntpdate_hosts=172.16.0.1
rpcbind_enable="YES"
nfs_client_enable="YES"
rpc_lock_enable="YES"
rpc_statd_enable="YES"
sendmail_enable="NO"
cloned_interfaces="bridge0"
ifconfig_bridge0="inet 172.16.3.22 addm arge0"
ifconfig_arge0="up"



and when I type netstat -r it shows that the default route uses arge0
as the interface and not bridge0:
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            zippi.by.dial      UGS         0        0  arge0
localhost          link#5             UH          0        0    lo0
172.16.0.0         link#3             U           0     8874  arge0
phone3022.by.dial  link#3             UHS         1        0    lo0

Internet6:
Destination        Gateway            Flags      Netif Expire
::                 localhost          UGRS        lo0
localhost          link#5             UH          lo0
::ffff:0.0.0.0     localhost          UGRS        lo0
fe80::             localhost          UGRS        lo0
fe80::%arge0       link#3             U         arge0
fe80::215:6dff:fec link#3             UHS         lo0
fe80::%lo0         link#5             U           lo0
fe80::1%lo0        link#5             UHS         lo0
ff01::%arge0       fe80::215:6dff:fec U         arge0
ff01::%lo0         localhost          U           lo0
ff02::             localhost          UGRS        lo0
ff02::%arge0       fe80::215:6dff:fec U         arge0
ff02::%lo0         localhost          U           lo0

Shouldnt it be bridge0 because it has the ip address and it knows
which port a packet should go on?

ifconfig:
ath0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 00:15:6d:67:21:73
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier
arge0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST>
metric 0 mtu 1500
        options=80000<LINKSTATE>
        ether 00:15:6d:c8:c9:2e
        inet6 fe80::215:6dff:fec8:c92e%arge0 prefixlen 64 tentative scopeid 0x3
        inet 172.16.3.22 netmask 0xffff0000 broadcast 172.16.255.255
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
arge1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:15:6d:c8:c9:2f
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet 1000baseT <full-duplex>
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:24:4d:fd:75:00
        inet 172.16.3.22 netmask 0xffff0000 broadcast 172.16.255.255
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: arge0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 3 priority 128 path cost 200000

For reference I am running current on an RSPRO using nfs mount.

br,

-- 
Monthadar Al Jaberi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BsBSo%2BPmYjn8uAp_fNuWj_P1Q3gbZSud_rQgZuK9MLRhWQgkQ>