in reply to Set IE Proxy for different DHCP networks

I visit places with staticly assigned addresses, which posed a similar problem. So I wrote up a little script which utilizes tcpdump to sniff for the network address, then automatically reset my ip to a random or ARGV number based on the nework address. It defaults the gateway to .1, athough that can be specified on cmd line as well. Obviously this method only works as-is for linux, but it saves me a lot of time. There is room for quite a bit of improvement by someone who has experience with the Packet::sniff module, not to mention someone who knows how to this kinda thing on Windows.
  • Comment on Re: Set IE Proxy for different DHCP networks

Replies are listed 'Best First'.
Re: Re: Set IE Proxy for different DHCP networks
by AcidHawk (Vicar) on Feb 05, 2003 at 06:21 UTC

    On the Windows Platform these settings (DHCP and Static) are all in the registry, and can be changed. Actually these settings are found in the same place as in the previous code but the DHCPIPAddress is set to 0.0.0.0 and the IPAddress value is changed.

    I was thinking of adding some kind of gui functionality which would ask you if you wanted to set a static IP\gateway etc.. The problem is that I wanted it to run at startup, either in the startup program menu or specified in the Windows registry and dont want to be bugged everytime I start my machine. Maybe when I have more time...I might even look into the Packet::sniff module.

    -----
    Of all the things I've lost in my life, its my mind I miss the most.
Re: Re: Set IE Proxy for different DHCP networks
by Marza (Vicar) on Feb 04, 2003 at 22:21 UTC

    Hmmm I am kinda bored right now and want to try something new. I will give the Packet::sniff modules a looksy! Thanks!

Re: Re: Set IE Proxy for different DHCP networks
by Anonymous Monk on Feb 05, 2003 at 15:05 UTC
    For Windows, http://www.netswitcher.com Under $15, no code needed. Works like a charm.