LinuxQuestions.org
Register a domain and help support LQ
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 06-13-2006, 04:03 PM   #1
posterman
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Rep: Reputation: 0
many VNIC's (Virtual Network card) on one physical NIC


Please help me to find module for VNIC.
About year ago I downloaded one module, which help me generate many virtual network interfaces on one physical interface on Linux with different IP and MAC addresses and bridged with the physical interface.
I forget the name, and now I’m trying to find it, but have not success…. I looked all available search engines and forums…

Thanks in advance!
 
Old 06-13-2006, 05:55 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Do you mean Aliasing IP? eth0:0
If so then it is usually normally configured into the kernel. It is the TCPIP Networking item or called ' config_inet ' from a kernel config file.

Brian1
 
Old 06-15-2006, 05:56 AM   #3
posterman
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Original Poster
Rep: Reputation: 0
No, I'm not mean Aliasing IP eth0:0,
In aliasing case you can't assign different MAC address to that alias interface...
 
Old 06-15-2006, 06:30 AM   #4
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Dual boot :: Slackware 14.1 64bit multilib | Kali linux 64bit multi lib
Posts: 170

Rep: Reputation: 37
Do you mean bridge_utils ?

http://sourceforge.net/project/showf...group_id=26089
 
Old 06-15-2006, 01:20 PM   #5
posterman
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Original Poster
Rep: Reputation: 0
No, with bridge_utils you can create virtual interface, and connect to it many interfaces, but each interface only once, it means that you can't create many virtual interfaces based on one physical interface.

My problem is having many virtual cards (with differenet MAC addresses, and bridged with physical network card) on one physical card.
 
Old 06-15-2006, 02:07 PM   #6
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
Are you trying to do network simulations? Do you want a tap interface? Did you have a look at netkit?
 
Old 06-16-2006, 03:20 PM   #7
posterman
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Yeah I want something like a "tap" interface, but "netkit" is not enough for me, because "tap" interface created with "netkit" not working like a virtual network card with different MAC address.
It is just show different MAC address on created “tap” interface, but when I'm connecting with that virtual interface or when I'm sending some request to ip address of that virtual interface, in arp table I can see only MAC address of real interface.
It means that it only show that my new virtual interface has different MAC address, but in real it communicates with MAC address of real network card.
 
Old 06-16-2006, 04:11 PM   #8
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
I finally understand what you want. I have no idea right now. Intereseting problem. Still researching.
 
Old 06-19-2006, 05:51 AM   #9
posterman
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Ok Osor,
Thanks in advance!
 
Old 07-06-2006, 12:03 PM   #10
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
Wow, it's been a long time. Somehow I completely forgot about this thread. My apologies.

Anyway, have you found a solution yet? One thing that I found interesting was linux's 802.1q implementation, which allows VLANs to exist for actual physical interfaces. You need to have a kernel that supports it (either built-in or module), and you need the vconfig program.

Here's what I did (it seemed to work for me):
Code:
# ip link show
1: eth0: <BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:04:61:02:31:7f brd ff:ff:ff:ff:ff:ff
2: wan0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:04:61:02:31:80 brd ff:ff:ff:ff:ff:ff
3: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
# vconfig add eth0 1
# ip link show
1: eth0: <BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:04:61:02:31:7f brd ff:ff:ff:ff:ff:ff
2: wan0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:04:61:02:31:80 brd ff:ff:ff:ff:ff:ff
3: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
4: eth0.1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
    link/ether 00:04:61:02:31:7f brd ff:ff:ff:ff:ff:ff
# ip link set dev eth0.1 address 00:04:61:02:31:7e
# ip addr add 192.168.2.1/24 dev eth0.1
# ip addr show
1: eth0: <BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:04:61:02:31:7f brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global eth0
2: wan0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:04:61:02:31:80 brd ff:ff:ff:ff:ff:ff
    inet 64.179.4.146/24 brd 255.255.255.255 scope global wan0
3: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
4: eth0.1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noop
    link/ether 00:04:61:02:31:7e brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.1/24 scope global eth0.1
Is this what you needed?

EDIT: changed public IP address to protect my identity (it doesn't really matter, but I substituted one of LQ's for mine)

Last edited by osor; 07-06-2006 at 12:06 PM.
 
  


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
Forwarding from physical to virtual interface? heltendk Linux - Networking 8 01-11-2007 11:22 AM
API for mapping Physical Address to Virtual Address Lakshman_smt Linux - Software 2 10-15-2006 09:08 PM
NIC physical address hennaheto Linux - Networking 2 01-30-2004 08:40 PM
virtual screen bigger than physical screen ? Kocil Linux - Newbie 1 09-18-2003 06:21 AM
Routing when Connected in the same physical network aaronsols Linux - Networking 6 03-24-2002 10:07 PM


All times are GMT -5. The time now is 12:18 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