Senin, 11 Februari 2019

Cara Install GlobalProtect VPN Client di Linux Ubuntu 18.04 LTS


Kali ini saya ingin sedikit share bagaimana cara nya install VPN Client dari Palo Alto yaitu GlobalProtect di Linux Ubuntu 18.04

1. Pertama kali kita harus punya file PanGPLinux-4.1.1-c14.tgz

File tersebut bisa di dapatkan dari login ke support portal nya PaloAlto, atau kalau cari di google saya ketemu ada yang share disini

2. Setelah download filenya, bisa langsung di extract :

tar -xvf ~/pkgs/PanGPLinux-4.1.1-c14.tgz

3. Nanti dari hasil file extract nya akan ada 3 file yaitu :

GlobalProtect_deb-4.1.1.0-14.deb                           
GlobalProtect_rpm-4.1.1.0-14.rpm                           
GlobalProtect_tar-4.1.1.0-14.tgz

4. Kita bisa install yang file .deb nya :

$ sudo dpkg -i GlobalProtect_deb-4.1.1.0-14.deb

[sudo] password for dony:
Selecting previously unselected package globalprotect.
(Reading database ... 201969 files and directories currently installed.)
Preparing to unpack GlobalProtect_deb-4.1.1.0-14.deb ...
Start installing gp...
Unpacking globalprotect (4.1.1-14) ...
Setting up globalprotect (4.1.1-14) ...
Enable gp service...
Starting gp service...
Create symlink for gp cli...
Starting gpa...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

5. Untuk menjalankan nya tinggal ketik saja perintah :

$ globalprotect
>>

Untuk keluar, ketik quit  :

>> quit

6. Untuk perintah help nya :

>> help
Usage: only the following commands are supported: 
collect-log            -- collect log information 
connect                -- connect to server 
disconnect             -- disconnect
disable                -- disable connection
import-certificate     -- import client certificate file
quit                   -- quit from prompt mode
rediscover-network     -- network rediscovery
remove-user            -- clear credential 
resubmit-hip           -- resubmit hip information
set-log                -- set debug level
show                   -- show information

Command-line mode:
user@linuxhost:~$ globalprotect help
Usage: only the following commands are supported: 
collect-log            -- collect log information 
connect                -- connect to server 
disconnect             -- disconnect
disable                -- disable connection
import-certificate     -- import client certificate file
quit                   -- quit from prompt mode
rediscover-network     -- network rediscovery
remove-user            -- clear credential 
resubmit-hip           -- resubmit hip information
set-log                -- set debug level
show                   -- show information

7. Cara koneksi ke server VPN Palo Alto nya adalah :

$ globalprotect connect --portal myportal.example.com

Retrieving configuration...                                            
Disconnected
There is a problem with the security certificate, so the identity of 10.3.188.61 cannot be verified. Please contact the Help Desk for your organization to have the issue rectified.
Warning: The communication with 10.3.188.61 may have been compromised. We recommend that you do not continue with this connection.
Error details:Do you want to continue(y/n)?y
Retrieving configuration...                                            
Disconnected
10.3.188.61 - portal:local:Enter login credentials
username:user1
Password:
Retrieving configuration...                                            
Discovering network...
Connecting...
Connected 

8. Jika butuh certificate, maka harus di import terlebih dahulu :

$ globalprotect import-certificate --location /home/mydir/Downloads/cert_client_cert.p12 
Please input passcode:
Import certificate is successful. 

Setelah selesai import, tinggal coba connect lagi

9. Untuk Mengecek status koneksi nya :

$ globalprotect show --status
GlobalProtect status: Connected

$ globalprotect show --details           
Assigned IP address: 192.168.1.132                                      
Gateway IP address: 192.168.1.180
Protocol: IPSec
Uptime(sec): 231



Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Kamis, 24 Januari 2019

Setting Routing Metric Manual di Linux Centos 7


Bagi yang menggunakan Server Linux dengan 2 interface atau link jaringan di server nya, tentunya kita bisa memlilih untuk routing default nya akan dilewatkan link yang mana, untuk itu kita harus menentukan metric nya akan di lewatkan link yang utama.

Metric disini adalah seperti nomer prioritas pada jaringan komputer, dimana semakin kecil metric maka itu yang akan dijadikan prioritas link utama nya, misalkan saya ada 2 link, eth0 dan eth1, dimana saya berikan setting metric nya untuk eth0 adalah 100 dan eth1 adalah 10, maka traffic jaringan di server saya akan lewat link prioritas melalui eth1.

Untuk menambahkan metric ini cukup mudah, hanya tinggal di setting di ifcfg-eth nya saja :

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

atau

# vi /etc/sysconfig/network-scripts/ifcfg-eth1

Kemudian tambahkan baris berikut :

METRIC=xyz

contoh : METRIC=100

Simpan, dan restart service network nya :

# /etc/init.d/networking restart

Selesai, Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Kamis, 10 Januari 2019

Pengganti resize2fs di Centos 7 dengan xfs_growfs



Post kedua di tahun ini.. saya hanya ingin sedikit sharing mengenai pengganti perintah resize2fs di Centos 7

Biasanya kita kalau ingin melakukan resize disk LVM, biasanya langkah terakhir nya adalah menjalankan perintah resize2fs, namun perintah ini tidak akan berjalan di Linux Centos 7 :

# resize2fs /dev/centos/root
resize2fs 1.42.9 (28-Dec-2013)
resize2fs: Bad magic number in super-block while trying to open /dev/mapper/centos-root
Couldn't find valid filesystem superblock.

Solusi nya adalah menggunakan perintah : xfs_growfs

# xfs_growfs /dev/centos/root
meta-data=/dev/mapper/vg_syslog-lv_syslog isize=512    agcount=4, agsize=3931904 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=15727616, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal               bsize=4096   blocks=7679, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 15727616 to 41940992


Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

High CPU Centos 7 karena proses kswapd0



Halo.. ini adalah posting blog pertama saya di tahun 2017, ya kali ini saya ingin sedikit sharing mengenai salah satu case yang terjadi, yaitu dimana server centos 7 saya berasa lambat saat di akses.

Ketika saya cek dengan perintah "top", ternyata ada proses yang menyebabkan laod cpu nya 100% :

# top

top - 14:57:39 up 4 days, 15:09,  1 user,  load average: 1.34, 2.10, 3.88
Tasks: 219 total,   2 running, 217 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us, 12.6%sy,  0.0%ni, 87.4%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:  16333240k total, 16080744k used,   252496k free,    10120k buffers
Swap:  5242876k total,    21780k used,  5221096k free,    19012k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                               
  133 root      20   0     0    0    0 R 100.0  0.0  63:00.64 kswapd0                             
    1 root      20   0 19356  504  324 S  0.0  0.0   0:06.07 init           

Proses ini menyebabkan cpu tinggi karena server saya ternyata juga kehabisan free RAM nya :

# free
             total       used       free     shared    buffers     cached
Mem:      16333240   16077628     255612          4       9724      18576
-/+ buffers/cache:   16049328     283912
Swap:      5242876      21796    5221080

Solusi nya ya paling cepat adalah di lakukan restart OS Centos 7 nya dan semua akan normal kembali, atau bisa juga menjalankan perintah berikut :

# cat /proc/sys/vm/drop_caches
0
# echo 1 > /proc/sys/vm/drop_caches
# cat /proc/sys/vm/drop_caches
1

Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Jumat, 21 Desember 2018

Install VirtualBox 6 di Ubuntu 18.04 LTS



VirtualBox kali ini sudah mencapai versi 6 pada bulan desember 2018 ini, dimana banyak peningkatan seperti :



16.1. Version 6.0.0 (2018-12-18)

This is a major update. The following major new features were added:
  • Implemented support for exporting a virtual machine to Oracle Cloud Infrastructure
  • User interface: greatly improved HiDPI and scaling support, including better detection and per-machine configuration
  • Major rework of user interface with simpler and more powerful application and virtual machine set-up
  • User interface: a new file manager enabling user to control the guest file system and copy files between host and guest.
  • Graphics: major update of 3D graphics support for Windows guests, and VMSVGA 3D graphics device emulation on Linux and Solaris guests
  • Added support for surround speaker setups (as used by Windows 10 Build 1809)
  • Added utility vboximg-mount on Apple hosts to access the content of guest disks on the host
  • Added support for using Hyper-V as the fallback execution core on Windows host, to avoid inability to run VMs at the price of reduced performance
In addition, the following items were fixed and/or added:
  • Execution core: fixed single-stepping in certain circumstances (bug #17316)
  • User interface: video and audio recording can now be separately enabled
  • Audio/Video recording fixes and improvements
  • Audio: better support for attaching and detaching remote desktop connections
  • Serial port emulation fixes
  • Serial ports: allow changing the serial port attachment while a machine is running (bug #6115)
  • Networking: Added a workaround for older guests which do not enable bus mastering for the virtio PCI device
  • Networking: fixed wrong RCODE from DNS AAAA query with --natdnshostresolver1 (bug #18171)
  • iSCSI: In cases where there is no ambiguity, the LUN of an iSCSI target is automatically determined, for targets with non-zero LUNs
  • Transparently resize disk images when merging if possible
  • VBoxManage: support for DHCP options
  • Fixed VNC/RDP (bug 18153)
  • Guest Control: various new interfaces and features (see SDK documentation)
  • Linux hosts: support Linux 4.20 (thank you Larry Finger)
  • Solaris: installer fixes
  • Shared folders: performance improvements
  • Guest Additions: improved shared folder auto-mounting
  • Windows Guest Additions: fix incorrect tablet co-ordinate handling with recent Windows 10 builds
  • Linux Additions: fix for building vboxvideo on EL 7.6 standard kernel, contributed by Robert Conde (bug #18093)
  • Linux guests: support Linux 4.20 (thank you Larry Finger)
  • Linux guests: support VMSVGA in the Linux and X11 Additions
  • MacOS Guest Additions: initial support
  • OS/2 Guest Additions: initial shared folder support
  • BIOS fixes
  • ACPI: Up to four custom ACPI tables can now be configured for a VM

Kita bisa download disini : https://www.virtualbox.org/wiki/Downloads

Jika kita sudah install versi sebelum nya, yaitu 5.2, maka kita harus unistall dulu versi 5 nya karena tidak bisa di replace atau di update begitu saja :

$ sudo dpkg -i virtualbox-6.0_6.0.0-127566_Ubuntu_bionic_amd64.deb
Selecting previously unselected package virtualbox-6.0.
dpkg: regarding virtualbox-6.0_6.0.0-127566_Ubuntu_bionic_amd64.deb containing virtualbox-6.0:
 virtualbox-6.0 conflicts with virtualbox
  virtualbox-5.2 provides virtualbox and is present and installed.

dpkg: error processing archive virtualbox-6.0_6.0.0-127566_Ubuntu_bionic_amd64.deb (--install):
 conflicting packages - not installing virtualbox-6.0
Errors were encountered while processing:
 virtualbox-6.0_6.0.0-127566_Ubuntu_bionic_amd64.deb

Jadi harus di uninstall dulu versi sebelum nya :

$ sudo dpkg -r virtualbox-5.2 
(Reading database ... 201201 files and directories currently installed.)
Removing virtualbox-5.2 (5.2.18-124319~Ubuntu~bionic) ...
Processing triggers for shared-mime-info (1.9-2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...

Setelah itu baru kita install versi 6 ya :

$ sudo dpkg -i virtualbox-6.0_6.0.0-127566_Ubuntu_bionic_amd64.deb
(Reading database ... 200382 files and directories currently installed.)
Preparing to unpack virtualbox-6.0_6.0.0-127566_Ubuntu_bionic_amd64.deb ...
Unpacking virtualbox-6.0 (6.0.0-127566~Ubuntu~bionic) ...
Setting up virtualbox-6.0 (6.0.0-127566~Ubuntu~bionic) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Processing triggers for systemd (237-3ubuntu10.9) ...
Processing triggers for ureadahead (0.100.0-20) ...
ureadahead will be reprofiled on next reboot
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (1.9-2) ...

Setelah selesai install, lalu kita buka aplikasi VirtualBox 6 nya dan kita akan di minta untuk install VirtualBox Extension Pack nya dulu

Setelah itu virtualbox siap digunakan, dan data vm virtualbox lama juga tetap ada dan tidak hilang


Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Jumat, 09 November 2018

Cara Allow Flash Player Secara Permanen di Google Chrome




Ketika membuka vsphere melalui web browser chrome pasti akan terkendala dengan plugin flash player nya, dimana setiap akses harus allow dulu di chrome untuk flash player nya

Berikut cara agar bisa permanen untuk melakukan allow flash player di web browser chrome :

1. Buka web web browser chrome nya, ketikan di address bar : 

chrome://flags/

2. Cari settingan "Enable Ephemeral Flash Permissions" ubah menjadi disable :


3. Lalu restart (tutup dan buka lagi) web web browser chrome nya


Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Rabu, 07 November 2018

Cara Install vmware tool di Linux Centos 7



Kali ini saya ingin sedikit share, bagaimana cara nya install vmware tool di Linux Centos 7, Tujuan nya adalah agar Linux Centos 7 yang berjalan diatas platform WMware bisa berjalan dengan baik dan menggunakan driver yang optimal dan dapat dimanage juga dengan baik dari vsphere nya.

Berikut cara install vmware tool di linux centos 7 :

1. Install paket nya :

# yum install -y open-vm-tools

Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
 * base: centos.mirror.angkasa.id
 * epel: kartolo.sby.datautama.net.id
 * extras: centos.mirror.angkasa.id
 * updates: centos.mirror.angkasa.id
 * webtatic: sp.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package open-vm-tools.x86_64 0:10.1.10-3.el7_5.1 will be installed
--> Processing Dependency: xmlsec1-openssl for package: open-vm-tools-10.1.10-3.el7_5.1.x86_64
--> Processing Dependency: pciutils for package: open-vm-tools-10.1.10-3.el7_5.1.x86_64
--> Processing Dependency: libfuse.so.2(FUSE_2.6)(64bit) for package: open-vm-tools-10.1.10-3.el7_5.1.x86_64
--> Processing Dependency: libfuse.so.2(FUSE_2.5)(64bit) for package: open-vm-tools-10.1.10-3.el7_5.1.x86_64
--> Processing Dependency: fuse for package: open-vm-tools-10.1.10-3.el7_5.1.x86_64
--> Processing Dependency: libxmlsec1.so.1()(64bit) for package: open-vm-tools-10.1.10-3.el7_5.1.x86_64
--> Processing Dependency: libmspack.so.0()(64bit) for package: open-vm-tools-10.1.10-3.el7_5.1.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: open-vm-tools-10.1.10-3.el7_5.1.x86_64
--> Processing Dependency: libicuuc.so.50()(64bit) for package: open-vm-tools-10.1.10-3.el7_5.1.x86_64
--> Processing Dependency: libicui18n.so.50()(64bit) for package: open-vm-tools-10.1.10-3.el7_5.1.x86_64
--> Processing Dependency: libicudata.so.50()(64bit) for package: open-vm-tools-10.1.10-3.el7_5.1.x86_64
--> Processing Dependency: libfuse.so.2()(64bit) for package: open-vm-tools-10.1.10-3.el7_5.1.x86_64
--> Processing Dependency: libdnet.so.1()(64bit) for package: open-vm-tools-10.1.10-3.el7_5.1.x86_64
--> Running transaction check
---> Package fuse.x86_64 0:2.9.2-10.el7 will be installed
---> Package fuse-libs.x86_64 0:2.9.2-10.el7 will be installed
---> Package libdnet.x86_64 0:1.12-13.1.el7 will be installed
---> Package libicu.x86_64 0:50.1.2-15.el7 will be installed
---> Package libmspack.x86_64 0:0.5-0.5.alpha.el7 will be installed
---> Package libtool-ltdl.x86_64 0:2.4.2-22.el7_3 will be installed
---> Package pciutils.x86_64 0:3.5.1-3.el7 will be installed
---> Package xmlsec1.x86_64 0:1.2.20-7.el7_4 will be installed
---> Package xmlsec1-openssl.x86_64 0:1.2.20-7.el7_4 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================
 Package                       Arch                 Version                           Repository             Size
==================================================================================================================
Installing:
 open-vm-tools                 x86_64               10.1.10-3.el7_5.1                 updates               672 k
Installing for dependencies:
 fuse                          x86_64               2.9.2-10.el7                      base                   86 k
 fuse-libs                     x86_64               2.9.2-10.el7                      base                   93 k
 libdnet                       x86_64               1.12-13.1.el7                     base                   31 k
 libicu                        x86_64               50.1.2-15.el7                     base                  6.9 M
 libmspack                     x86_64               0.5-0.5.alpha.el7                 base                   64 k
 libtool-ltdl                  x86_64               2.4.2-22.el7_3                    base                   49 k
 pciutils                      x86_64               3.5.1-3.el7                       base                   93 k
 xmlsec1                       x86_64               1.2.20-7.el7_4                    base                  177 k
 xmlsec1-openssl               x86_64               1.2.20-7.el7_4                    base                   76 k

Transaction Summary
==================================================================================================================
Install  1 Package (+9 Dependent packages)

Total download size: 8.2 M
Installed size: 28 M
Downloading packages:
(1/10): fuse-libs-2.9.2-10.el7.x86_64.rpm                                                  |  93 kB  00:00:00   
(2/10): fuse-2.9.2-10.el7.x86_64.rpm                                                       |  86 kB  00:00:00   
(3/10): libdnet-1.12-13.1.el7.x86_64.rpm                                                   |  31 kB  00:00:00   
(4/10): libmspack-0.5-0.5.alpha.el7.x86_64.rpm                                             |  64 kB  00:00:00   
(5/10): libtool-ltdl-2.4.2-22.el7_3.x86_64.rpm                                             |  49 kB  00:00:00   
(6/10): xmlsec1-1.2.20-7.el7_4.x86_64.rpm                                                  | 177 kB  00:00:00   
(7/10): pciutils-3.5.1-3.el7.x86_64.rpm                                                    |  93 kB  00:00:00   
(8/10): open-vm-tools-10.1.10-3.el7_5.1.x86_64.rpm                                         | 672 kB  00:00:00   
(9/10): xmlsec1-openssl-1.2.20-7.el7_4.x86_64.rpm                                          |  76 kB  00:00:00   
(10/10): libicu-50.1.2-15.el7.x86_64.rpm                                                   | 6.9 MB  00:00:00   
------------------------------------------------------------------------------------------------------------------
Total                                                                             9.2 MB/s | 8.2 MB  00:00:00   
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libtool-ltdl-2.4.2-22.el7_3.x86_64                                                            1/10
  Installing : xmlsec1-1.2.20-7.el7_4.x86_64                                                                 2/10
  Installing : xmlsec1-openssl-1.2.20-7.el7_4.x86_64                                                         3/10
  Installing : libmspack-0.5-0.5.alpha.el7.x86_64                                                            4/10
  Installing : pciutils-3.5.1-3.el7.x86_64                                                                   5/10
  Installing : fuse-2.9.2-10.el7.x86_64                                                                      6/10
  Installing : fuse-libs-2.9.2-10.el7.x86_64                                                                 7/10
  Installing : libicu-50.1.2-15.el7.x86_64                                                                   8/10
  Installing : libdnet-1.12-13.1.el7.x86_64                                                                  9/10
  Installing : open-vm-tools-10.1.10-3.el7_5.1.x86_64                                                       10/10
  Verifying  : libdnet-1.12-13.1.el7.x86_64                                                                  1/10
  Verifying  : xmlsec1-openssl-1.2.20-7.el7_4.x86_64                                                         2/10
  Verifying  : libicu-50.1.2-15.el7.x86_64                                                                   3/10
  Verifying  : xmlsec1-1.2.20-7.el7_4.x86_64                                                                 4/10
  Verifying  : fuse-libs-2.9.2-10.el7.x86_64                                                                 5/10
  Verifying  : libtool-ltdl-2.4.2-22.el7_3.x86_64                                                            6/10
  Verifying  : fuse-2.9.2-10.el7.x86_64                                                                      7/10
  Verifying  : pciutils-3.5.1-3.el7.x86_64                                                                   8/10
  Verifying  : open-vm-tools-10.1.10-3.el7_5.1.x86_64                                                        9/10
  Verifying  : libmspack-0.5-0.5.alpha.el7.x86_64                                                           10/10

Installed:
  open-vm-tools.x86_64 0:10.1.10-3.el7_5.1                                                                       

Dependency Installed:
  fuse.x86_64 0:2.9.2-10.el7      fuse-libs.x86_64 0:2.9.2-10.el7        libdnet.x86_64 0:1.12-13.1.el7         
  libicu.x86_64 0:50.1.2-15.el7   libmspack.x86_64 0:0.5-0.5.alpha.el7   libtool-ltdl.x86_64 0:2.4.2-22.el7_3   
  pciutils.x86_64 0:3.5.1-3.el7   xmlsec1.x86_64 0:1.2.20-7.el7_4        xmlsec1-openssl.x86_64 0:1.2.20-7.el7_4 

Complete!

2. Cek apakah sudah berhasil terinstall :

# ls /usr/bin/vmtoolsd
/usr/bin/vmtoolsd

3. Restart linux centos 7 nya :

# reboot


Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Cara Install ifconfig di Linux Centos 7



Di linux centos 7, secara default setelah melakukan instalasi dengan mode minimal kita tidak akan menemukan perintah "ifconfig", yang ada adalah "nmcli d" atau "ip addr".

Bagi sebagian orang yang sudah terbiasa di centos 6 dan juga menggunakan perintah "ifconfig", tentunya akan kehilangan, Untuk itu kita masih bisa menggunakan perintah "ifconfig" dengan melakukan instalasi paket tambahan.

Cara nya adalah :

1. Install paket net-tools

# yum install net-tools

Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
 * base: centos.mirror.angkasa.id
 * epel: kartolo.sby.datautama.net.id
 * extras: centos.mirror.angkasa.id
 * updates: centos.mirror.angkasa.id
 * webtatic: sp.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package net-tools.x86_64 0:2.0-0.22.20131004git.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================
 Package                  Arch                  Version                                 Repository           Size
==================================================================================================================
Installing:
 net-tools                x86_64                2.0-0.22.20131004git.el7                base                305 k

Transaction Summary
==================================================================================================================
Install  1 Package

Total download size: 305 k
Installed size: 917 k
Is this ok [y/d/N]: y
Downloading packages:
net-tools-2.0-0.22.20131004git.el7.x86_64.rpm                                              | 305 kB  00:00:00   
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : net-tools-2.0-0.22.20131004git.el7.x86_64                                                      1/1
  Verifying  : net-tools-2.0-0.22.20131004git.el7.x86_64                                                      1/1

Installed:
  net-tools.x86_64 0:2.0-0.22.20131004git.el7                                                                   

Complete!


2. Selesai, kita coba, seharus nya saat ini sudah ada perintah "ifconfig" di linux centos 7

# ifconfig

Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com

Registered linux user : ID 40017