LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-13-2006, 08:51 AM   #1
huseki
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
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
 
Old 03-13-2006, 09:00 AM   #2
okmyx
Member
 
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464

Rep: Reputation: 31
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?
 
Old 03-14-2006, 06:07 AM   #3
huseki
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Original Poster
Rep: Reputation: 0
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?
 
Old 03-14-2006, 07:27 AM   #4
okmyx
Member
 
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464

Rep: Reputation: 31
Then you'll need to setup some static routes for ip forwarding on the server to route incoming internet requests to the internet gateway.
 
Old 03-14-2006, 09:13 AM   #5
huseki
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Interfaces on Linux kidskc Linux - Networking 0 05-12-2005 04:36 PM
Virtual Interfaces geony Linux - Networking 6 02-13-2005 12:25 PM
Virtual Interfaces linuxboy69 Linux - Networking 1 12-31-2003 04:08 PM
Virtual Interfaces da_tibmeister Linux - Networking 2 10-15-2003 10:32 AM
MRTG on Virtual Interfaces Dr.Gajo Linux - Networking 3 04-17-2003 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration