[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dual NIC network



On Mon, Jun 01, 2015 at 03:48:51PM +0200, notoneofmy wrote:
> Hallo,
> 
> Would some please say, how to configure the wifi card and the Ethernet
> port on my laptop, so that one can go online and the other can only
> access the local network. And in such a way that connection from one
> network, local, cannot be used to access another network, internet.

In essence, you need to set the IP of each interface to be part of the
network, set the netmask to encompass the part of the network which can
be directly reachable on that network, and set the gateway address to
point to a host which can forward packets on to hosts outside that
network. (So, for the local network, there'd be no gateway). If you
don't turn on IP_Forwarding ("cat /proc/sys/net/ipv4/ip_forward
/proc/sys/net/ipv6/conf/all/forwarding" should be 0,0), then the kernel
won't sent packets between the interfaces.

There are numerous ways to achieve this. You can set the information
statically in /etc/network/interfaces. You can set the information
statically in a GUI such as Network Manager or WICD. You can push the
information to your host using DHCP.

> 
> Thanks a lot in advance.
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] 556C62C3.1090509@gmx.de">https://lists.debian.org/[🔎] 556C62C3.1090509@gmx.de
> 

-- 
For more information, please reread.

Attachment: signature.asc
Description: Digital signature


Reply to: