Home Linux Community Forums Hardware Networking Simple Networking Problem

Simple Networking Problem

Link to this post 23 Jun 10


I have 2 laptops connected by a lan cable - from 1 laptop network card to the other.

the first laptop is an Asus eeePc that runs a modified version of debian.
this one is connected to the internet and i simply want the other one to connect to the internet via the lan cable.


the "server" has 2 connections:
1. one for connecting to the internet via a dialup mobile connection (i checked and this connection is shared)

2. the 2nd connection: "Local Area Connection" defined this way:
IP address:
subnet mask:
+ it is also marked as 'shared'
that's all, no Gateway/DNS/Wins defined


the "client" (Debian 5.0 Lenny) has its own "Wired connection" defined this way:
Configuration: Static IP address
ip addreess:
subnet mask:

my problem is that the client ( cannot open web pages even if it sees just fine the server's files.

please let me know what can i do to fix this.


Link to this post 24 Jun 10

Andy, your "server" doesn't know it should also be a router. You need to enable packet forwarding in your kernel. You can do this a couple of different ways. You can put a "1" in /proc/sys/net/ipv4/ip_forward, you can twiddle it using sysctl, and I think you can statically configure this in a kernel you compile.

That asie, you'll want to also enable network address translation and probably some level of packet filtering. Why don't you give the following link a readn and then come back with any more questions:

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Linux Training / Board