Re: How to route between Networks?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, June 24, 2012 11:09, Kenyon Ralph wrote:
> On 2012-06-24T10:32:58+0200, With No Name <withnoname@xxxxxxxxxx> wrote:
>> DNS:         192.168.0.11
>> Webserver:   192.168.1.111
>> Workstation: 192.168.2.222

> Have you assigned an IP address from each of those networks to the
> corresponding interfaces?

Yes, the first NIC has the public IP and then the three
others 192.168.0.1, 192.168.1.1 and 192.168.2.1

> Other than that, you just have to set the sysctl
> net.ipv4.ip_forward to 1. Generally you can set this permanently in
> /etc/sysctl.conf. Then the Linux router will route
> among those networks.

Since I use Debian, I have set it in /etc/sysctl.conf permanently.

However, I can reach from all three networks the Internet,
but can not acccess the internal networks from each other...

Mean, I have setup my Workstation 192.168.2.222 to use the
Name Server 192.168.0.11, but I can not reach the Network.

If I reconfigure my Workstation to 192.168.0.222 and Connect
the Ethernet cable to the 192.168.0.0 Network, then I can
reach the Name Server.

Thanks
Kalham

--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux