Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2002 19:58:02 -0500
From:      "Dan Langille" <dan@langille.org>
To:        freebsd-questions@freebsd.org
Subject:   routing with PPPoE/DSL on a dual homed gateway
Message-ID:  <3C3DF24A.21937.6E5B5ED@localhost>

next in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3<rxcsum,txcsum>
        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 <full-duplex>)
        status: active

tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C3DF24A.21937.6E5B5ED>