Friday, September 05, 2008

Setting network Ubuntu Server

Sudah seminggu ini, gue nggak menyentuh Ubuntu Server gue. Server itu akan digunakan untuk mail kantor gue. Awalnya gue pake FreeBSD 7.0. Tapi kemudian ada pesan error BIG_MEDIUM_ERROR. Well, akhirnya gue coba pake Ubuntu Server.

Nah, karena sudah seminggu ga pegang server itu lagi, gue lupa cara setting kartu jaringannya (ethernet card / Network Interface Card (NIC)). Ubuntu Server nggak ada GUI-nya. Jadi nggak mudah. Semua dikerjakan lewat text-mode. Setelah suwun ke kanjeng mbah Google, akhirnya saya dapat informasi untuk menyetel NIC-nya. Berikut adalah cuplikannya :

I would start by checking the dmesg log..

sudo cat /var/log/dmesg | grep -i eth

see if the other cards are being detected properly on boot.. I'll bet they are.

so now you should just need to edit your /etc/network/interfaces file, and add the other two ethernet interfaces you saw listed in the dmesg log..

Quote:
username@it-etch:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
# allow-hotplug eth0
# iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.0.4
netmask 255.255.255.0
gateway 192.168.0.1
network 192.168.0.0
broadcast 192.168.0.255

auto eth1
iface eth1 inet static
address 10.90.90.1
netmask 255.255.255.0
network 10.90.90.0
broadcast 10.90.90.255


auto eth2
iface eth2 inet static
address 10.10.10.1
netmask 255.255.255.0
network 10.10.10.0
broadcast 10.10.10.255
after you have made you entries for the other cards try to bring them up..

sudo ifup eth1

sudo ifup eth2


If those cards were in the machine when you did your OS install, the install would have automatically added them to the interfaces file, but since they weren't you will probably have to add them manually.



Sumber : LinuxQuestions.org

Post a Comment