Sunday, 31 May 2009

SETTING NIC (NETWORK INTERFACE CARD) w. SETTING NIC

Mensetting IP Address, Netmask, Network, Broadcast dan sebagainya (eth0) pada file
/etc/network/interfaces.
admin:~# vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
# dns-* options are implemented by the resolvconf package, if
installed
dns-nameservers 192.168.0.100
dns-search debian.com
· Mensetting Hosts pada file /etc/hosts
admin:~# vim /etc/hosts
127.0.0.1 localhost
192.168.0.100 admin.debian.com admin
# 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
· Mensetting Hostname pada file /etc/hostname
admin:~# echo admin.debian.com > /etc/hostname
admin:~# /bin/hostname –F /etc/hostname
· Mensetting Resolver pada file /etc/resolv.conf
admin:~# vim /etc/resolv.conf
search debian.com
nameserver 192.168.0.100
nameserver 118.98.224.2
DNS ISP
nameserver 118.98.224.3

No comments:

Post a Comment