linux networking notes

— DHCP interfacemore
Terkadang kita ingin secondary network interfaces untuk mendapatkan IP dinamis

$ sudo nano /etc/network/interfaces

#dhcp
  auto eth0 #ubah sesuai nama interface
  iface eth0 inet dhcp
  gateway 192.168.1.1
  dns-nameserver 192.168.1.1

#static ip
  auto eth0
  iface eth0 inet static
   address 192.168.1.2
   gateway 192.168.1.1
   netmask 255.255.255.0
   network 192.168.1.0
   broadcast 192.168.1.255

— Setting hostname manual
$ nano /etc/hosts

tambahkan dibawah 127.0.0.1
192.168.0.5 mysite.mydomain.net mysite blabla 

— Monitor bandwidth dengan terminalmore
sebenarnya ada banyak tools yang bisa digunakan, tapi yang paling gampang adalah bmon dan nethogs
$ sudo apt install bmon nethogs

— Show list shared network drive

$ smbclient -L //myServer.myDomain.net -U namaUser

bagusnya ini bisa digunakan untuk ngecek password user di domain

Advertisements

One thought on “linux networking notes

Add yours

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Powered by WordPress.com.

Up ↑

%d bloggers like this: