LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-14-2010, 06:31 AM   #1
cold
Member
 
Registered: Feb 2004
Posts: 34

Rep: Reputation: 15
Virtual ethernet adapter


Dear all,
I have simple problem. I need to assign several (three actually) IP addresses to one physical ethernet adapter. Following options are not possible:
* VLAN -- this is for network with IP convergence sublayer so no VLAN tags are possible for incoming packets.
* Tunneling (like TUN/TAP or GRE): this must be supported on both sides, this is not acceptable solution for me since I cannot change the way how my ISP works.
* Aliases: not useable because I need to assign IP dynamically, aliases have static IP assignment only, right?

So, what would help me is a virtual ethernet driver that creates several eth devices in the system so that I can route/bridge between virtual and physical interfaces. Do you know about some solution? Another idea how to solve my problem?
Many thanks in advance for any hint.

-jn.
 
Old 04-14-2010, 06:39 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Which distro are you using? Networking is one of the areas where there are significant differences between distros.
 
Old 04-14-2010, 07:26 AM   #3
cold
Member
 
Registered: Feb 2004
Posts: 34

Original Poster
Rep: Reputation: 15
Oh yes, I forgot to mention it. This is embedded device so three's no specific distro (like Fedora or Debian), the kernel is 2.4.31. The "distro" is custom one.
 
Old 04-14-2010, 07:56 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
These commands worked on Slackware
Code:
ifconfig eth0 add 10.0.0.41
ifconfig eth0:0 broadcast 10.0.0.255 netmask 255.255.255.0
As you can see from the usage in the second command the first command created eth0:0 (in addition to the original eth0). IDK how far this technique can be used to satisfy all your requirements but it may be a good start.

An alternative approach may be to configure the physical NIC as a bridge and to tap into it with three virtual adapters, say eth0, 1 and 2. I did read "Tunneling (like TUN/TAP or GRE): this must be supported on both sides, this is not acceptable solution for me since I cannot change the way how my ISP works" but AIUI this technique is used when hosting virtual machines and, as far as the rest of the LAN is concerned, eth0, 1 and 2 don't function any differently from real NICs on the network.

Last edited by catkin; 04-14-2010 at 07:56 AM. Reason: Clarity
 
Old 04-15-2010, 02:17 AM   #5
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
Quote:
Originally Posted by cold View Post
Dear all,
* Aliases: not useable because I need to assign IP dynamically, aliases have static IP assignment only, right?
Wrong. If using DHCP you would need to specify different values for the client identifier option.
 
  


Reply



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
lm-sensors acpitz-virtual-0 Adapter: Virtual device temp1: <- What is it? Maintech Linux - Hardware 9 08-24-2009 02:35 PM
Virtual Ethernet Adapter for Linux? tfm1 Linux - Software 1 01-24-2007 12:45 PM
ethernet card SiS 900-Based PCI Fast Ethernet Adapter Not Detected pathan_azhar Linux - Networking 0 08-13-2006 04:15 AM
USB Ethernet Adapter help mcrexx Linux - Newbie 5 09-18-2005 03:54 PM
Ethernet Adapter mprice74 Linux - Laptop and Netbook 2 09-09-2003 11:40 AM

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

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