Re: Problems with dhcp-client
It seems your dhclient works its magic on the eth0 interface.
The way I see it, you have two options: one is to read
dhclient.conf(5) and edit the file accordingly, the other (which
is simpler if you don't want to rtfm :-), is to use eth0 to
connect to your provider and eth1 to the LAN. If you follow
this latter way, make sure you switch the network cables and
edit /etc/network/interfaces to look like
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth0 inet static
address 192.168.1.3
network 192.168.1.0
netmask 255.255.255.0
While I think the former is the right way of solving this issue,
the latter has an infinitesimal advantage: in my experience
most people prefer to use eth0 to see the world, so you would be
adopting some sort of a de-facto standard.
On Wed, May 08, 2002 at 05:42:23PM -0700, R. Wayne McCorkle wrote:
> This may not be the most appropriate list, but as this pertains to my
> firewall it seemed close enough. I have searched the web, debian
> documentaion, and man pages but cannot find a solution.
>
> When I issue "ifup -a" everything comes up as I expect. However, after
> some period of time, the static address for eth0 has changed from that
> specified in the interfaces file to an address provided by the dhcp server
> in the LAN. I need for it to remain static as that is the default route
> for the rest of the LAN.
>
>
> My setup looks like this:
>
> --------
> ------------ | Cable | eth1 ---------- eth0 -----
> | Internet | ----o | |o-----o| Firewall |o-----o| HUB |o----> LAN
> ------------ | modem | ---------- -----
> --------
>
> Notes:
> o One of the machines in my LAN acts as a DHCP server for other boxen
> on the LAN.
> o The firewall runs dhcp-client to get network info from Adelphia
> o The file /etc/dhclient.conf on the firewall is unchanged from the
> installed version
>
> The /etc/network/interfaces file on the firewall looks like:
>
> iface eth0 inet static
> address 192.168.1.3
> network 192.168.1.0
> netmask 255.255.255.0
>
> iface eth1 inet dhcp
>
>
>
>
>
> Any help would be greatly appreciated!
>
>
> --
> R. Wayne McCorkle
>
> EMail: rwmccorkle@adelphia.net
>
>
> --
> To UNSUBSCRIBE, email to debian-firewall-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
--
To UNSUBSCRIBE, email to debian-firewall-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: