You are on page 1of 1

Pada scenario ethernet yg aktif adalah eth0

Terminal Linux CMD Windows

1. Setting IP Static 1. Setting IP


Static
cara 1: (netsh interface ip set
address name=�Local Area Connection�
static 10.19.4.6 255.255.255.0
10.19.4.1 )
#ifconfig eth0 down Untuk setting
domain name server-nya dengan perintah berikut

#ifconfig eth0 up netsh interface ip set


dns name=�Local Area Connection� static 8.8.8.8

#ifconfig eth0 no_ip netmask no_netmask broadcast no_brodcast up

#route add -net default gw no_gw 2.


DHCP
Ketikan perintah berikut

cara 2: netsh interface ip set


address name=�Local Area Connection� source=dhcp

#nano /etc/network/interfaces

Untuk setting dns-nya ketikan


perintah berikut
auto lo netsh interface ip set
dnsservers name=�Local Area Connection� source=dhcp

iface lo inet loopback

auto eth0

iface eth0 inet static

address 192.168.0.8 192.168.101.0

network 192.168.0.0 192.168.102.0

netmask 255.255.255.0 192.168.103.0

broadcast 192.168.0.255 192.168.104.0

gateway 192.168.0.1 192.168.105.0

#/etc/init.d/networking restart

2. #dhclient eth0

You might also like