Static Route on Mikrotik, Juniper, Cisco IOS, IOS-XR, Linux & Windows

Fikiran lagi rada tumpul nih, pengen belajar ini itu tapi waktu rada ngepress, jd kepikiran command-command kalo di beda platform kek gimana sih. Sebenernya secara konsep semua sama, define tujuannya (destination), lalu define lewat mana (gateway), cuma beda model penulisan & command doang..haha… Oke Lansung this is about “Command Concept” of configuring static route :

1. Static Route on Mikrotik

Base command = ip route add dst-address=[destination][/prefix] gateway=[gateway]

Contoh :

ip route add dst-address=192.168.199.0/25 gateway=1.1.1.1

ip route add dst-address=192.168.199.199 gateway=1.1.1.99,1.1.1.1

ip route add dst-address=0.0.0.0/0 gateway=1.1.1.1

ip route set 0 gateway=1.1.1.1,1.1.1.99   ——>> default route

2. Static Route on Juniper

Base command = set routing-options static route [destination/prefix] next-hop [gateway]

For Example :

set routing-options static route 0.0.0.0/0 next-hop 172.16.1.1

3. Static Route on Cisco IOS Based

Base Command = ip route [destination] [netmask] [gateway]

bisa juga ditambahin AD (Administrative Distance)  di belakang gateway kalo perlu

Contoh :

ip route 10.10.10.0 255.255.255.128 1.1.1.1

ip route 0.0.0.0 0.0.0.0 1.1.1.99 88   ——->> 88 adalah AD

4. Static Route on Cisco IOS-XR Based

Base command = router static address-family [IPv4|IPv6] unicast [destination][/prefix] [gateway]

Atau bisa juga ditulis “per-potong”

Contoh :

router static address-family ipv4 unicast 1.1.1.0/26 23.23.23.29

router static address-family ipv4 unicast 0.0.0.0/0 23.23.23.2

atau bisa juga ditulis

RP/0/0/CPU0:R1(config)#router static
RP/0/0/CPU0:R1(config-static)#address-family ipv4 unicast
RP/0/0/CPU0:R1(config-static-afi)#23.23.23.0/24 12.12.12.2
RP/0/0/CPU0:R1(config-static-afi)#23.23.23.0/24 12.12.12.2

5. Static Route on Linux

Base command = route add -net [destination] netmask [netmask] gw [gateway]

or for default route = route add default gw [gateway]

Contoh :

route add -net 192.168.55.0 netmask 255.255.255.0 gw 192.168.1.254

route add default gw 1.1.1.1

6. Static Route on Windows

Base Command = route add [destination] [netmask] [gateway]

Bisa juga ditambahkan Metric setelah gateway

Contoh :

route add 1.1.1.1 mask 255.255.255.255 1.1.1.1

route add 1.1.1.1 mask 255.255.255.255 1.1.1.1 199 —->> 199 adalah metricnya

Komen dimari gann....

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s