Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi there Guys,
I've got myself in a bit of a pickle. I am trying to setup my FC5 box at home to take care of the internet connection using rp-pppoe. I tried the other day without a huge amount of success.
I have my ADSL2 modem / router in Pure bridged mode which from my understanding just forwards packets off to the interface, to that a cable going directly into eth0 on the linux box
eth1 (2nd nic) in the linux box then goes off to a switch and rest of the network.
I can establish a connection from the linux box using rp-pppoe and browse sites no worries at all from the linux box but not on windows, I can't even ping IP's but I am close I feel and it can only be something simple.
Where my confusion sets in is eth0 is set to use DHCP, do I need an IP address, subnet mask etc set on this one?
I have eth1 set to 172.17.12.1 as the IP and 172.17.12.254 as the gateway.
Should I need to set eth0 with an IP of some description, ppp0 gets an IP from my provider (dynamic) so I'm thinking perhaps I do the iptables to ppp0 rather than eth0?
Any help would be great, as I mentioned previously I feel I am very close but not entirely sure where I'm going wrong.
I don't have DSL (I have cable instead), so I can't help with DSL-specific things like the difference between ppp0 and eth0, but...
If an interface uses DHCP, you don't have to set any other parameters for it.
In order to forward packets from eth1 to eth0, you have to explicitly allow forwarding. This is done by setting "net.ipv4.ip_forward=1" in /etc/sysctl.conf. If you want it to take effect before you reboot you can run "sysctl -w net.ipv4.ip_forward=1" as root.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697
Rep:
Have you enable IP Forwarding? If not that is what you need to do to allow network traffic to cross from eth1 to eth0. Also do not define a gateway on eth1. It will confuse a simple setup. You can leave eth0 as dhcp. Check out this site to build a simple firewall script and sets up ip forwarding for you as well all in one script. http://easyfwgen.morizot.net/gen/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.