Re: How to configure eth0 with static ip and eth1 dhcp
On Sat, 22 Feb 2014 17:22:16 -0500 (EST), Markos wrote:
>
> I'm trying to configure a machine with two network cards to share
> Internet access to an internal network
>
> the /etc/network/interface is:
>
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
> auto eth0
> iface eth0 inet static
> address 192.168.0.1
> netmask 255.255.255.0
>
> auto eth1
> iface eth1 inet dhcp
>
> The card eth0 is used as gateway on the internal network with static IP
> 192.168.0.1 and eth1 is connected to the B-890 -53 Huawei modem.
>
> But the modem do not send an IP during initialization.
>
> The IP of modem is 192.168.1.1.
>
> The modem sends the IP address (192.168.0.4) to my laptop by wifi
> without problems.
>
> Any suggestions of what I should check?
I'm afraid that I don't understand the problem. Is this a traditional
async dial-up modem? If so, I would expect it to be configured with ppp,
its interface name would be ppp0, and it would not be listed in
/etc/network/interfaces at all. I don't get it.
--
.''`. Stephen Powell
: :' :
`. `'`
`-
Reply to: