Solved

internet access + lan

Posted on 2006-06-15
5
332 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 12

Assisted Solution

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

Accepted Solution

by:
pjedmond earned 450 total points
ID: 16915067
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
ID: 16915072
software ? i'm using a switch (not router but switch), no software
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 16915278
> 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
ID: 16915652
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

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

688 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