Saturday, September 12, 2009

Restart DHCP di BlankOn

Edit file /etc/network/interfaces :

root@csal-04:/home/csal-04# more /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
auto lo
iface lo inet loopback

root@csal-04:/home/csal-04#

Restart network :
root@csal-04:/home/csal-04# /etc/init.d/networking restart
* Reconfiguring network interfaces... There is already a pid file /var/run/dhclient.eth0.pid with pid 6807
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/eth0/00:0d:88:b4:8b:3f
Sending on LPF/eth0/00:0d:88:b4:8b:3f
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.125.254 port 67
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/eth0/00:0d:88:b4:8b:3f
Sending on LPF/eth0/00:0d:88:b4:8b:3f
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPOFFER of 192.168.3.15 from 192.168.3.1
DHCPREQUEST of 192.168.3.15 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.3.15 from 192.168.3.1
bound to 192.168.3.15 -- renewal in 2754 seconds.
[ OK ]
root@csal-04:/home/csal-04#

Cek IP Address :
root@csal-04:/home/csal-04# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0d:88:b4:8b:3f
inet addr:192.168.125.109 Bcast:192.168.125.255 Mask:255.255.255.0
inet6 addr: fe80::20d:88ff:feb4:8b3f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11990 errors:0 dropped:0 overruns:0 frame:0
TX packets:5222 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1796136 (1.7 MB) TX bytes:463709 (463.7 KB)
Interrupt:11 Base address:0xcf00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4000 (4.0 KB) TX bytes:4000 (4.0 KB)

root@csal-04:/home/csal-04#

Cek PING :
root@csal-04:/home/csal-04# ping google.com
PING google.com (74.125.67.100) 56(84) bytes of data.
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=1 ttl=44 time=310 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 1 received, 50% packet loss, time 1003ms
rtt min/avg/max/mdev = 310.638/310.638/310.638/0.000 ms
root@csal-04:/home/csal-04#


Lain-lain :
root@csal-04:/home/csal-04# uname -a
Linux csal-04 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:20 UTC 2008 i686 GNU/Linux
root@csal-04:/home/csal-04#

No comments:

Post a Comment