[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

DHCP/ routing / ADSL - UK

I've got an interesting problem....

I'm using my sparc to perform NAT and some hosting.... Just switched
over to ADSL with an ethernet router.... I get one static IP which my
router is using DHCP spoofing to pass through to the first host that
requests an address via DHCP.

auto eth0
iface eth0 inet dhcp
        hostname weeble

Low and behold it gets my address:
eth0      Link encap:Ethernet  HWaddr 08:00:20:1A:88:5A
          inet addr:  Bcast:  Mask:
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:5812071 errors:46 dropped:0 overruns:0 frame:68
          TX packets:5830722 errors:7 dropped:0 overruns:0 carrier:7
          collisions:25272 txqueuelen:100
          RX bytes:2076940822 (1980.7 Mb)  TX bytes:2100168289 (2002.8
          Interrupt:5 Base address:0x1400

No gateway gets set though. Not a problem thought I.. I'll just manually
add a static entry... I'll ask pump what it is:
Device eth0
        Boot server
        Next server
        Domain: oooarrr.cx
        Renewal time: Mon May  6 00:02:49 2002
        Expiration time: Mon May  6 00:04:04 2002

Strange, the gateway's not on my subnet... Oh well:
Route add -host eth0
Route add -net netmask gw

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface UH    0      0        0
eth0   U     0      0        0
eth0       U     0      0        0
eth0         UG    0      0        0

All works fine.... Until that is I unplug my ADSL router to move it and
then reconnect it all.

After some investigation is seems my gateway is now! My ISP
are giving me a different gateway each time I connect.... I have a
static IP and a dynamic gateway!

Now, my question (if you haven't already worked it out is.....) What's
the best way of getting the gateway address by dhcp adding the route so
my machines knows where it is (not on the same subnet) and then add a
default route using it?

Thanks in advance!!!

Something else perplexing (but doesn't matter):

traceroute to www.yahoo.akadns.net (, 30 hops max, 38 byte
 1 (  2.580 ms  2.230 ms  2.061 ms
 2 (  13.614 ms  13.126 ms  11.687 ms
 3 (  13.805 ms  13.660 ms  13.473 ms
 4 (  13.461 ms  14.254 ms  13.506 ms
 5  anchor-adsl.router.demon.net (  15.359 ms  14.944 ms
4.756 ms

The gateway doesn't even show in a traceroute!

To UNSUBSCRIBE, email to debian-sparc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: