Link to home
Start Free TrialLog in
Avatar of manelson05
manelson05Flag for United States of America

asked on

Unbuntu server Etho set up

I have the default ilo interface (localhost) running.
I have an assignable ip that is 192.168.1.116, I am using 1:1 nat for the static public IP.

However I notice that eth0 and eth1 are not configured as snort errors out on me
I get Nut Using PCAP_FRAMES, and the integrated UNBUNTU firewall cannot start says interface error.

The server I have set up has 2 nic cards in it. I am only using one.
How can I manually setup up the nic?
Avatar of Fabio Marzocca
Fabio Marzocca
Flag of Italy image

auto lo
iface lo inet loopback
It could be that they are configured thru NetworkManager? What if you type

sudo ifconfig eth0 ??

Anyway, you can set eth0 by typing the following in your /etc/network/interfaces file:



iface eth1 inet static
       address 192.168.1.116
       netmask 255.255.255.0
       network 192.168.1.0
       gateway 192.168.1.1
       dns-nameservers 194.243.154.62 195.31.190.31
auto eth1


Of course, you need to customize addresses. Then run:

sudo /etc/init.d/networkign restart
Avatar of manelson05

ASKER

I get this form ifconfig eth0

mnelson@oryx:~$ sudo ifconfig eth0
[sudo] password for mnelson:
eth0      Link encap:Ethernet  HWaddr 00:22:64:0b:b0:5a
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:18 Memory:f8000000-f8012700
interfaces file has this

auto lo
iface lo inet loopback
do I delete this or hash it out? and then add
iface eth1 inet static
       address 192.168.1.116
       netmask 255.255.255.0
       network 192.168.1.0
       gateway 192.168.1.1
       dns-nameservers 194.243.154.62 195.31.190.31
auto eth1
sduo ifconfig lo

gets me

mnelson@oryx:~$ sudo ifconfig lo
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:136629 errors:0 dropped:0 overruns:0 frame:0
          TX packets:136629 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6352325 (6.3 MB)  TX bytes:6352325 (6.3 MB)

can I wipe out the current interfaces file and rebuild with the above formentioned?
ASKER CERTIFIED SOLUTION
Avatar of Fabio Marzocca
Fabio Marzocca
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial