Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 

#######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

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


nano /etc/default/snort


and /etc/snort/snort.debian.conf

DEBIAN_SNORT_INTERFACE="eth0" # or other port

share|improve this answer

Your Answer


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.