On Mon, 16 Apr 2001, harmit wrote:
> I have only one lan card with me .and only one real ip.which ip
> should be assignesd to one lan card real or private...........main
> target is to communictae between two networks tia
>
You also have to turn on forwarding for it to work.
sysctl -w net.ipv4.ip_forward=1
You will want to put use the real IP for the NIC. You may also want to
use an alias to add the private ip to the NIC as well. You will have to
add routing to other machines on the "real" network so that thay know to
use this machine as a gateway to the private network. You should set
the machines on the provate network to use this machine as their gateway
to the "real" network. To let machines on the private network access
the Internet, you will have to have a proxy server, or do IP
masquarding.
You could also use IP masquarding on this machine so that machines on
the private network will apeare to be this machine to the machines on
the "real" network.
If all you want it for the machines on the private network and the
machines with "real" IP addresses to be able to talk to each other, you
can also do the same thing by adding a route to the "real" subnet on the
machines on the private subnet, and do the same for the machines on the
"real" subnet.
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list