linux

linux

Kamis, 19 Januari 2012

compress

How can I compress a whole directory under Linux / UNIX using a shell prompt?A. It is very easy to compress a Whole Linux/UNIX directory. It is useful to backup files, email all files, or even to send software you have created to friends. Technically, it is called as a compressed archive. GNU tar command is best for this work. It can be use on remote Linux or UNIX server. It does two things for you:
=> Create the archive
=> Compress the archive
You need to use tar command as follows (syntax of tar command):
tar -zcvf archive-name.tar.gz directory-name
Where,
  • -z: Compress archive using gzip program
  • -c: Create archive
  • -v: Verbose i.e display progress while creating archive
  • -f: Archive File name
For example, you have directory called /home/jerry/prog and you would like to compress this directory then you can type tar command as follows:
$ tar -zcvf prog-1-jan-2005.tar.gz /home/jerry/prog
Above command will create an archive file called prog-1-jan-2005.tar.gz in current directory. If you wish to restore your archive then you need to use following command (it will extract all files in current directory):
$ tar -zxvf prog-1-jan-2005.tar.gz
Where,
  • -x: Extract files
If you wish to extract files in particular directory, for example in /tmp then you need to use following command:
$ tar -zxvf prog-1-jan-2005.tar.gz -C /tmp
$ cd /tmp
$ ls -

Selasa, 17 Januari 2012

upgrade backup and restore postgres with streaming replication

back up :

/usr/local/pgsql/bin/pg_dumpall > /opt/db/backupfile.dat


shutdown old server

/usr/local/pgsql/bin/pg_ctl -D /opt/db/data stop -m fast

rename directory

mv /usr/local/pgsql /usr/local/pgsql_old

mv /opt/db/data /opt/db/data_old

------------------------------------------------------------
prepare primary
install postgresql 9.02

./configure --with-openssl --with-tcl --enable-thread-safety ----enable-multibyte=UNICODE
make
make install
mkdir /opt/db/data
chown postgres /opt/db/data
su - postgres
/usr/local/pgsql/bin/initdb -D /opt/db/data

create folder
archive
pg_log
create pghba.conf  ---> see the old pg_hba.conf
create postgresql.conf (SR)  ---> see the old postgresql.conf

for streaming replication see :http://masis-9.blogspot.com/2011/12/streaming-replikasi-di-postgresql.html

start postgres

/usr/local/pgsql/bin/pg_ctl -D /opt/db/data start

---------------------------------------------------------------
prepare the slave

./configure
make
make install
mkdir /opt/db/data
chown postgres /opt/db/data
/usr/local/pgsql/bin/initdb -D /opt/db/data

config the slave for streaming replication see : http://masis-9.blogspot.com/2011/12/streaming-replikasi-di-postgresql.html

primary :
su - postgres
$/usr/local/pgsql/bin/psql -c "SELECT pg_start_backup('label',true)"
$rsync -a -v -e ssh /opt/db/data/ 192.168.168.210:/opt/db/data/ --exclude postmaster.pid
$ /usr/local/pgsql/bin/psql -c "SELECT pg_stop_backup()"

edit postgresql.conf at slave :
hot_standby = on

copy recovery.conf to slave
edit recovery.conf tersebut :
restore_command = 'cp  /opt/db/data/archive/%f "%p"'
standby_mode = 'on'
primary_conninfo = 'host=192.168.1.210 port=5432 user=postgres'         #ip primary
trigger_file = '/opt/db/data/failover'

start postgres at slave
--------------------------------------------------------------

make sure steaming running well

di standby :
$/usr/local/pgsql/bin/psql -c "SELECT pg_last_xlog_receive_location()"
di primary  :
$/usr/local/pgsql/bin/psql -c "SELECT pg_current_xlog_location()"

di primary :
$ ps -ef | grep sender
di standby
$ ps -ef | grep receiver

-----------------------------------------------------------
streaming replication running well

at primary restore database
contoh restore dr 192.168.188.31 ke 192.168.188.131
/usr/local/pgsql/bin/psql -f backupfile160112f.dat postgres

/usr/local/pgsql/bin/ls
 /opt/db/backupfile.dat

===================================================================
if anything going to worst  you can 
prepare back to old postgres

shuttingdown slave
/usr/local/pgsql/bin/pg_ctl -D /opt/db/data stop -m fast

shuttingdown primary
/usr/local/pgsql/bin/pg_ctl -D /opt/db/data stop -m fast

make sure both ( slave and primary ) database not running

rename new database
mv /usr/local/pgsql /usr/local/pgsql_new
mv /opt/db/data /opt/drop database jsxdfeed;db/data_new

rename back the old database

mv /usr/local/pgsql_old  /usr/local/pgsql
mv /opt/db/data_old  /opt/db/data

start the old postgres
/usr/local/pgsql/bin/pg_ctl -D /opt/db/data start
-------------------------------------------------------
=====================================================
======================================================

/usr/local/pgsql/bin/pg_dump -h 192.168.88.23 -U lima -Fc jsxdfeed -f jsxdfeed.dump -v
=========================================================================================
/usr/local/pgsql/bin/pg_dumpall -h 192.168.1.220 -f bacupdata.dat  -U totok

/usr/local/pgsql/bin/pg_dumpall -h 192.168.1.220 -f bacupdata.dat -v /
/usr/local/pgsql/bin/pg_dump -h 192.168.1.220 -f bacupdata.dat  -U totok -Fc jsxdfeed
---------------------------------------------------------------
/usr/local/pgsql/bin/psql -f backupfile.dat postgres

membuat konsol muncul lewat command line

xterm -e "cal -y|less"
terminal -e " ping 192.168.1.1"

xterm -e "/mnt/sdb/Docu/akong/bisa/cekdb.tcl|less"

xterm -e "cal -y; sleep 10"
 dengan pemberian sleep selama 10 detik

#!/bin/bash
#file name: run.sh

gnome-terminal -x sh -c "ls -l | less"
chmod +x run.sh  [do not run each time]
./run.sh
 

Selasa, 10 Januari 2012

apache

biar browser bisa buka misal
sudah bisa buka : www.pasarminggu.com
juga pengin bisa buka dengan pasarminggu.com
di address bar browser maka yang disetting ada di dns
contoh dns : di IN   A  180.121.241.4
ada di /var/named/barnews.com
----------------------------------------------------------------------------------
$TTL 604800
@               IN      SOA     ns1.pasarminggu.com.     hostmaster.ns1.pasarminggu.com. (
                        2000052210 ; serial
                        3600 ; refresh
                        900 ; retry
                        1209600 ; expire
                        43200 ; default_ttl
                        )
                   IN      A       180.121.241.4
                             NS      ns1.pasarminggu.com.
                             NS      ns2.pasarminggu.com.
                   IN      MX      1       mail.pasarminggu.com.
localhost               A       127.0.0.1
ns1             IN      A       180.121.241.10
ns2             IN      A       202.142.223.53
mail            IN      A       180.121.241.14
www           IN      A       180.121.241.4
----------------------------------------------------------------
sama dengan setting di apache
/etc/httpd/extra/httpd-vhosts.confdi default hostnya diarahin yg sama di documenrootnya:

<VirtualHost *:80>
        ServerAdmin webmaster@pasarminggu.com
        DocumentRoot "/DOMAIN/www.pasarminggu.com/html"
        ServerName pasarminggu.com
        <Directory "/DOMAIN/www.pasarminggu.com/html">
                Options Indexes FollowSymLinks
                #AllowOverride None
                AllowOverride AuthConfig
                Order allow,deny
                Allow from all
        </Directory>

<VirtualHost *:80>
        ServerAdmin webmaster@ips.co.id
        DocumentRoot "/DOMAIN/www.pasarminggu.com/html"
        ServerName www.pasarminggu.com
        ErrorLog "/LOG/www.pasarminggu.com/error_log"
        CustomLog "/LOG/www.pasarminggu.com/custom_log" common
        TransferLog "/LOG/www.pasarminggu.com/transfer_log"
        <Directory "/DOMAIN/www.pasarminggu.com/html">
                Options Indexes FollowSymLinks
                #AllowOverride None
                AllowOverride AuthConfig
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>

Jumat, 06 Januari 2012

ospf

ini hanya catattanku aja mengenai ospf di mikrotik


MikroTik RouterOS 4.15 (c) 1999-2010 http://www.mikrotik.com/
[admin@MikroTik] > system identity set name=HO-RB1100
[admin@HO-RB1100] > ip address add address=192.168.1.1/24 interface=ether
1
failure: already have such address
[admin@HO-RB1100] > ip address print
[admin@HO-RB1100] > ping 172.16.0.10 
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.5.1/24 192.168.5.0 192.168.5.255 ether5
1 172.16.0.10/30 172.16.0.8 172.16.0.11 ether1
[admin@napinfo] > ip address add address=172.16.0.6/30 interface=ether2
[admin@napinfo] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.5.1/24 192.168.5.0 192.168.5.255 ether5
1 172.16.0.10/30 172.16.0.8 172.16.0.11 ether1
2 172.16.0.6/30 172.16.0.4 172.16.0.7 ether2
[admin@napinfo] > ip address add address=192.168.188.1/24 interface=ether
3
[admin@napinfo] > ip address print Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.5.1/24 192.168.5.0 192.168.5.255 ether5
1 172.16.0.10/30 172.16.0.8 172.16.0.11 ether1
2 172.16.0.6/30 172.16.0.4 172.16.0.7 ether2
3 192.168.188.1/24 192.168.188.0 192.168.188.255 ether3
[admin@napinfo] > ping 172.16.0.9
172.16.0.9 64 byte ping: ttl=64 time=4 ms
172.16.0.9 64 byte ping: ttl=64 time<1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/2.0/4 ms
[admin@napinfo] > ping 172.16.0.5
172.16.0.5 64 byte ping: ttl=64 time<1 ms
172.16.0.5 64 byte ping: ttl=64 time<1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0.0/0 ms
[admin@napinfo] > ping 192.168.188.212
192.168.188.212 64 byte ping: ttl=64 time=10 ms
192.168.188.212 64 byte ping: ttl=64 time<1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/5.0/10 ms
[admin@napinfo] > ping 192.168.188.212
192.168.188.212 64 byte ping: ttl=64 time<1 ms
192.168.188.212 64 byte ping: ttl=64 time<1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0.0/0 ms
[admin@napinfo] > routing ospf instance add name=default
failure: duplicated name
[admin@napinfo] > routing ospf instance print
Flags: X - disabled
0 name="default" router-id=0.0.0.0 distribute-default=never
redistribute-connected=no redistribute-static=no
redistribute-rip=no redistribute-bgp=no
redistribute-other-ospf=no metric-default=1 metric-connected=20
metric-static=20 metric-rip=20 metric-bgp=auto
metric-other-ospf=auto in-filter=ospf-in out-filter=ospf-out
[admin@napinfo] > interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE MTU L2MTU
0 R ether1 ether 1500 1524
1 R ether2 ether 1500 1524
2 R ether3 ether 1500 1524
3 ether4 ether 1500 1524
4 R ether5 ether 1500 1524
[admin@napinfo] > interface bridge add name=loopback
[admin@napinfo] > ip address add address=10.255.255.1/32 interface=loopback
[admin@napinfo] > routing ospf instance set 0 router-id=10.255.255.1
[admin@napinfo] > routing ospf instance print Flags: X - disabled
0 name="default" router-id=10.255.255.1 distribute-default=never
redistribute-connected=no redistribute-static=no
redistribute-rip=no redistribute-bgp=no
redistribute-other-ospf=no metric-default=1 metric-connected=20
metric-static=20 metric-rip=20 metric-bgp=auto
metric-other-ospf=auto in-filter=ospf-in out-filter=ospf-out
[admin@napinfo] > routing ospf network add network=192.168.188.0/24 area=backbone
[admin@napinfo] > routing ospf network add network=172.16.0.0/24 area=backbone
[admin@napinfo] > routing ospf interface print Flags: X - disabled, I - inactive, D - dynamic, P - passive
# INTERFACE COST PRI NETWORK-TYPE AUT... AUTHENTICATIO...
0 D ether3 10 1 broadcast none
1 D ether1 10 1 broadcast none
2 D ether2 10 1 broadcast none
[admin@napinfo] > routing ospf neighbor print
0 instance=default router-id=10.255.255.1 address=172.16.0.9
interface=ether1 priority=1 dr-address=172.16.0.9
backup-dr-address=172.16.0.10 state="ExStart" state-changes=228
ls-retransmits=0 ls-requests=0 db-summaries=0
[admin@napinfo] > routing ospf neighbor print
0 instance=default router-id=10.255.255.1 address=172.16.0.5
interface=ether2 priority=1 dr-address=172.16.0.6
backup-dr-address=172.16.0.5 state="2-Way" state-changes=235
ls-retransmits=0 ls-requests=0 db-summaries=0

