Minggu, 31 Oktober 2010

Konfigurasi Network Card dan Hosts

>konfigurasi network
#nano /etc/network/interfaces

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address 192.168.1.1
        netmask 255.255.255.240
        network 192.168.1.0
        broadcast 192.168.1.15
        gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.1.1
        dns-search server.net

>>untuk keluar dan save tekan tombol ctrl+x >y (yes)


>Konfigurasi Hosts
#nano /etc/hosts

127.0.0.1         localhost
192.168.1.1     server.net      server

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

>>untuk keluar dan save tekan tombol ctrl+x >y (yes)

#nano /etc/resolv.conf

search server.net
domain server.net
nameserver 192.168.1.1

>>untuk keluar dan save tekan tombol ctrl+x >y (yes)

>kemudian restart network dengan cara:
#/etc/init.d/networking restart
Reconfiguring network interfaces...done.

0 komentar:


Blogspot Template by Isnaini Dot Com and Supported by Ralepi.Com - Ducati Motorcycle