Sunday, April 15, 2012

Configurasi (NIC Network Interface Card) on Debian / Ubuntu

to configure the NIC (Network Interface Card) open the configuration file nano / etc / network / intefaces

afigot: ~ # nano / etc / network / interfaces
auto eth0
iface eth0 inet static
address 192 168 215 150
netmask 255.255.255.0
network 192.168.215.0
broadcast 192 168 215 255
gateway 192 168 215 150
# Dns-* options are Implemented by the resolvconf package, if installed
dns-nameservers 192 168 215 150
dns-search-afigot.com

     setting the file nano / etc / hosts

afigot: ~ # nano / etc / hosts
127.0.0.1 localhost
192 168 215 150 afigot.afigot.com afigot

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

     do configuration again in nano / etc / resolv.conf

afigot: ~ # nano / etc / resolv.conf
search afigot.com
nameserver 192 168 215 150
ISP DNS nameserver 118.98.224.2 #
ISP DNS nameserver 118.98.224.3 #

     restart the networking service

afigot: ~ # / etc / init.d / networking restart                         

Blogger templates

 
AF Blog Copyright © 2009-2015 AFachri R Designed AFachri R