1 instance=default router-id=10.255.255.1 address=172.16.0.9
interface=ether1 priority=1 dr-address=172.16.0.9
backup-dr-address=172.16.0.10 state="2-Way" state-changes=1031
ls-retransmits=0 ls-requests=0 db-summaries=0
[admin@napinfo] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADC 10.255.255.1/32 10.255.255.1 loopback 0
1 ADC 172.16.0.4/30 172.16.0.6 ether2 0
2 ADC 172.16.0.8/30 172.16.0.10 ether1 0
3 ADC 192.168.5.0/24 192.168.5.1 ether5 0
4 ADC 192.168.188.0/24 192.168.188.1 ether3 0
[admin@napinfo] > routing ospf neighbor print
0 instance=default router-id=10.255.255.1 address=172.16.0.5
interface=ether2 priority=1 dr-address=172.16.0.6
backup-dr-address=172.16.0.5 state="2-Way" state-changes=3175
ls-retransmits=0 ls-requests=0 db-summaries=0

1 instance=default router-id=10.255.255.1 address=172.16.0.9
interface=ether1 priority=1 dr-address=172.16.0.9
backup-dr-address=172.16.0.10 state="2-Way" state-changes=3971
ls-retransmits=0 ls-requests=0 db-summaries=0
[admin@napinfo] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.5.1/24 192.168.5.0 192.168.5.255 ether5
1 172.16.0.10/30 172.16.0.8 172.16.0.11 ether1
2 172.16.0.6/30 172.16.0.4 172.16.0.7 ether2
3 192.168.188.1/24 192.168.188.0 192.168.188.255 ether3
4 10.255.255.1/32 10.255.255.1 10.255.255.1 loopback
[admin@napinfo] > ping 192.168.188.212
192.168.188.212 64 byte ping: ttl=64 time=6 ms
192.168.188.212 64 byte ping: ttl=64 time<1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/3.0/6 ms
[admin@napinfo] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADC 10.255.255.1/32 10.255.255.1 loopback 0
1 ADC 172.16.0.4/30 172.16.0.6 ether2 0
2 ADC 172.16.0.8/30 172.16.0.10 ether1 0
3 ADC 192.168.5.0/24 192.168.5.1 ether5 0
4 ADC 192.168.188.0/24 192.168.188.1 ether3 0
[admin@napinfo] > ping 192.168.188.212
192.168.188.212 64 byte ping: ttl=64 time<1 ms
192.168.188.212 64 byte ping: ttl=64 time<1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0.0/0 ms
[admin@napinfo] > ping 192.168.88.211
no route to host
no route to host
no route to host
3 packets transmitted, 0 packets received, 100% packet loss
[admin@napinfo] > routing ospf neighbor print
0 instance=default router-id=10.255.255.1 address=172.16.0.5
interface=ether2 priority=1 dr-address=172.16.0.6
backup-dr-address=172.16.0.5 state="2-Way" state-changes=17020
ls-retransmits=0 ls-requests=0 db-summaries=0

1 instance=default router-id=10.255.255.1 address=172.16.0.9
interface=ether1 priority=1 dr-address=172.16.0.9
backup-dr-address=172.16.0.10 state="2-Way" state-changes=17105
ls-retransmits=0 ls-requests=0 db-summaries=0
[admin@napinfo] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADC 10.255.255.1/32 10.255.255.1 loopback 0
1 ADC 172.16.0.4/30 172.16.0.6 ether2 0
2 ADC 172.16.0.8/30 172.16.0.10 ether1 0
3 ADC 192.168.5.0/24 192.168.5.1 ether5 0
4 ADC 192.168.188.0/24 192.168.188.1 ether3 0
[admin@napinfo] > routing ospf neighbor print
0 instance=default router-id=10.255.255.1 address=172.16.0.5
interface=ether2 priority=1 dr-address=172.16.0.6
backup-dr-address=172.16.0.5 state="2-Way" state-changes=27046
ls-retransmits=0 ls-requests=0 db-summaries=0

1 instance=default router-id=10.255.255.1 address=172.16.0.9
interface=ether1 priority=1 dr-address=172.16.0.9
backup-dr-address=172.16.0.10 state="2-Way" state-changes=26732
ls-retransmits=0 ls-requests=0 db-summaries=0
[admin@napinfo] > routing ospf network print
Flags: X - disabled, I - invalid
# NETWORK AREA
0 192.168.188.0/24 backbone
1 172.16.0.0/24 backbone
[admin@napinfo] > routing ospf instance set redistribute-connected=as-type-1
numbers: 0
[admin@napinfo] > routing ospf instance set redistribute-static=as-type-1
numbers: 0
[admin@napinfo] > routing ospf network print Flags: X - disabled, I - invalid
# NETWORK AREA
0 192.168.188.0/24 backbone
1 172.16.0.0/24 backbone
[admin@napinfo] > ip route print Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADC 10.255.255.1/32 10.255.255.1 loopback 0
1 ADC 172.16.0.4/30 172.16.0.6 ether2 0
2 ADC 172.16.0.8/30 172.16.0.10 ether1 0
3 ADC 192.168.5.0/24 192.168.5.1 ether5 0
4 ADC 192.168.188.0/24 192.168.188.1 ether3 0
[admin@napinfo] > interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE MTU L2MTU
0 R ether1 ether 1500 1524
1 R ether2 ether 1500 1524
2 R ether3 ether 1500 1524
3 ether4 ether 1500 1524
4 R ether5 ether 1500 1524
5 R loopback bridge 1500 65535
[admin@napinfo] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.5.1/24 192.168.5.0 192.168.5.255 ether5
1 172.16.0.10/30 172.16.0.8 172.16.0.11 ether1
2 172.16.0.6/30 172.16.0.4 172.16.0.7 ether2
3 192.168.188.1/24 192.168.188.0 192.168.188.255 ether3
4 10.255.255.1/32 10.255.255.1 10.255.255.1 loopback
[admin@napinfo] > ip address add comment disable edit enable export find print remove set
[admin@napinfo] > ip address remove numbers=4

==================================
tambahan untuk router id antara router satu dengan yang lain harus beda
==============================
[admin@napinfo] > ip address add address=10.255.255.2/32 interface=loopback
[admin@napinfo] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADC 10.255.255.2/32 10.255.255.2 loopback 0
1 ADC 172.16.0.4/30 172.16.0.6 ether2 0
2 ADC 172.16.0.8/30 172.16.0.10 ether1 0
3 ADC 192.168.5.0/24 192.168.5.1 ether5 0
4 ADC 192.168.188.0/24 192.168.188.1 ether3 0
[admin@napinfo] > routing ospf instance set 0 router-id=10.255.255.2
[admin@napinfo] > ip route print Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADo 10.255.255.1/32 172.16.0.9 110
1 ADC 10.255.255.2/32 10.255.255.2 loopback 0
2 ADo 172.16.0.0/30 172.16.0.9 110
3 ADC 172.16.0.4/30 172.16.0.6 ether2 0
4 ADC 172.16.0.8/30 172.16.0.10 ether1 0
5 ADo 192.168.1.0/24 172.16.0.9 110
6 ADC 192.168.5.0/24 192.168.5.1 ether5 0
7 ADC 192.168.188.0/24 192.168.188.1 ether3 0
[admin@napinfo] >



****************************************************************************************************************************************************************
R3

[admin@indonet] > system reset-configuration keep-users=yes no-defaults=
yes
Dangerous! Reset anyway? [y/N]:
y
system configuration will be reset
Connection to 192.168.5.2 closed by remote host.
Connection to 192.168.5.2 closed.
admin@nec-ubuntu:~$ ssh 192.168.5.2
The authenticity of host '192.168.5.2 (192.168.5.2)' can't be established.
DSA key fingerprint is 64:cc:3b:f9:22:de:04:6d:42:82:e9:95:67:ab:a7:e5.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.5.2' (DSA) to the list of known hosts.






MMM MMM KKK TTTTTTTTTTT KKK
MMMM MMMM KKK TTTTTTTTTTT KKK
MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK
MMM MM MMM III KKKKK RRR RRR OOO OOO TTT III KKKKK
MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK
MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK

MikroTik RouterOS 4.14 (c) 1999-2010 http://www.mikrotik.com/

[admin@MikroTik] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.5.2/24 192.168.5.0 192.168.5.255 ether5
[admin@MikroTik] > system identity
edit export get print set
[admin@MikroTik] > system identity set name=indonet
[admin@indonet] > ip address add address=172.16.0.2/30 interface=ether1
[admin@indonet] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.5.2/24 192.168.5.0 192.168.5.255 ether5
1 172.16.0.2/30 172.16.0.0 172.16.0.3 ether1
[admin@indonet] > ping 172.16.0.1
172.16.0.1 64 byte ping: ttl=64 time=9 ms
172.16.0.1 64 byte ping: ttl=64 time<1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/4.5/9 ms
[admin@indonet] > ip address add address=172.16.0.5/30 interface=ether3
[admin@indonet] > ip address add address=192.168.88.1/24 interface=ether
2
[admin@indonet] > ping 172.16.0.6
172.16.0.6 64 byte ping: ttl=64 time=4 ms
172.16.0.6 64 byte ping: ttl=64 time<1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/2.0/4 ms
[admin@indonet] > ping 192.168.88.211
192.168.88.211 ping timeout
2 packets transmitted, 0 packets received, 100% packet loss
[admin@indonet] > ping 192.168.88.212
192.168.88.212 ping timeout
192.168.88.212 ping timeout
3 packets transmitted, 0 packets received, 100% packet loss
[admin@indonet] > ip address print Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.5.2/24 192.168.5.0 192.168.5.255 ether5
1 172.16.0.2/30 172.16.0.0 172.16.0.3 ether1
2 172.16.0.5/30 172.16.0.4 172.16.0.7 ether3
3 192.168.88.1/24 192.168.88.0 192.168.88.255 ether2
[admin@indonet] > ping 192.168.88.211
192.168.88.211 64 byte ping: ttl=64 time<1 ms
192.168.88.211 64 byte ping: ttl=64 time<1 ms
192.168.88.211 64 byte ping: ttl=64 time<1 ms
192.168.88.211 64 byte ping: ttl=64 time<1 ms
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0/0.0/0 ms
[admin@indonet] > routing ospf instance print
Flags: X - disabled
0 name="default" router-id=0.0.0.0 distribute-default=never
redistribute-connected=no redistribute-static=no
redistribute-rip=no redistribute-bgp=no
redistribute-other-ospf=no metric-default=1 metric-connected=20
metric-static=20 metric-rip=20 metric-bgp=auto
metric-other-ospf=auto in-filter=ospf-in out-filter=ospf-out
[admin@indonet] > routing ospf instance add name=default
failure: duplicated name
[admin@indonet] > interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE MTU L2MTU
0 R ether1 ether 1500 1524
1 R ether2 ether 1500 1524
2 R ether3 ether 1500 1524
3 ether4 ether 1500 1524
4 R ether5 ether 1500 1524
[admin@indonet] > interface bridge add name=loopback
[admin@indonet] > ip address add address=10.255.255.1/32 interface=loopback
[admin@indonet] > routing ospf instance set 0 router-id=10.255.255.1
[admin@indonet] > routing ospf instance print Flags: X - disabled
0 name="default" router-id=10.255.255.1 distribute-default=never
redistribute-connected=no redistribute-static=no
redistribute-rip=no redistribute-bgp=no
redistribute-other-ospf=no metric-default=1 metric-connected=20
metric-static=20 metric-rip=20 metric-bgp=auto
metric-other-ospf=auto in-filter=ospf-in out-filter=ospf-out
[admin@indonet] > routing ospf network add network=192.168.88.0/24 area=
backbone
[admin@indonet] > routing ospf network add network=172.16.0.0/24 area=backbone
[admin@indonet] > routing ospf interface print
Flags: X - disabled, I - inactive, D - dynamic, P - passive
# INTERFACE COST PRI NETWORK-TYPE AUT... AUTHENTICATIO...
0 D ether2 10 1 broadcast none
1 D ether3 10 1 broadcast none
2 D ether1 10 1 broadcast none
[admin@indonet] > routing ospf neighbor print
0 instance=default router-id=10.255.255.1 address=172.16.0.1
interface=ether1 priority=1 dr-address=172.16.0.1
backup-dr-address=172.16.0.2 state="2-Way" state-changes=206
ls-retransmits=0 ls-requests=0 db-summaries=0

1 instance=default router-id=10.255.255.1 address=172.16.0.6
interface=ether3 priority=1 dr-address=172.16.0.6
backup-dr-address=172.16.0.5 state="2-Way" state-changes=212
ls-retransmits=0 ls-requests=0 db-summaries=0
[admin@indonet] > ping 192.168.88.211
192.168.88.211 64 byte ping: ttl=64 time=1 ms
192.168.88.211 64 byte ping: ttl=64 time<1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0.5/1 ms
[admin@indonet] > ip route cache rule add disable enable find remove unset
nexthop vrf comment edit export print set
[admin@indonet] > ip route print
append detail follow-only terse without-paging
brief file from value-list
count-only follow interval where
[admin@indonet] > ip route print detail
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
0 ADC dst-address=10.255.255.1/32 pref-src=10.255.255.1
gateway=loopback gateway-status=loopback reachable distance=0
scope=10

1 ADC dst-address=172.16.0.0/30 pref-src=172.16.0.2 gateway=ether1
gateway-status=ether1 reachable distance=0 scope=10

2 ADC dst-address=172.16.0.4/30 pref-src=172.16.0.5 gateway=ether3
gateway-status=ether3 reachable distance=0 scope=10

3 ADC dst-address=192.168.5.0/24 pref-src=192.168.5.2 gateway=ether5
gateway-status=ether5 reachable distance=0 scope=10

4 ADC dst-address=192.168.88.0/24 pref-src=192.168.88.1
gateway=ether2 gateway-status=ether2 reachable distance=0
scope=10
[admin@indonet] > routing ospf neighbor print
0 instance=default router-id=10.255.255.1 address=172.16.0.1
interface=ether1 priority=1 dr-address=172.16.0.1
backup-dr-address=172.16.0.2 state="2-Way" state-changes=24824
ls-retransmits=0 ls-requests=0 db-summaries=0

1 instance=default router-id=10.255.255.1 address=172.16.0.6
interface=ether3 priority=1 dr-address=172.16.0.6
backup-dr-address=172.16.0.5 state="2-Way" state-changes=26693
ls-retransmits=0 ls-requests=0 db-summaries=0
[admin@indonet] > ip route print detail
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
0 ADC dst-address=10.255.255.1/32 pref-src=10.255.255.1
gateway=loopback gateway-status=loopback reachable distance=0
scope=10

1 ADC dst-address=172.16.0.0/30 pref-src=172.16.0.2 gateway=ether1
gateway-status=ether1 reachable distance=0 scope=10

2 ADC dst-address=172.16.0.4/30 pref-src=172.16.0.5 gateway=ether3
gateway-status=ether3 reachable distance=0 scope=10

3 ADC dst-address=192.168.5.0/24 pref-src=192.168.5.2 gateway=ether5
gateway-status=ether5 reachable distance=0 scope=10
4 ADC dst-address=192.168.88.0/24 pref-src=192.168.88.1
gateway=ether2 gateway-status=ether2 reachable distance=0
scope=10
[admin@indonet] > routing ospf neighbor print
0 instance=default router-id=10.255.255.1 address=172.16.0.1
interface=ether1 priority=1 dr-address=172.16.0.1
backup-dr-address=172.16.0.2 state="2-Way" state-changes=24884
ls-retransmits=0 ls-requests=0 db-summaries=0

1 instance=default router-id=10.255.255.1 address=172.16.0.6
interface=ether3 priority=1 dr-address=172.16.0.6
backup-dr-address=172.16.0.5 state="2-Way" state-changes=26753
ls-retransmits=0 ls-requests=0 db-summaries=0
[admin@indonet] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADC 10.255.255.1/32 10.255.255.1 loopback 0
1 ADC 172.16.0.0/30 172.16.0.2 ether1 0
2 ADC 172.16.0.4/30 172.16.0.5 ether3 0
3 ADC 192.168.5.0/24 192.168.5.2 ether5 0
4 ADC 192.168.88.0/24 192.168.88.1 ether2 0
[admin@indonet] > routing ospf interface print
Flags: X - disabled, I - inactive, D - dynamic, P - passive
# INTERFACE COST PRI NETWORK-TYPE AUT... AUTHENTICATIO...
0 D ether2 10 1 broadcast none
1 D ether3 10 1 broadcast none
2 D ether1 10 1 broadcast none
[admin@indonet] > routing ospf instance print Flags: X - disabled
0 name="default" router-id=10.255.255.1 distribute-default=never
redistribute-connected=no redistribute-static=no
redistribute-rip=no redistribute-bgp=no
redistribute-other-ospf=no metric-default=1 metric-connected=20
metric-static=20 metric-rip=20 metric-bgp=auto
metric-other-ospf=auto in-filter=ospf-in out-filter=ospf-out
[admin@indonet] > routing ospf instance set
default in-filter metric-static router-id
comment metric-bgp mpls-te-area routing-table
disabled metric-connected mpls-te-router-id numbers
distribute-default metric-default name
domain-id metric-other-ospf out-filter
domain-tag metric-rip redistribute-...
[admin@indonet] > routing ospf instance set redistribute-connected=
[admin@indonet] > routing ospf network print
Flags: X - disabled, I - invalid
# NETWORK AREA
0 192.168.88.0/24 backbone
1 172.16.0.0/24 backbone
[admin@indonet] > routing ospf instance set redistribute-connected=as-type-1
numbers: 0
[admin@indonet] > routing ospf instance set redistribute-static=as-type-1
numbers: 0
[admin@indonet] > routing ospf network print Flags: X - disabled, I - invalid
# NETWORK AREA
0 192.168.88.0/24 backbone
1 172.16.0.0/24 backbone
[admin@indonet] > ip route print Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADC 10.255.255.1/32 10.255.255.1 loopback 0
1 ADC 172.16.0.0/30 172.16.0.2 ether1 0
2 ADC 172.16.0.4/30 172.16.0.5 ether3 0
3 ADC 192.168.5.0/24 192.168.5.2 ether5 0
4 ADC 192.168.88.0/24 192.168.88.1 ether2 0
[admin@indonet] > interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE MTU L2MTU
0 R ether1 ether 1500 1524
1 R ether2 ether 1500 1524
2 R ether3 ether 1500 1524
3 ether4 ether 1500 1524
4 R ether5 ether 1500 1524
5 R loopback bridge 1500 65535
[admin@indonet] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.5.2/24 192.168.5.0 192.168.5.255 ether5
1 172.16.0.2/30 172.16.0.0 172.16.0.3 ether1
2 172.16.0.5/30 172.16.0.4 172.16.0.7 ether3
3 192.168.88.1/24 192.168.88.0 192.168.88.255 ether2
4 10.255.255.1/32 10.255.255.1 10.255.255.1 loopback
[admin@indonet] > ip address remove numbers=4
[admin@indonet] > ip address add address=10.255.255.3/32 interface=loopback
[admin@indonet] > routing ospf instance set 0 router-id=10.255.255.3
[admin@indonet] > ip route print Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADC 10.255.255.3/32 10.255.255.3 loopback 0
1 ADC 172.16.0.0/30 172.16.0.2 ether1 0
2 ADC 172.16.0.4/30 172.16.0.5 ether3 0
3 ADC 192.168.5.0/24 192.168.5.2 ether5 0
4 ADC 192.168.88.0/24 192.168.88.1 ether2 0
[admin@indonet] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADo 10.255.255.1/32 172.16.0.1 110
1 ADo 10.255.255.2/32 172.16.0.6 110
2 ADC 10.255.255.3/32 10.255.255.3 loopback 0
3 ADC 172.16.0.0/30 172.16.0.2 ether1 0
4 ADC 172.16.0.4/30 172.16.0.5 ether3 0
5 ADo 172.16.0.8/30 172.16.0.1 110
172.16.0.6
6 ADo 192.168.1.0/24 172.16.0.1 110
7 ADC 192.168.5.0/24 192.168.5.2 ether5 0
8 ADC 192.168.88.0/24 192.168.88.1 ether2 0
9 ADo 192.168.188.0/24 172.16.0.6 110
[admin@indonet] >

pengujian

[admin@localindonet] > ip route add gateway=192.168.88.1
[admin@localindonet] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.88.211/24 192.168.88.0 192.168.88.255 eth1
1 192.168.88.212/24 192.168.88.0 192.168.88.255 eth2
2 192.168.5.6/24 192.168.5.0 192.168.5.255 eth5
[admin@localindonet] > ping 192.168.88.1
192.168.88.1 ping timeout
192.168.88.1 ping timeout
192.168.88.1 ping timeout
192.168.88.1 ping timeout
5 packets transmitted, 0 packets received, 100% packet loss
[admin@localindonet] > ping 192.168.88.1
192.168.88.1 ping timeout
192.168.88.1 ping timeout
3 packets transmitted, 0 packets received, 100% packet loss
[admin@localindonet] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.88.211/24 192.168.88.0 192.168.88.255 eth1
1 192.168.88.212/24 192.168.88.0 192.168.88.255 eth2
2 192.168.5.6/24 192.168.5.0 192.168.5.255 eth5
[admin@localindonet] > ip address remove numbers=1
[admin@localindonet] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.88.211/24 192.168.88.0 192.168.88.255 eth1
1 192.168.5.6/24 192.168.5.0 192.168.5.255 eth5
[admin@localindonet] > ping 192.168.88.1
192.168.88.1 64 byte ping: ttl=64 time=1 ms
192.168.88.1 64 byte ping: ttl=64 time<1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0.5/1 ms
[admin@localindonet] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 192.168.88.1 1
1 ADC 192.168.5.0/24 192.168.5.6 eth5 0
2 ADC 192.168.88.0/24 192.168.88.211 eth1 0
3 A S 192.168.188.0/24 192.168.88.1 1
[admin@localindonet] > ping 192.168.88.1
192.168.88.1 64 byte ping: ttl=64 time<1 ms
192.168.88.1 64 byte ping: ttl=64 time<1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0.0/0 ms
[admin@localindonet] > ping 192.168.188.211
192.168.188.211 ping timeout
192.168.188.211 ping timeout
2 packets transmitted, 0 packets received, 100% packet loss
[admin@localindonet] > ping 192.168.188.212
192.168.188.212 ping timeout
192.168.188.212 ping timeout
192.168.188.212 ping timeout
3 packets transmitted, 0 packets received, 100% packet loss
[admin@localindonet] > ping 192.168.188.212
192.168.188.212 64 byte ping: ttl=62 time=5 ms
192.168.188.212 64 byte ping: ttl=62 time<1 ms
192.168.188.212 64 byte ping: ttl=62 time<1 ms
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0/1.6/5 ms
[admin@localindonet] > ping 192.168.1.2
192.168.1.2 64 byte ping: ttl=62 time=1 ms
192.168.1.2 64 byte ping: ttl=62 time<1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0.5/1 ms
[admin@localindonet] >



