LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-12-2011, 05:12 AM   #1
Karottenbaum
LQ Newbie
 
Registered: Oct 2011
Posts: 14

Rep: Reputation: Disabled
Xubuntu: cant create virtual eth1 in /etc/network/interfaces


hi, i'm following a guide from snort.com http://www.snort.org/assets/158/012-...llguide291.pdf

it says:

Code:
sudo vi /etc/network/interfaces

Change the following lines from this:

auto eth0
iface eth0 inet dhcp

to these values:

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

Now add the following lines at the end of the file to start the second card without an IP adress:

auto eth1
iface eth1 inet manual
ifconfig eth1 up

Save and exit the file then either reboot or issue this command:

sudo /etc/init.d/networking restart
but ifconfig doesn't show an eth1 (reboot didn't helped either). only eth0 but that's the one i got in my laptop...

my ifconfig only shows: lo, wlan0, eth0

i don't know why it doesn't work, i even tried it with eth0:1 and fix IP, didnt show up either...


thanks!
 
Old 10-12-2011, 06:09 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
The tutorial assumes that you have two physical network cards in the Snort machine.

Quote:
1. Equipment Assumptions

A dedicated PC for Snort IDS/IPS (the faster the better) with two network cards
 
Old 10-12-2011, 06:21 AM   #3
Karottenbaum
LQ Newbie
 
Registered: Oct 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
damn! it worked sooo well all the way! didnt see that coming...
thanks for the info! there is no workaround, can i resume somewhere else? i dont think so.

much thanks for that!
 
Old 10-12-2011, 01:11 PM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Yor're welcome.
 
Old 10-12-2011, 04:42 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,968

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Assign an alternate IP to the single nic??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] /etc/network/interfaces configuration for virtual interfaces nonshatter Linux - Networking 4 10-25-2010 06:22 AM
the network scripts to create network interfaces for 802.1q VLANs 10 and 11, Lahore Linux - Networking 0 03-18-2009 05:45 AM
eth0 and eth1 with 2 network interfaces codegomer Linux - Networking 12 04-20-2004 10:04 PM
Virtual network interfaces that use dhcp titakker Linux - Networking 1 09-23-2003 12:10 AM
Virtual Network Interfaces pickledbeans Linux - Networking 1 07-11-2002 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration