0% found this document useful (0 votes)
63 views2 pages

Setting Ip Linux Untuk HP

The document shows the configuration of network interfaces on a system before and after restarting the networking service. It displays the output of ifconfig, pinging the local gateway and an external IP to test connectivity.

Uploaded by

Azka Arda Fatih
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views2 pages

Setting Ip Linux Untuk HP

The document shows the configuration of network interfaces on a system before and after restarting the networking service. It displays the output of ifconfig, pinging the local gateway and an external IP to test connectivity.

Uploaded by

Azka Arda Fatih
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 2

root@CLIENT-1:~# ifconfig eth0 up root@CLIENT-1:~# ifconfig eth0 Link encap:Ethernet HWaddr b4:b5:2f:d1:2c:80 inet6 addr: fe80::b6b5:2fff:fed1:2c80/64 Scope:Link UP BROADCAST

RUNNING MULTICAST MTU:1500 Metric:1 RX packets:357 errors:0 dropped:0 overruns:0 frame:0 TX packets:6704 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:32096 (32.0 KB) TX bytes:335229 (335.2 KB) Interrupt:41 Base address:0xc000 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:7270 errors:0 dropped:0 overruns:0 frame:0 TX packets:7270 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:792375 (792.3 KB) TX bytes:792375 (792.3 KB)

root@CLIENT-1:~# /etc/init.d/networking restart user udah ada adminclient:x:1002:1002::/home/adminclient:/bin/bash Creating SSH2 RSA key; this may take some time ... Creating SSH2 DSA key; this may take some time ... ssh stop/waiting ssh start/running, process 3289 Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service ssh restart Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the stop(8) and then start(8) utilities, e.g. stop ssh ; start ssh. The restart(8) utility is also available. ssh stop/waiting ssh start/running, process 3306 nameserver 192.168.100.1 <default>bin,root,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,nobody4,noacce ss,postgres,pvm,rpm,nfsnobody,pcap,client,adminclient</default> * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces * Reconfiguring network interfaces... RTNETLINK answers: No such process SIOCDELRT: No such process ssh stop/waiting ssh start/running, process 3405 [ OK ] root@CLIENT-1:~# ifconfig eth0 Link encap:Ethernet HWaddr b4:b5:2f:d1:2c:80

inet addr:192.168.100.6 Bcast:192.168.100.255 Mask:255.255.255.0 inet6 addr: fe80::b6b5:2fff:fed1:2c80/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:381 errors:0 dropped:0 overruns:0 frame:0 TX packets:6740 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:34180 (34.1 KB) TX bytes:341087 (341.0 KB) Interrupt:41 Base address:0xc000 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:7270 errors:0 dropped:0 overruns:0 frame:0 TX packets:7270 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:792375 (792.3 KB) TX bytes:792375 (792.3 KB)

root@CLIENT-1:~# ping 192.168.100.1 PING 192.168.100.1 (192.168.100.1) 56(84) bytes of data. 64 bytes from 192.168.100.1: icmp_req=1 ttl=64 time=0.246 ms 64 bytes from 192.168.100.1: icmp_req=2 ttl=64 time=0.211 ms ^C --- 192.168.100.1 ping statistics --2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.211/0.228/0.246/0.023 ms root@CLIENT-1:~# ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_req=1 ttl=50 time=29.1 ms 64 bytes from 8.8.8.8: icmp_req=2 ttl=50 time=34.1 ms ^C --- 8.8.8.8 ping statistics --2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 29.163/31.631/34.100/2.474 ms root@CLIENT-1:~# /etc/init.d/networking restart

You might also like