Selasa, 13 November 2012

konfigurasi server

KONFIGURASI DHCP SERVER

apt-get install dhcp3-server
Non-authoritative version of DHCP server OK

nano /etc/dhcp3/dhcpd.conf
        
         # A slightly different configuration for an internal subnet.
         subnet 192.168.0.8 netmask 255.255.255.248 {
         range 192.168.0.12 192.168.0.14;
         option domain-name-servers 192.168.0.11;
         option domain-name "romy.edu";
         option routers 192.168.0.11;
         option broadcast-address 192.168.0.15;
         default-lease-time 600;
         max-lease-time 7200;
         }

 * Untuk kata yang tidak saya cantumkan, jangan diubah/dihapus.


Sambil menunggu komputer server hidup kembali. Ubah settingan TCP/IP di client windows menjadi Automatic.
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.11 (ip address)
network 192.168.0.8 (network address)
netmask 255.255.255.248 (subnetmask)
gateway 192.168.0.11 (gatewaay)

kemudian tekan control+x dan ketikan y kemudian enter
 
setelah itu restart networknya. Dengan cara mengetikkan:

/etc/init.d/networking restart

Kemudian ping dari komp windows ke komp server.
C:\Users\romy>ping192.168.0.11
         Pinging 192.168.0.11 with 32 bytes of data:
         Reply from 172.16.1.62: bytes=32 time<1ms TTL=64
         Reply from 172.16.1.62: bytes=32 time<1ms TTL=64
         Reply from 172.16.1.62: bytes=32 time<1ms TTL=64
         Reply from 172.16.1.62: bytes=32 time=1ms TTL=64
         Ping statistics for 172.16.1.62:
         Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
         Approximate round trip times in milli-seconds:
         Minimum = 0ms, Maximum = 1ms, Average = 0ms
C:\Users\romy>ping 192.168.0.12
         Pinging 192.168.0.12 with 32 bytes of data:
         Reply from 192.168.1.1: bytes=32 time=1ms TTL=64
         Reply from 192.168.1.1: bytes=32 time<1ms TTL=64
         Reply from 192.168.1.1: bytes=32 time<1ms TTL=64
         Reply from 192.168.1.1: bytes=32 time<1ms TTL=64
         Ping statistics for 192.168.0.11:
         Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
         Approximate round trip times in milli-seconds:
         Minimum = 0ms, Maximum = 1ms, Average = 0ms

Tidak ada komentar: