Vous êtes sur la page 1sur 3

-

Mengaktifkan Ethernet
ifup eth0
atau
ifconfig eth0 up

Menonaktifkan Ethernet
ifdown eth0
atau
ifconfig eth0 down

Melihat Konfigurasi Ethernet


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)

Konfigurasi IP Address & IP Address Alias


Cara cepat (tidak permanen)
ifconfig eth0 192.168.10.1 netmask 255.255.255.0 up

Permanen
sudo nano /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 local network interface
auto eth0
iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.0
gateway 192.168.10.254
dns-nameservers 119.2.40.21
# The local alias network interface
auto eth0:0
iface eth0:0 inet static
address 10.10.10.1
netmask 255.255.255.0

Restart Networking
sudo service networking restart
atau

sudo /etc/init.d/networking restart

Menambahkan DNS
sudo nano /etc/resolv.conf
search debian.edu
nameserver 192.168.10.1
nameserver 119.2.40.21

Memberi Nama Komputer (Host Name)


Edit File Host
sudo nano /etc/hosts
127.0.0.1 localhost
192.168.10.1 debian.edu debian-server
#. . .

Edit File Hostname


sudo nano /etc/hostname
debian-server

Restart Hostname
sudo /bin/hostname F /etc/hostname

DNS Server
- Install Bind9
sudo apt-get install bind9

Konfigurasi Bind9
o Membuat Zone Domain
sudo nano /etc/bind/named.conf
#. . .
zone "debian.edu" {
type master;
file "db.debian";
};
zone "192.in-addr.arpa" {
type master;
file "db.192"; };
include "/etc/bind/named.conf.local";

Edit File Forward


$TTL
@

604800
IN
SOA

@
@
www
ftp
sub-domain
mail
streaming

Edit File Reverse


$TTL
@

604800
IN
SOA

@
IN
1.10.168

IN
IN
IN
IN
IN
IN
IN

debian.edu. root.debian.edu. (
2
604800
86400
2419200
604800 )
NS
debian.edu.
A
192.168.10.1
A
192.168.10.1
A
192.168.10.1
A
192.168.10.1
A
192.168.10.1
A
192.168.10.1

NS
IN

debian.edu. root.debian.edu. (
1
604800
86400
2419200
604800 )
debian.edu.
PTR debian.edu.

Vous aimerez peut-être aussi