LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Virtual Interface Usage (https://www.linuxquestions.org/questions/linux-newbie-8/virtual-interface-usage-816864/)

abakhiet 06-28-2010 03:53 PM

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 ???

rweaver 06-28-2010 04:03 PM

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.)

jefro 06-28-2010 07:26 PM

Most nic cards do support multiple interfaces but not all.

jlliagre 06-28-2010 08:36 PM

Quote:

Originally Posted by jefro (Post 4017742)
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.


All times are GMT -5. The time now is 06:13 AM.