in reply to Checking my default gateway

How about using Net::Traceroute and using the output to give you the default GW?

Clare

Replies are listed 'Best First'.
Re: Re: Checking my default gateway
by Piercer (Beadle) on Aug 20, 2001 at 13:36 UTC
    Sounds good, I'll try it out. Thanks
      net:traceroute doesn't seem to support Windoze - however I found Net::GrpNetworks which looks like it should do the trick. Cheers.
        The command is called tracert in windoze

        TIMTOWTDI
        Just to clarify which I didn't really have time to do yesterday. GrpNetworks Doesn't actually give you the gateway of the machine. It actually replaces about 4 steps of the program - one of which is getting the gateway. :) Runs loads faster than what I had written too (big surprise)