[admin@napinfolocal] > ip route add gateway=192.168.188.1
[admin@napinfolocal] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 192.168.188.1 1
1 S 0.0.0.0/0 172.16.0.1 1
2 ADC 192.168.5.0/24 192.168.5.7 eth5 0
3 S 192.168.88.0/24 10.255.255.1 1
4 ADC 192.168.188.0/24 192.168.188.212 eth2 0
[admin@napinfolocal] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 I 192.168.188.211/24 192.168.188.0 192.168.188.255 eth1
1 192.168.188.212/24 192.168.188.0 192.168.188.255 eth2
2 192.168.5.7/24 192.168.5.0 192.168.5.255 eth5
[admin@napinfolocal] > ping 192.168.188.1
192.168.188.1 64 byte ping: ttl=64 time<1 ms
192.168.188.1 64 byte ping: ttl=64 time<1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0.0/0 ms
[admin@napinfolocal] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 192.168.188.1 1
1 S 0.0.0.0/0 172.16.0.1 1
2 ADC 192.168.5.0/24 192.168.5.7 eth5 0
3 S 192.168.88.0/24 10.255.255.1 1
4 ADC 192.168.188.0/24 192.168.188.212 eth2 0
[admin@napinfolocal] > ip route remove numbers=1
[admin@napinfolocal] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 192.168.188.1 1
1 ADC 192.168.5.0/24 192.168.5.7 eth5 0
2 S 192.168.88.0/24 10.255.255.1 1
3 ADC 192.168.188.0/24 192.168.188.212 eth2 0
[admin@napinfolocal] > ip route remove numbers=2
[admin@napinfolocal] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 192.168.188.1 1
1 ADC 192.168.5.0/24 192.168.5.7 eth5 0
2 ADC 192.168.188.0/24 192.168.188.212 eth2 0
[admin@napinfolocal] > ping 192.168.88.211
192.168.88.211 ping timeout
192.168.88.211 ping timeout
192.168.88.211 ping timeout
3 packets transmitted, 0 packets received, 100% packet loss
[admin@napinfolocal] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 I 192.168.188.211/24 192.168.188.0 192.168.188.255 eth1
1 192.168.188.212/24 192.168.188.0 192.168.188.255 eth2
2 192.168.5.7/24 192.168.5.0 192.168.5.255 eth5
[admin@napinfolocal] > ping 192.168.188.1
192.168.188.1 64 byte ping: ttl=64 time=9 ms
192.168.188.1 64 byte ping: ttl=64 time<1 ms
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/4.5/9 ms
[admin@napinfolocal] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 192.168.188.1 1
1 ADC 192.168.5.0/24 192.168.5.7 eth5 0
2 ADC 192.168.188.0/24 192.168.188.212 eth2 0
[admin@napinfolocal] > ping 192.168.88.211
192.168.88.211 ping timeout
192.168.88.211 ping timeout
2 packets transmitted, 0 packets received, 100% packet loss
[admin@napinfolocal] > ping 192.168.88.212
192.168.88.212 ping timeout
192.168.88.212 ping timeout
192.168.88.212 ping timeout
3 packets transmitted, 0 packets received, 100% packet loss
[admin@napinfolocal] > ping 192.168.88.212
192.168.88.212 ping timeout
192.168.88.212 ping timeout
3 packets transmitted, 0 packets received, 100% packet loss
[admin@napinfolocal] > ping 192.168.88.211
192.168.88.211 64 byte ping: ttl=62 time=1 ms
192.168.88.211 64 byte ping: ttl=62 time<1 ms
192.168.88.211 64 byte ping: ttl=62 time<1 ms
192.168.88.211 64 byte ping: ttl=62 time<1 ms
192.168.88.211 64 byte ping: ttl=62 time<1 ms
192.168.88.211 64 byte ping: ttl=62 time<1 ms
192.168.88.211 64 byte ping: ttl=62 time<1 ms
192.168.88.211 64 byte ping: ttl=62 time<1 ms
8 packets transmitted, 8 packets received, 0% packet loss
round-trip min/avg/max = 0/0.1/1 ms
[admin@napinfolocal] > system tra
default-configuration routerboard reset-configuration serial-terminal
[admin@napinfolocal] > tool tra
traffic-monitor traceroute
[admin@napinfolocal] > tool
bandwidth-server netwatch bandwidth-test flood-ping ping-speed
e-mail sms dns-update ip-scan torch
graphing sniffer export mac-scan traceroute
mac-server traffic-monitor fetch mac-telnet wol
[admin@napinfolocal] > tool traceroute 192.168.88.211
ADDRESS STATUS
1 192.168.188.1 1ms 1ms 1ms
2 172.16.0.5 1ms 1ms 1ms
3 192.168.88.211 1ms 1ms 1ms
[admin@napinfolocal] > ping 192.168.88.211
192.168.88.211 64 byte ping: ttl=62 time<1 ms
192.168.88.211 64 byte ping: ttl=62 time<1 ms
192.168.88.211 ping timeout
192.168.88.211 ping timeout
192.168.88.211 64 byte ping: ttl=61 time=4 ms
192.168.88.211 64 byte ping: ttl=61 time<1 ms
192.168.88.211 64 byte ping: ttl=61 time<1 ms
192.168.88.211 64 byte ping: ttl=61 time<1 ms
8 packets transmitted, 6 packets received, 25% packet loss
round-trip min/avg/max = 0/0.6/4 ms
[admin@napinfolocal] > tool traceroute 192.168.88.211
ADDRESS STATUS
1 192.168.188.1 1ms 1ms 1ms
2 172.16.0.9 1ms 1ms 1ms
3 172.16.0.2 1ms 1ms 1ms
4 192.168.88.211 1ms 1ms 1ms
[admin@napinfolocal] >
kemudian coba kabel di pasang lagi lakukan trace route lagi
maka routing akan kembali lagi setelah beberapa saat :


[admin@napinfolocal] > ping 192.168.88.211
192.168.88.211 64 byte ping: ttl=61 time=22 ms
192.168.88.211 64 byte ping: ttl=61 time<1 ms
192.168.88.211 64 byte ping: ttl=61 time<1 ms
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0/7.3/22 ms
[admin@napinfolocal] > tool traceroute 192.168.88.211
ADDRESS STATUS
1 192.168.188.1 1ms 1ms 1ms
2 172.16.0.9 1ms 1ms 1ms
3 172.16.0.2 1ms 1ms 1ms
4 192.168.88.211 1ms 1ms 1ms
[admin@napinfolocal] > tool traceroute 192.168.88.211
ADDRESS STATUS
1 192.168.188.1 1ms 1ms 1ms
2 172.16.0.9 1ms 1ms 1ms
3 172.16.0.2 1ms 1ms 1ms
4 192.168.88.211 1ms 1ms 1ms
[admin@napinfolocal] > tool traceroute 192.168.88.211
ADDRESS STATUS
1 192.168.188.1 1ms 1ms 1ms
2 172.16.0.9 1ms 1ms 1ms
3 172.16.0.2 1ms 1ms 1ms
4 192.168.88.211 1ms 1ms 1ms
[admin@napinfolocal] > tool traceroute 192.168.88.211
ADDRESS STATUS
1 192.168.188.1 1ms 1ms 1ms
2 172.16.0.5 1ms 1ms 1ms
3 192.168.88.211 1ms 1ms 1ms
[admin@napinfolocal] >
-----------------------------------------------
[admin@HO-super] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 172.16.0.1/30 172.16.0.0 eth2
1 172.16.0.9/30 172.16.0.8 eth3
2 192.168.5.9/24 192.168.5.0 eth5
3 10.255.255.1/32 10.255.255.1 loopback
4 192.168.1.2/24 192.168.1.0 eth1
[admin@HO-super] > ping 192.168.1.1
HOST SIZE TTL TIME STATUS
192.168.1.1 56 64 0ms
192.168.1.1 56 64 0ms
192.168.1.1 56 64 0ms
sent=3 received=3 packet-loss=0% min-rtt=0ms avg-rtt=0ms max-rtt=0ms

[admin@HO-super] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 192.168.1.1 1
1 ADC 10.255.255.1/32 10.255.255.1 loopback 0
2 ADC 172.16.0.0/30 172.16.0.1 eth2 0
3 ADC 172.16.0.8/30 172.16.0.9 eth3 0
4 ADC 192.168.1.0/24 192.168.1.2 eth1 0
5 ADC 192.168.5.0/24 192.168.5.9 eth5 0
[admin@HO-super] > ping 192.168.188.212
HOST SIZE TTL TIME STATUS
192.168.1.1 84 64 0ms net unreachable
192.168.1.1 84 64 0ms net unreachable
192.168.1.1 84 64 0ms net unreachable
sent=3 received=0 packet-loss=100%

[admin@HO-super] > ping 192.168.188.211
HOST SIZE TTL TIME STATUS
192.168.1.1 84 64 0ms net unreachable
192.168.1.1 84 64 0ms net unreachable
sent=2 received=0 packet-loss=100%

[admin@HO-super] > ping 192.168.188.212
HOST SIZE TTL TIME STATUS
192.168.188.212 56 62 2ms
192.168.188.212 56 62 0ms
sent=2 received=2 packet-loss=0% min-rtt=0ms avg-rtt=1ms max-rtt=2ms

