Re: laptop,dhcp,fixed addresses

From: Matt Price (matt.price_at_utoronto.ca)
Date: 04/14/05

  • Next message: s. keeling: "Re: laptop,dhcp,fixed addresses"
    To: debian-user@lists.debian.org
    Date: Thu, 14 Apr 2005 16:54:16 -0400
    
    

    Alan Chandler wrote:
    > On Thursday 14 April 2005 16:01, Matt Price wrote:
    > ...
    >
    >>I'm intrigued by the ocmments in your dns files like:
    >>; Special for work portable - must be allocated by dhcp because of
    >>; Work - it uses the mac address to find this address.
    >>
    >>Do you have some trick that enables you to move between locations
    >>without changing the network interface? On my laptop I have the
    >>following ocnfiguration:
    >
    >
    > Actually this machine is a windows 2000 portable, but that shouldn't matter
    > much. At work, it is allocated an ip address via dhcp. This will be a
    > number in the ip address range that my company owns (i) When I get home, the
    > file causes dhcp to allocate the fixed ip address of 192.168.0.25. I used to
    > need this (although I don't anymore) because I was creating a secure tunnel
    > through my firewall and needed to port forward to it.
    >
    >
    >
    >># The first network card - this entry was created during the Debian
    >>installation
    >>iface dynamic inet dhcp
    >>
    >># when connecting via another laptop, use dhcp;
    >># otherwise use the static configuration
    >>auto eth0
    >> iface eth0 inet static
    >> address 192.168.2.198
    >> netmask 255.255.255.0
    >> broadcast 192.168.2.255
    >> gateway 192.168.2.1
    >>
    >> iface net-sidsmith inet static
    >> address 128.100.34.173
    >> netmask 255.255.255.0
    >> network 128.100.34.0
    >> broadcast 128.100.34.127
    >> gateway 128.100.34.1
    >>
    >>
    >>and then this little script I wrote brings one up and the other down:
    >>
    >>ifdown -a
    >>ifup eth0=net-sidsmith
    >>ifup lo
    >>
    >>do you have a trick that somehow avoids such manipulation?
    >>
    >>m
    >
    >
    >
    > I am not sure I understand what you are trying to do here. I have shown you
    > how to get a machine to a known ip address when it connects via dhcp. What
    > is the case here that you are trying to solve? Are you on a network with no
    > dhcp server?
    >
    hey alan,

    sorry to confuse you, this case I just described actually has nothing to
    do with the whole long conversation we've been having already, and from
    your reply here I can see that this last question was entirely
    misplaced. To explain my misperception may be somewhat difficult and
    contorted...

    I thought the "because of work" in your bind conf file meant "because
    when I take it to work I don't want to have to mess with any of the
    settings; therefore I'll do a trick with dns and perhaps on the client
    side as well to avoid any manual client-side reconfiguration". I thought
    perhaps there was some magic in the /etc/network/interfaces file on the
    laptop itself. From your explanation I can see that that isn't necessary.

    I sent you the files I did b/c I have a solution to the work/home
    problem that is almost perfect for me, but still requires me to manually
      reconfigure every time I switch networks; and in many ways it'd be
    nice if I could avoid that.

    phew. hope that is clear now. Not sure it's worth your effort to
    understand though...

    thanks agian, I will doubtless be back in touch in a couple of days when
    I get this sorted.

    m

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

  • Next message: s. keeling: "Re: laptop,dhcp,fixed addresses"

    Relevant Pages

    • Re: Key words or phrases
      ... i checked the router and i checked the properties of the laptop and the ... > whole network to work that i try not to even think of the settings. ... > "George Hester" wrote in message ... > Are you using a DHCP server to the machine thay gave you that error? ...
      (microsoft.public.win2000.general)
    • Re: Mixed network question
      ... network of static IP's. ... with a laptop that must use a DHCP assigned address, ... configuration I need to support both connection methods. ...
      (comp.security.firewalls)
    • Re: Wireless Networking - DHCP problems
      ... from the server, and so self-allocate an IP which is not on our network. ... Packet-sniffing suggests that the issue is not the DHCP request going to the ... I've put a laptop directly adjacent to the AP, so I can rule out the ...
      (microsoft.public.windowsxp.network_web)
    • Re: DHCP problem on workgroup
      ... >> My quick guess is that your system is unable to access the DHCP Server. ... >>> workgroup based wireless network. ... I cannot get the laptop to see the ... > default gateway shows as 0.0.0.0 (other machines all show the IP address ...
      (microsoft.public.win2000.networking)
    • Re: networking private and public hosts questions
      ... some systmes in storage to create a test network. ... a WS to the child and attempted to pull an IP from the DHCP server, ...
      (microsoft.public.win2000.networking)