Re: laptop,dhcp,fixed addresses
From: Matt Price (matt.price_at_utoronto.ca)
Date: 04/14/05
- Previous message: charlie derr: "Re: cannot eject or retract cdrom tray anymore"
- In reply to: Alan Chandler: "Re: laptop,dhcp,fixed addresses"
- Next in thread: Bob Alexander: "Re: laptop,dhcp,fixed addresses"
- Reply: Bob Alexander: "Re: laptop,dhcp,fixed addresses"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: charlie derr: "Re: cannot eject or retract cdrom tray anymore"
- In reply to: Alan Chandler: "Re: laptop,dhcp,fixed addresses"
- Next in thread: Bob Alexander: "Re: laptop,dhcp,fixed addresses"
- Reply: Bob Alexander: "Re: laptop,dhcp,fixed addresses"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|