Solved

internet access + lan

Posted on 2006-06-15
5
328 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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

930 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

12 Experts available now in Live!

Get 1:1 Help Now