Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-06-2006, 05:24 AM
|
#1
|
|
LQ Newbie
Registered: Nov 2006
Posts: 3
Rep:
|
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 ?
|
|
|
|
11-06-2006, 06:16 AM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,830
|
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.
|
|
|
|
03-13-2009, 01:06 PM
|
#3
|
|
LQ Newbie
Registered: Feb 2008
Distribution: Ubuntu, Centos
Posts: 10
Rep:
|
Quote:
Originally Posted by attojung
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:03 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|