• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 241
  • Last Modified:

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?
0
manelson05
Asked:
manelson05
  • 3
  • 2
1 Solution
 
Fabio MarzoccaFreelancerCommented:
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
0
 
manelson05Author Commented:
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
0
 
manelson05Author Commented:
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
0
 
manelson05Author Commented:
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?
0
 
Fabio MarzoccaFreelancerCommented:
You must leave these lines in the intefaces file:

auto lo
iface lo inet loopback

then add those concerning eth1 (or eth0) with the correct addresses
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now