Virtual ethernet card

Taking care of your Linux box.
Post Reply
osama
Havaldaar
Posts: 117
Joined: Fri Aug 22, 2008 9:08 am

Virtual ethernet card

Post by osama »

Hello,

I have 5 network aliases like eth0 eth0:1 eth0:2. I want onw of them to assign something like eth3. How can i create a virtual NIC on existing network connected through one of eth0 eliases.
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

well you already creating virtual lan cards like eth0:1 eth0:2 what else you want to do??
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
osama
Havaldaar
Posts: 117
Joined: Fri Aug 22, 2008 9:08 am

Post by osama »

I want to create virual device eth4 and map eth0:3 to eth5
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear osama,
Salam,
osama wrote:I want to create virual device eth4 and map eth0:3 to eth5
My understanding that this is not possible the way you are trying to do.

Best Regards.
Farrukh Ahmed
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

why don't you add some more lan cards as per your requirement.
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
syedbilalmasaud
Naib Subedar
Posts: 347
Joined: Thu Aug 18, 2005 9:25 am
Location: Attock
Contact:

Post by syedbilalmasaud »

try to add vlan on your lan card and rename each interface as you wish and add as much vlans and assign ip to these interfaces using ip tools

better if you have two nic's create bond and than create vlans on that bond

for bonding and ethernet you have to install ifenslave and vlan-utils with their deps
Cheers :)

:D B I L A L :D
Post Reply