On 2/23/14, 10:09, Markos wrote: > On 22-02-2014 20:11, Scott Ferguson wrote: >> On 23/02/14 09:58, Stephen Powell wrote: >> >>> 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. >>> >>> >> I'm guessing it's a cdc_ether device - probably running a web and dn >> server at 192.168.0.100. Hopefully the OP will correct my assumption >> (Vendor and Product codes from dmesg?). >> I'm not familiar with that particular model - but I've had to hack Linux >> support for the chipset either side of it (model number). >> >> >> Kind regards >> >> >> > Dear Scot and Stephen, > > I am using this model of modem: > > http://www.4glterouter.de/huawei-b890-4g-lte-smart-hub.html > > I just tested on another machine and the modem supplied the IP to my > laptop via wireless and IP to a computer (with 1 NIC) via ethernet > without problem. > > Tomorrow I'll change the network card (of the machine with 2 NICs) and > test again to see if the problem is the network card. > > Thanks for your attention, > Markos > > Hi,
If you are having problems with DHCP then why not set eth1 to a static IP? auto eth0 iface eth0 inet static address 192.168.0.1 netmask 255.255.255.0 auto eth1 iface eth0 inet static address 192.168.1.2 netmask 255.255.255.X gateway 192.168.1.1 I usually don't set a gateway to the LAN interface in the settings. *Rod Bio * Random fortune: /Never try to explain computers to a layman. It's easier to explain sex to a virgin. -- Robert Heinlein (Note, however, that virgins tend to know a lot about computers.) / -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/5309f2c6.4050...@gmail.com