Virtual ethernet card

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

Virtual ethernet card

Postby osama » Fri Oct 31, 2008 9:43 am

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:

Postby x2oxen » Fri Oct 31, 2008 9:58 am

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

Postby osama » Fri Oct 31, 2008 10:00 am

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:

Postby LinuxFreaK » Mon Nov 03, 2008 9:23 am

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:

Postby x2oxen » Mon Nov 03, 2008 10:34 am

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:

Postby syedbilalmasaud » Thu Nov 06, 2008 6:08 pm

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


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest