LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-28-2010, 03:53 PM   #1
abakhiet
Member
 
Registered: Apr 2010
Location: Assiut, Egypt
Posts: 166

Rep: Reputation: 15
Virtual Interface Usage


Hola,
I need to ask about Virtual Interface, as i need to use my ethernet interface to act as two ethernet ports.
as i need to give eth0 an IP address and give eth0.5 another ip address, and make some natting and other issues.
Can i do that with the same interface ???
 
Old 06-28-2010, 04:03 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
You can assign multiple ips to the same interface...

eth0
eth0:0
eth0:1

etc. Putting them on different networks doesn't work well though (or depending what you're doing exactly, at all.)
 
Old 06-28-2010, 07:26 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,349

Rep: Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376
Most nic cards do support multiple interfaces but not all.
 
Old 06-28-2010, 08:36 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,690

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by jefro View Post
Most nic cards do support multiple interfaces but not all.
How couldn't they ?
Virtual interfaces are a TCP/IP stack (i.e. kernel) feature, not an Ethernet cards (driver/hardware) one.
 
  


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
Outgoing local trafic over virtual interface has not virtual ip address :-( tkmbe Linux - Networking 3 08-25-2009 08:03 PM
Adding virtual interface for IP based virtual host pridefc Linux - General 6 03-16-2008 03:52 PM
Virtual Interface montrhano Linux - Networking 0 08-28-2006 05:30 AM
Virtual Memory usage redhatrosh Linux - Software 1 03-20-2005 01:22 AM
want some help regarding usage of message passing interface student_linux Linux - Software 0 03-24-2004 12:34 PM


All times are GMT -5. The time now is 03: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration