Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have physical network card for Internet and I want to create a virtual one on Linux.

This is my configuration on /etc/network/interfaces

# Public
auto eth0
iface eth0 inet static
        address 46.40.127.45
        netmask 255.255.255.0
        network 46.40.127.0
        broadcast 46.40.127.255
        gateway 46.40.127.1
        dns-nameservers 8.8.8.8
        dns-search com

# Private
auto eth1
iface eth1 inet static
        address 10.10.10.1
        netmask 255.255.255.0

This is what I've got when I /etc/init.d/networking restart

Cannot find device "eth1"
Failed to bring up eth1.
share|improve this question
    
What precisely do you mean by "a virtual one"? What exactly are you trying to do? –  David Schwartz Oct 14 '13 at 11:05

1 Answer 1

up vote 2 down vote accepted

Well you need to specify which hardware interface it connects to.

Try this,

# Public
auto eth0
iface eth0 inet static
        address 46.40.127.45
        netmask 255.255.255.0
        network 46.40.127.0
        broadcast 46.40.127.255
        gateway 46.40.127.1
        dns-nameservers 8.8.8.8
        dns-search com

# Private
auto eth0:1
iface eth0:1 inet static
        address 10.10.10.1
        netmask 255.255.255.0

Details can be found here

share|improve this answer

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.