From owner-freebsd-questions Thu Jan 10 16:58:15 2002 Delivered-To: freebsd-questions@freebsd.org Received: from lists.unixathome.org (lists.unixathome.org [210.48.103.158]) by hub.freebsd.org (Postfix) with ESMTP id 637E337B402 for ; Thu, 10 Jan 2002 16:58:11 -0800 (PST) Received: from wocker (lists.unixathome.org [210.48.103.158]) by lists.unixathome.org (8.11.6/8.11.6) with ESMTP id g0B0w3C18475 for ; Fri, 11 Jan 2002 13:58:03 +1300 (NZDT) (envelope-from dan@langille.org) From: "Dan Langille" Organization: novice in training To: freebsd-questions@freebsd.org Date: Thu, 10 Jan 2002 19:58:02 -0500 MIME-Version: 1.0 Subject: routing with PPPoE/DSL on a dual homed gateway Reply-To: dan@langille.org Message-ID: <3C3DF24A.21937.6E5B5ED@localhost> X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Everythings working. AFAIK. It's all fine. It's just that I don't know why it's working.... I have a new 4.5RC box with two nics (vr0 and xl0). I've been able to get tun0 up and running via ppp. It has authenticated with my ISP and has a public IP address. I have onc nic (xl0) on a 192.168.0.0 network. The vr0 NIC is connected to the DSL modem. At present, it has no IP address. Yet I can ping out, get everywhere I need... I don' t know how... How it is that the routing works when vr0 does not have an IP address? # traceroute yahoo.com traceroute to yahoo.com (216.115.108.243), 64 hops max, 40 byte packets 1 10.10.240.1 (10.10.240.1) 255.904 ms 286.591 ms 305.575 ms 2 213.137.68.50 (213.137.68.50) 68.822 ms 71.950 ms 68.214 ms etc [root@mordif:/etc/ppp] # netstat -nr Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.10.240.1 UGSc 0 0 tun0 10.10.240.1 213.137.205.160 UH 1 0 tun0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.0 link#2 UC 3 0 xl0 192.168.0.18 0:50:bf:32:ad:ff UHLW 45 347 xl0 425 192.168.0.20 0:50:bf:17:70:13 UHLW 0 2 xl0 118 192.168.0.99 0:50:bf:32:47:f9 UHLW 2 948 xl0 1080 vr0: flags=8843 mtu 1500 inet6 fe80::250:baff:fe2b:57aa%vr0 prefixlen 64 scopeid 0x1 ether 00:50:ba:2b:57:aa media: Ethernet autoselect (10baseT/UTP) status: active xl0: flags=8843 mtu 1500 options=3 inet 192.168.0.21 netmask 0xffffff00 broadcast 192.168.0.255 inet6 fe80::201:3ff:fe25:dab%xl0 prefixlen 64 scopeid 0x2 ether 00:01:03:25:0d:ab media: Ethernet autoselect (100baseTX ) status: active tun0: flags=8051 mtu 1492 inet6 fe80::250:baff:fe2b:57aa%tun0 prefixlen 64 scopeid 0x8 inet 213.137.205.160 --> 10.10.240.1 netmask 0xffffff00 Opened by PID 227 # more ppp.conf default: # set log Phase Chat LCP IPCP CCP tun command set log Phase tun command istop: set device PPPoE:vr0: set mru 1492 set mtu 1492 set speed sync enable lqr set lqrperiod 5 set cd 5 set dial set login set timeout 0 set authname myuserid set authkey mypassword set ifaddr 0 0 add default HISADDR Yes, IP addresses have been changed to protect the kiddies. -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practical examples To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message