Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to install Snort on Ubuntu Server in VMware. It works fine before the setting up network cards.

I've edited /etc/network/interfaces with the following data:

#######Primary address

auto eth0
iface eth0 inet static 
address 192.168.1.1 
netmask 255.255.255.0 
network 192.168.1.0 
broadcast 192.168.1.255 
gateway 192.168.1.1

#######second address

auto eth1
iface eth1 inet manual

Then I do

ifconfig eth1 up

After when I try to run

sudo /etc/init.d/networking restart

It works fine, but when enter

sudo ifconfig eth1 up

it gives error

eth1: ERROR while getting interface flags: No such device

I have also tried, without root

sudo service networking restart

No effect. Can anyone help me out with this? Very much appreciated.

share|improve this question
add comment

1 Answer 1

In ubuntu server, the network card will only be detected once at the first boot up.

You need to delete something

$rm -rf /etc/udev/rules.d/70-persistent-net.rules
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.