LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to route thru virtual interfaces? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-route-thru-virtual-interfaces-424377/)

huseki 03-13-2006 07:51 AM

how to route thru virtual interfaces?
 
I have three linux boxes and a few Windows boxes.When i enable ip forwarding on the linux box (ip address 192.168.13.12), other machines can connect thru it and it forwards their requests to the router.They can then access internet. However, when i setup a virtual ip address on the same Network card of the linux machine(ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0) and i change the gateway of the other clients to that of the virtual ip address(192.168.0.1), these clients cannot access internet. Is there a way i can forward requests from the virtual address(192.168.0.1) to the real address(192.168.13.12) such that the clients can access internet thru the virtual address(192.168.0.1)? please help.
Huseki

okmyx 03-13-2006 08:00 AM

From what i can see you other machines are on the wrong subnet.

You'll need to give all the other machines a 192.168.0 address as well for them to be able to see the 192.168.0.1 computer.

For what reason are you adding this virtual address?

huseki 03-14-2006 05:07 AM

Done that already.
 
I did that to the clients..ie gave them configurations of 192.168.0. network and they can even ping the virtual address of 192.168.0.1 but they cannot access internet if i configure them to use the virtual address as the gateway. Why can't they connect?

okmyx 03-14-2006 06:27 AM

Then you'll need to setup some static routes for ip forwarding on the server to route incoming internet requests to the internet gateway.

huseki 03-14-2006 08:13 AM

Could you help me and give me step by step guidelines of how its done or direct me to a particulat website that will be of use to me. I have tried searching for that kind of thing from the net but i haven't been successful. I appreciate your help.


All times are GMT -5. The time now is 09:17 PM.