Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2000 09:52:37 -0500 (EST)
From:      Christopher Browning <brownicm@prokyon.com>
To:        freebsd-questions@freebsd.org
Subject:   routing (???) problem w/dhclient on ADSL
Message-ID:  <XFMail.000329095137.brownicm@prokyon.com>

next in thread | raw e-mail | index | archive | help
I'm attempting to set up a BSD box to act as NAT and firewall on an ADSL line.
After much research and some probing of (not-very-helpful) BellSouth tech
support, this is what I've done:

1. The DHCP server upline at BellSouth has (I assume) a record of the MAC
address of the NIC they installed on the Win98 machine during the original
install. I put this card (which is xl0) in my BSD box and ran dhclient to get a
lease. I did not run ifconfig on it as I assume that the DHCP server will
take care of that. Netstat seems to show that side working fine and all Internet
apps run (fast!!).

2. I understand that dhclient manipulates some of the network config files;
/etc/hosts, /etc/resolv.conf and the routing tables. I'm still working my way
through /sbin/dhclient-script...

3. The local network (192.168.1.0) has, at present, 2 Win98s, an NT Server and
my FreeBSD box. The BSD box has been running as a gateway (troublefree) for
months using ppp -alias.

4. Ifconfig ep0 (the original NIC) shows:

    flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
        ether 00:50:04:12:0f:45

    all of which should be correct. No change.

5. Ifconfig xl0:

 flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 208.61.148.46 netmask 0xfffffe00 broadcast 208.61.149.255
        ether 00:50:da:26:f4:88 
        media: 10baseT/UTP <half-duplex>
        supported media: autoselect 100baseTX <full-duplex> 100baseTX
        <half-duplex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP
        <half-duplex> 10baseT/UTP

_*I can't see the LAN*_ All three other machines can ping each other. Pinging
from the BSD box returns:

     PING 192.168.1.5 (192.168.1.5): 56 data bytes
     64 bytes from 192.168.1.5: icmp_seq=5 ttl=128 time=26262.056 ms
     64 bytes from 192.168.1.5: icmp_seq=6 ttl=128 time=25252.077 ms
     64 bytes from 192.168.1.5: icmp_seq=7 ttl=128 time=24242.079 ms
     <snip lots>
     64 bytes from 192.168.1.5: icmp_seq=73 ttl=128 time=58583.722 ms
     64 bytes from 192.168.1.5: icmp_seq=74 ttl=128 time=57573.732 ms
     64 bytes from 192.168.1.5: icmp_seq=75 ttl=128 time=56563.742 ms
     ^C
     --- 192.168.1.5 ping statistics ---
     186 packets transmitted, 71 packets received, 61% packet loss
     round-trip min/avg/max/stddev = 1012.187/54927.110/101001.136/33392.995 ms


netstat -nr (after pinging other local machines):
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            208.61.148.1       UGSc        5        0      xl0
127.0.0.1          127.0.0.1          UH          1        2      lo0
192.168.1          link#3             UC          0        0      ep0
192.168.1.1        0:50:4:12:f:45     UHLW        0      134      lo0
192.168.1.3        0:e0:29:5:da:9c    UHLW        0       12      ep0   1162
192.168.1.4        0:60:97:1d:89:b5   UHLW        0        4      ep0   1194
192.168.1.5        0:50:da:c9:dc:74   UHLW        0      186      ep0    737
208.61.148/23      link#1             UC          0        0      xl0
208.61.148.1       0:0:c:4f:f2:2c     UHLW        6        0      xl0    875
208.61.148.46      127.0.0.1          UGHS        0        0      lo0

What's going on here? What stupid thing have I missed? I realize that my setup
is not complete as natd and ipfw are not configured yet, but shouldn't I be
able to see the LAN on ep0? Any help greatly appreciated. Hope I haven't
provided too much info here.

Thanks

----------------------------------
"if you believe in Nothing...
...Honey, It believes in you."

Chris Browning
brownicm@prokyon.com
XFMail on FreeBSD 3.3 29-Mar-00
----------------------------------


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?XFMail.000329095137.brownicm>