Solved

internet access + lan

Posted on 2006-06-15
5
327 Views
Last Modified: 2010-04-20
#ifcfg-eth1:
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
IPADDR= my_ip
NETMASK=255.255.192.0
GATEWAY=84.255.191.1

and VDSL internet connection works ok in linux.

#ifcfg-eth0:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.3
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255

#windows tcp/ip settings:
IP address: 192.168.0.2
Subnet mask: 255.255.255.0
Default gateway: 192.168.0.3

ping from windows to linux works, and versa
ping from windows to any internet address doesn't work - how to fix it ?
0
Comment
Question by:ed987
5 Comments
 
LVL 12

Assisted Solution

by:Heem14
Heem14 earned 50 total points
Comment Utility
what software are you using to provide the routing?
0
 
LVL 22

Accepted Solution

by:
pjedmond earned 450 total points
Comment Utility
I'm going to guess that the problem is with the routing on the Linux box. Try:

echo 1 > /proc/sys/net/ipv4/ip_forward

This will turn on routing in the kernel.

(Also add to /etc/network/options: ip_forward=yes   in order to make sure that it is enabled on reboot)

In order to assist the experts are you using iptables/ipchains?:

iptables -L
ipchains -L

What distribution are you using?

Are you using any routing software? Squid etc?


0
 
LVL 7

Author Comment

by:ed987
Comment Utility
software ? i'm using a switch (not router but switch), no software
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
> ping from windows to any internet address doesn't work - how to fix it ?
please answer pjedmond's questions in http:#16915067
0
 
LVL 12

Expert Comment

by:Heem14
Comment Utility
you need some software. simply plugging them in together is not going to make the packets route.

here is an interesting article about NAT and Linux. At the bottom you will find links to different software packages that will provide routing for you. many of which may already be available on your disrtobutions discs.
http://linas.org/linux/load.html
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now