Network Interface Card (NIC) atau Ethernet di
linux diberi nama etho,
eth1, eth2, dst. Dan untuk
interface Local Loopback diberi nama lo. Untuk mengetahui
interface apa saja yang terpasang pada server Debian, gunakan perintah ifconfig berikut.
debian-server:/home/pudja#
ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1
Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436
Metric:1
RX packets:46 errors:0 dropped:0 overruns:0 frame:0 TX packets:46
errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
RX bytes:3036 (2.9
KiB) TX bytes:3036 (2.9 KiB)
Seperti terlihat
diatas, Interface yang aktif hanyalah interface Loopback. Sebagai tambahan,
jangan pernah sekalikali untuk menon-aktifkan interface Loopback tersebut.
Sebab interface tersebut digunakan oleh aplikasi-aplikasi server Debian agar dapat berjalan pada
computer Localhost.
Agar dapat
terkoneksi ke Jaringan Komputer, aktifkan terlebih dahulu Interface
Ethernet. Pastikan nama untuk Ethernet
tersebut, default untuk Ethernet pertama adalah etho. Gunakan perintah ifup untuk meng-aktifkan, dan sebaliknya
gunakan perintah ifdown.
debian-server:/home/pudja#
ifup eth0
Jika muncul pesan error pada layar terminal,
gunakan perintah berikut di bawah.
debian-server:/home/pudja#
ifconfig eth0 up
debian-server:/home/pudja#
ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:29:58:cf:68
inet addr:192.168.10.1
Bcast:192.168.10.255
Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe58:cf68/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1610 errors:0 dropped:0 overruns:0 frame:0
TX packets:1419 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1610 errors:0 dropped:0 overruns:0 frame:0
TX packets:1419 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:189305 (184.8 KiB) TX
bytes:198940 (194.2 KiB) Interrupt:18 Base address:0x1080
lo Link encap:Local Loopback
inet addr:127.0.0.1
Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436
Metric:1
RX packets:46 errors:0 dropped:0 overruns:0 frame:0 TX packets:46
errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
RX bytes:3036 (2.9
KiB) TX bytes:3036 (2.9 KiB)