Friday, November 5, 2010

command untuk Bactrack 4 R1
















dhclient eth0 =cara cek LAN

ifconfig eth0 start / down =hidupkan/matikan LAN

etc/init.d/networking start / restart =untuk service networking

ifconfig eth0 hw ether 00:a2:b3:c4:e5:f6 =untuk mengganti mac address

Cara mengganti ip network melalui terminal
digunakan untuk mengganti alamat network

temporary (masuk ke root)

ifconfig eth0 192.168.10.50 netmask 255.255.255.0
route add default gw 192.168.10.1 eth0
echo nameserver 8.8.8.8 >/etc/resolv.conf

permanent (masuk ke root)

root@x : nano /etc/network/interfaces

nanti akan keluar seperti berikut:

Untuk menngganti IP address
#auto lo
#iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.10.100 ----------------------->
netmask 255.255.255.0 ------------------------> GANTI DISINI !!!!!
gateway 192.168.10.1 ------------------------->

#auto eth0
#iface eth0 inet dhcp

#auto eth1
#iface eth1 inet dhcp

#auto eth2
#iface eth2 inet dhcp

#auto ath0

setelah diganti kemudian tekan Ctrl+o , setelah itu enter yes (untuk save)
setelah itu Ctrl+x (keluar dari fungsi nano)

Untuk menngganti DNS server address
#nano /etc/resolv.conf

nanti akan keluar seperti berikut:

nameserver 202.134.0.155 ---------> isian DNS pertama

nameserver 202.130.0.135 ---------> isian DNS alternatif

setelah diganti kemudian tekan Ctrl+o , setelah itu enter yes (untuk save)
setelah itu Ctrl+x (keluar dari fungsi nano)

0 comments:

Post a Comment