Quote:
Originally Posted by MensaWater
You set the default gateway by adding it to /etc/sysconfig/network (and remove for /etc/sysconfig/network-scripts/ifcfg-* files).
GATEWAY=10.0.2.2
In /etc/sysconfig/network-scripts create route-eth1 and input the following line:
192.168.3.0/24 via 192.168.3. dev eth1
Run "service network restart" to bounce networking.
Run "netstat -rn" before and after to see your routing table.
|
Hello MensaWater
thanks man for your kind cooperation
sorry i forget to say that i have already set "GATEWAY=10.0.2.2" in "/etc/sysconfig/network" file
also i have add a route in "route-eth0" with the following :
192.168.3.0/24 via 10.0.2.15 dev eth0
then "Reboot" for the microwave
meaning the server then it works very good
below is a simple diagram for the required server network :
Code:
Internet ==> Eth0 (10.0.2.0/24) <====> Eth1 (192.168.3.0/24)
where : 10.0.2.2 is the default gateway for server, while default gateway for 192.168.3.0/24 is 10.0.2.15 (IP address of eth0)
i have tried to configure "route-eth1" but i always get error messages when restarting network service, while it was configured to :
192.168.3.0/24 via 10.0.2.15 dev eth1
i think (but not sure yet) that the file refuse to save/use an ip address which doesnt belongs to the interface or subnetwork
anyway its working now as expected
please accept my best regards,,