Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

First I must say that I am new in linux and maybe I will ask trivial question. My job is to create 8 ethernet interface to be visible in kernel, but all of them should send and receive data through only one real ethernet interface. All of that 8 interfaces should to can be configured with ifconfig (or some one similar command).
Does anyone have idea how to do this? It was told to me to change something in ethernet driver, but i dont know what? Or is there some other solution?

share|improve this question
    
What OS are you running? The config files differ a bit, as do the commands, but basically you will be creating eth0:0 eth0:1 eth0:2 and so forth.. –  NickW Apr 22 '13 at 11:52
add comment

1 Answer

up vote 3 down vote accepted

You can set up virtual interfaces by appending to the physical interface name :<n> where n is a number.

$ ifconfig eth0:0 192.168.1.1 netmask 255.255.255.0

Using the ip utility, you can even specify a name:

$ ip link add link eth0 name virt1
$ ip addr add 192.168.1.1/24 dev virt1
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.