From owner-freebsd-net@FreeBSD.ORG Wed Jun 27 08:58:22 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5611106566C for ; Wed, 27 Jun 2012 08:58:22 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9D9C98FC0A for ; Wed, 27 Jun 2012 08:58:22 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so1401797pbb.13 for ; Wed, 27 Jun 2012 01:58:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=btAy5aB7LgkNfnFiLkeTeFUjUpmu8dh7HF4ZmHU9TY4=; b=k5r50GzeLx8CHdOsyU+8pS2Sne7GjU+YIuFbDsoDoViN6HUuC3qJ0yN1xQzXw3Btql EnAT/hUuYJT3I7sUYZ6rAnobB+3MEcH/tvvDdMmQCfUSKi5fEUBDDiYe0jXhISq4RJaG DR7iYsmL968tmXn2pRNW2iey1VgTAaEd3qqXpq6S3I0VnuBWBNPBthmwtwh512hQaNxX xQePJyqkUNaGRnu1GgIqlPdWB/te3wbzkR1nR0KDKPjaQEmCYkI502b3986l+oZXOjtb aWDcUpJ8f1l1SDUTopPzdJyaRgJAGTgSf3ZxX0J83A6bp813cUHqDki2tluQuzfWrNne Oobw== MIME-Version: 1.0 Received: by 10.68.231.8 with SMTP id tc8mr60335813pbc.140.1340787501836; Wed, 27 Jun 2012 01:58:21 -0700 (PDT) Received: by 10.68.30.228 with HTTP; Wed, 27 Jun 2012 01:58:21 -0700 (PDT) Date: Wed, 27 Jun 2012 10:58:21 +0200 Message-ID: From: Monthadar Al Jaberi To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: netstat -r do not show bridge0 as the interface for default route. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2012 08:58:22 -0000 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 metric 0 mtu 2290 ether 00:15:6d:67:21:73 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier arge0: flags=8943 metric 0 mtu 1500 options=80000 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 media: Ethernet autoselect (100baseTX ) status: active arge1: flags=8802 metric 0 mtu 1500 ether 00:15:6d:c8:c9:2f nd6 options=29 media: Ethernet 1000baseT status: active lo0: flags=8049 metric 0 mtu 16384 options=3 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 bridge0: flags=8843 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 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 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