Network Interface Card (NIC) atau Ethernet didalam sistem operasi turunan linux termasuk debian diberi nama eth0, eth1, eth2, dst. Sedangkan untuk interface Local Loopback diberi nama lo. Untuk mengetahui interface apa saja yang terpasang pada server Debian, dapat digunakan perintah ifconfig seperti berikut.
” root@server# ifconfig “
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:46 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collilions: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 informasi, jangan pernah sekali-kali 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 terlebih dahulu nama untuk Ethernet tersebut, secara default untuk Ethernet pertama adalah eth0. Gunakan perintah ifup untuk meng-aktifkan, dan sebaliknya gunakan perintah ifdown untuk menonaktifkan ether yang aktif.
” root@server# ifup eth0 “
Jika muncul pesan error pada layar terminal, gunakan perintah berikut di bawah.
” root@server# ifconfig eth0 up “
” root@server# 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
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
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, perintah ifup eth0 / ifconfig eth0 up berhasil mengaktifkan eth0 pada interface di debian server. Demikian cara mengaktifkan ethernet di Debian Server, semoga bermanfaat.