[admin@HO-super] > tool traceroute 192.168.188.212
# ADDRESS RT1 RT2 RT3 STATUS
1 192.168.1.1 1ms 1ms 1ms
2 172.16.0.10 1ms 1ms 1ms
3 192.168.188.212 1ms 1ms 1ms


trce route sebelum kabel di lepas saat ping di bawah lepas kabel

[admin@HO-super] > ping 192.168.188.212
HOST SIZE TTL TIME STATUS
192.168.188.212 56 61 8ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
192.168.188.212 56 61 0ms
sent=18 received=18 packet-loss=0% min-rtt=0ms avg-rtt=0ms max-rtt=8ms

ternyata tidak terdapat jeda ketika di ping maka :
traceroute sudah berubah :

[admin@HO-super] > tool traceroute 192.168.188.212
# ADDRESS RT1 RT2 RT3 STATUS
1 192.168.1.1 1ms 1ms 1ms
2 172.16.0.2 1ms 1ms 1ms
3 172.16.0.6 1ms 1ms 1ms
4 192.168.188.212 1ms 1ms 1ms

[admin@HO-super] > tool traceroute 192.168.188.212
# ADDRESS RT1 RT2 RT3 STATUS
1 192.168.1.1 1ms 1ms 1ms
2 172.16.0.2 1ms 1ms 1ms
3 172.16.0.6 1ms 1ms 1ms
4 192.168.188.212 1ms 1ms 1ms

[admin@HO-super] > tool traceroute 192.168.188.212
# ADDRESS RT1 RT2 RT3 STATUS
1 192.168.1.1 1ms 1ms 1ms
2 172.16.0.2 1ms 1ms 1ms
3 172.16.0.6 1ms 1ms 1ms
4 192.168.188.212 1ms 1ms 1ms

[admin@HO-super] > tool traceroute 192.168.188.212
# ADDRESS RT1 RT2 RT3 STATUS
1 192.168.1.1 1ms 1ms 1ms
2 172.16.0.2 1ms 1ms 1ms
3 172.16.0.6 1ms 1ms 1ms
4 192.168.188.212 1ms 1ms 1ms

[admin@HO-super] > tool traceroute 192.168.188.212
# ADDRESS RT1 RT2 RT3 STATUS
1 192.168.1.1 1ms 1ms 1ms
2 172.16.0.2 1ms 1ms 1ms
3 172.16.0.6 1ms 1ms 1ms
4 192.168.188.212 1ms 1ms 1ms

setelah ditunggu kira2 1- 2menit maka routing akan kembali seperti semula

[admin@HO-super] > tool traceroute 192.168.188.212
# ADDRESS RT1 RT2 RT3 STATUS
1 192.168.1.1 1ms 1ms 1ms
2 172.16.0.10 1ms 1ms 1ms
3 192.168.188.212 1ms 1ms 1ms

[admin@HO-super] >
[admin@HO-RB1100] > ping 172.16.0.2
[admin@HO-RB1100] > ip route print
[admin@HO-RB1100] > routing ospf instance print
[admin@HO-RB1100] > routing ospf instance add name=default
failure: duplicated name
[admin@HO-RB1100] > interface bridge add name=loopback
[admin@HO-RB1100] > ip address add address=10.255.255.1/32 interface=loopback
[admin@HO-RB1100] > routing ospf instance set 0 router-id=10.255.255.1
[admin@HO-RB1100] > routing ospf network add network=192.168.1.0/24 area=backbone
[admin@HO-RB1100] > routing ospf network add network=172.16.0.0/24 area=backbone
[admin@HO-RB1100] > routing ospf interface print
Flags: X - disabled, I - inactive, D - dynamic, P - passive
# INTERFACE COST PRI NETWORK-TYPE AUT... AUTHENTICATIO...
0 D ether2 10 1 broadcast none
1 D ether3 10 1 broadcast none
[admin@HO-RB1100] > routing ospf neighbor print 0 instance=default router-
[admin@HO-RB1100] > ip address print
[admin@HO-RB1100] > interface print
[admin@HO-RB1100] > routing ospf neighbor print
[admin@HO-RB1100] > ip route print
[admin@HO-RB1100] > routing ospf network print
[admin@HO-RB1100] > routing ospf instance set redistribute-connected=as-type-1
numbers: 0
[admin@HO-RB1100] > routing ospf instance set redistribute-static=as-type-1
numbers: 0
[admin@HO-RB1100] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.1.1/24 192.168.1.0 192.168.1.255 ether1
1 172.16.0.1/30 172.16.0.0 172.16.0.3 ether2
2 172.16.0.9/30 172.16.0.8 172.16.0.11 ether3
3 192.168.5.3/24 192.168.5.0 192.168.5.255 ether5
4 10.255.255.1/32 10.255.255.1 10.255.255.1 loopback
[admin@HO-RB1100] > ip route print 
R2
=============================================================
routing perlu di reset karena sebelumnya sudah terdapat configurasi yg menyebabkan router neighbor nya tidak bisa muncul setelah di configure,setelah di reset maka konfigurasi jadi lancar
==============================================================

[admin@napinfo] > system reset-configuration keep-users=yes no-defaults=yes
Dangerous! Reset anyway? [y/N]:
y
system configuration will be reset
Connection to 192.168.5.1 closed by remote host.
Connection to 192.168.5.1 closed.
admin@nec-ubuntu:~$ ssh 192.168.5.1
The authenticity of host '192.168.5.1 (192.168.5.1)' can't be established.
DSA key fingerprint is 91:e0:90:fa:01:76:06:ff:b2:d1:29:c7:f5:dd:92:5d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.5.1' (DSA) to the list of known hosts.






MMM MMM KKK TTTTTTTTTTT KKK
MMMM MMMM KKK TTTTTTTTTTT KKK
MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK
MMM MM MMM III KKKKK RRR RRR OOO OOO TTT III KKKKK
MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK
MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK

MikroTik RouterOS 4.14 (c) 1999-2010 http://www.mikrotik.com/

[admin@napinfo] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.5.1/24 192.168.5.0 192.168.5.255 ether5
[admin@napinfo] > ip address add address=172.16.0.10/30 interface=ether1
[admin@napinfo] > interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE MTU L2MTU
0 R ether1 ether 1500 1524
1 R ether2 ether 1500 1524
2 R ether3 ether 1500 1524
3 ether4 ether 1500 1524
4 R ether5 ether 1500 1524
[admin@napinfo] > ip address print