LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-03-2014, 05:46 AM   #1
sa6kad
LQ Newbie
 
Registered: Jun 2014
Posts: 6

Rep: Reputation: Disabled
How linux virtual interfaces work.


Hello everyone. I am new to this forum and I am relatively new to Linux as well. I am not a complete newbie but I am not a pro as well.

I am now writing my master's thesis related to GMPLS technology that requires implementing a Linux based testbed. In short i am trying to find info about how virtual interfaces in Linux work. There are hundreds of articles about how to configure virtual interfaces, however i couldn't find anything that describes the way it's implemented. Please help.
 
Old 06-04-2014, 05:25 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,877

Rep: Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426Reputation: 2426
It's a software thing, purely.
The software sees 2 network cards (etc0.1, eth0.2 or whatever) each with their own IP and netmask and addresses them both through the same hardware.
 
Old 06-04-2014, 08:13 AM   #3
sa6kad
LQ Newbie
 
Registered: Jun 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you for the reply. Yes, I do understand that it's implemented in software, but unfortunately this is not enough for my thesis (. May be someone can advice some literature that may contain info about how virtual interfaces are implemented.
 
Old 06-04-2014, 11:37 AM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
how virtual interfaces are implemented.
The virtual drivers are implemented in the libraries at the base of the virtual machine. They simulate the network activity within the VM and provide ports for the simulated virtual activity within the VM to become actaul actitivity between non-virtual nodes outside the VM through their access to the host machines adapters and ports.
Within the VM, you can similutate any kind of activity you can imagine and design a driver for. Externally, you're limited to the physical hardware available to the host machine.

Is that what your asking?
If so, you want to do some reading about libvirt, which, as far as I know, is the loweset level library directly dealing with virtualization that has an API.

Last edited by dijetlo; 06-04-2014 at 11:39 AM.
 
1 members found this post helpful.
Old 06-04-2014, 12:50 PM   #5
sa6kad
LQ Newbie
 
Registered: Jun 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dijetlo View Post
Is that what your asking?
Thanks for the answer. This is much closer. However, you refer to virtual machines and network interfaces within the virtual machine. Maybe i was unclear but what i referred to is the ability to use several sub-interfaces on top of a physical. I think it is also called IP aliasing. The point of my work is to investigate how overall performance of a physical interface degrades with huge number of sub-interfaces. Sorry if I caused confusion.

Last edited by sa6kad; 06-04-2014 at 12:55 PM.
 
Old 06-04-2014, 02:58 PM   #6
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Not as all sa6kad.

Quote:
Linux networking IP port aliasing tutorial
This tutorial works through an example of how IP aliasing can be used to provide multiple network addresses on a single physical interface. This demonstrates using IP version 4 addresses only.
IP aliasing works the same way on the virtual guests version of the interface as it does on the corresponding silicon and copper interface of the virtual host.
 
  


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
LXer: Configuring virtual network interfaces in Linux LXer Syndicated Linux News 0 01-11-2013 06:40 AM
[SOLVED] /etc/network/interfaces configuration for virtual interfaces nonshatter Linux - Networking 4 10-25-2010 06:22 AM
Virtual Interfaces on Linux kidskc Linux - Networking 0 05-12-2005 03:36 PM
Linux virtual interfaces....specify default ip nastea Linux - Networking 5 12-08-2004 12:58 PM

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

All times are GMT -5. The time now is 02:14 AM.

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