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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am having trouble routing between 2 net cards in RH 8.0. On eth0 10.52.1.200 gw 10.52.1.254, eth1 10.52.3.2 gw 10.52.1.200. Using a workstation 10.52.3.60 gw 10.52.3.2 I can ping 10.52.3.2, and 10.52.1.200, anything else I am unable to ping. Any help would be appreciated thanks in advance.
you need a default route to the interface where your connection to the host is
for instance if your internet connection is connected through eth0 then the router that's connected to eth0's ip address will be the default route
route add default gw xxx.xxx.xxx.xxx
if you already have a default route set and it is incorrect then remove it first
route delete default
if the ip you are reaching is in the same network as one of the interfaces you have it will be routed that way, all others will go through the default router
To add to what David said here, what is your subnet mask(s) on these machines? Unless they're class C 255.255.255.0 both networks would be considered to be on the local LAN and would not be sent to the 'router'.
depending on the netmask of the interfaces, they could be on the same network. If they are you will need to add routes to each host. This can be a pain if you have a lot of hosts, so you would be better off making the interfaces on deifferent networks. Or you could setup a bridge.
To access the internet through your linux router you need to setup your iptables rules for doing masquerade. This will give anyone on the masqed interface a connection.
besides iptables rules you also need to make sure ip forwarding is enabled
over there reset the value of packet forwarding from 0 to 1 and then......
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
echo 1 > /proc/sys/net/ipv4/conf/eth1/proxy_arp
your packets will be forwareded.......
tell me did it work!!!!!
okay...i'm a linux convert wanna-be so I'm getting frustrated as heck. I even installed webmin to help with all this configuration at least till i'm comfortable with an editor that's not GUI based.
Anyway, ip_forward is set to 1.....i attempted to go through the IP Masq How-to...I'm running Mandrake so I decided to try and use Shorewall since that's what comes with it. To no avail....i'm still not able to browse the web from the masq'ed subnet.
would love some hand-holding on this one if anyone would be so gracious enough.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.