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 11-06-2006, 05:24 AM   #1
attojung
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
Create routing between virtual interface in linux


My linux box is RedHat with one NIC.
I did create 18 virtual interfaces from eth0:1 to ethO:18 in my machine.

I want to create routing between these interfaces, for instant i want to route packet from eth0:1 to eth0:5 via pass this packet through eth0:2 and eth0:3 before. (eth0:1->eth0:2->eth0:3->eth0:5) and vice versa.

But the problem is linux think that all of these 18 interfaces are in the same device. So, once i try to create the routing and send packet out,the packet will go directly from eth0:1 to eth0:5.

I try to create routing with iptables as well as using VLAN but it seem they didn't support virtual interface.

Do you guys have any idea how to make it comes true ?
 
Old 11-06-2006, 06:16 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
that sounds like a pretty nasty mess... you sound like you're trying to do this without using formal vlans? it's possible to run multiple subnets on a single nic without VLAN's but it's a really bad idea, and should be avoiaded. running 18 of them is just daft... chekc the 8021q module and associated tools like vconfig to do this properly. http://www.linuxjournal.com/article/7268

Last edited by acid_kewpie; 11-06-2006 at 06:18 AM.
 
Old 03-13-2009, 01:06 PM   #3
bala.linux
LQ Newbie
 
Registered: Feb 2008
Distribution: Ubuntu, Centos
Posts: 10

Rep: Reputation: 0
Quote:
Originally Posted by attojung View Post
My linux box is RedHat with one NIC.
I did create 18 virtual interfaces from eth0:1 to ethO:18 in my machine.

I want to create routing between these interfaces, for instant i want to route packet from eth0:1 to eth0:5 via pass this packet through eth0:2 and eth0:3 before. (eth0:1->eth0:2->eth0:3->eth0:5) and vice versa.

But the problem is linux think that all of these 18 interfaces are in the same device. So, once i try to create the routing and send packet out,the packet will go directly from eth0:1 to eth0:5.

I try to create routing with iptables as well as using VLAN but it seem they didn't support virtual interface.

Do you guys have any idea how to make it comes true ?
Can some one please help me in setting up this ?

Regards,
Bala
 
  


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
Routing on a single Interface bernard7 Linux - Networking 2 05-01-2006 04:06 PM
Routing between 2 Interface Cards ajkannan83 Linux - Networking 1 03-06-2006 07:04 AM
How to create virtual directory with JBOSS in LINUX? tvenegas Linux - Software 0 05-02-2005 09:46 AM
interface ok, dhcp ok, routing gw not ok- help sokar Linux - Wireless Networking 4 02-04-2004 10:39 AM
Multiple Interface routing question kongfused Linux - Networking 2 07-01-2003 07:53 AM


All times are GMT -5. The time now is 01:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration