Posted by: Barly Wicaksono | 10 February, 2012

Static Routing di Juniper

Basic Knowledge

Static routing adalah pembuatan dan peng-update-an routing table secara manual. Statik routing tidak akan merubah informasi tabel routing secara otomatis, sehingga administrator harus melakukan perubahan secara manual apabila terjadi perubahan topologi.

Static Routing

Static Routing

Konfigurasi Router

 - Logical Router Jakarta -
set logical-routers jakarta interfaces em0 unit 0 vlan-id 10
set logical-routers jakarta interfaces em0 unit 0 family inet address 10.10.10.1/30
set logical-routers jakarta interfaces lo0 unit 0 family inet address 1.1.1.1/32
set logical-routers jakarta routing-options static route 10.10.20.0/30 next-hop 10.10.10.2
set logical-routers jakarta routing-options static route 3.3.3.3/32 next-hop 10.10.10.2

- Logical Router Bandung -
set logical-routers bandung interfaces em1 unit 0 vlan-id 10
set logical-routers bandung interfaces em1 unit 0 family inet address 10.10.10.2/30
set logical-routers bandung interfaces em1 unit 1 vlan-id 100
set logical-routers bandung interfaces em1 unit 1 family inet address 10.10.20.2/30
set logical-routers bandung interfaces lo0 unit 1 family inet address 2.2.2.2/32
set logical-routers bandung routing-options static route 1.1.1.1/32 next-hop 10.10.10.1
set logical-routers bandung routing-options static route 3.3.3.3/32 next-hop 10.10.20.1

- Logical Router Surabaya -
set logical-routers surabaya interfaces em2 unit 0 vlan-id 100
set logical-routers surabaya interfaces em2 unit 0 family inet address 10.10.20.1/30
set logical-routers surabaya interfaces lo0 unit 2 family inet address 3.3.3.3/32
set logical-routers surabaya routing-options static route 10.10.10.0/30 next-hop 10.10.20.2
set logical-routers surabaya routing-options static route 1.1.1.1/32 next-hop 10.10.20.2

- Interface Vlan Tagging -
set interfaces em0 vlan-tagging
set interfaces em1 vlan-tagging
set interfaces em2 vlan-tagging
set interfaces em3 vlan-tagging

Verifikasi

- Show Route Protocol -
barly# run show route protocol static logical-router all
logical-router: jakarta
inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

3.3.3.3/32 *[Static/5] 00:00:02
> to 10.10.10.2 via em0.0
10.10.20.0/30 *[Static/5] 00:00:02
> to 10.10.10.2 via em0.0
-----

logical-router: surabaya

inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

1.1.1.1/32 *[Static/5] 00:00:02
> to 10.10.20.2 via em2.0
10.10.10.0/30 *[Static/5] 00:00:02
> to 10.10.20.2 via em2.0
-----

logical-router: bandung

inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

1.1.1.1/32 *[Static/5] 00:00:02
> to 10.10.10.1 via em1.0
3.3.3.3/32 *[Static/5] 00:00:02
> to 10.10.20.1 via em1.1

- Ping Test -
barly#run ping 1.1.1.1 logical-router jakarta
PING 1.1.1.1 (1.1.1.1): 56 data bytes
 64 bytes from 1.1.1.1: icmp_seq=0 ttl=64 time=3.630 ms
 64 bytes from 1.1.1.1: icmp_seq=1 ttl=64 time=0.215 ms
 64 bytes from 1.1.1.1: icmp_seq=2 ttl=64 time=0.225 ms
 64 bytes from 1.1.1.1: icmp_seq=3 ttl=64 time=0.215 ms
 ^C
 --- 1.1.1.1 ping statistics ---
 4 packets transmitted, 4 packets received, 0% packet loss
 round-trip min/avg/max/stddev = 0.215/1.071/3.630/1.477 ms

[edit]
 barly# <span style="color: #ff0000;">run ping <em>1.1.1.1</em> logical-router <em>bandung</em></span>
 PING 1.1.1.1 (1.1.1.1): 56 data bytes
 64 bytes from 1.1.1.1: icmp_seq=0 ttl=64 time=1.394 ms
 64 bytes from 1.1.1.1: icmp_seq=1 ttl=64 time=0.624 ms
 64 bytes from 1.1.1.1: icmp_seq=2 ttl=64 time=0.617 ms
 64 bytes from 1.1.1.1: icmp_seq=3 ttl=64 time=0.586 ms
 ^C
 --- 1.1.1.1 ping statistics ---
 4 packets transmitted, 4 packets received, 0% packet loss
 round-trip min/avg/max/stddev = 0.586/0.805/1.394/0.340 ms

[edit]
 barly# <span style="color: #ff0000;">run ping <em>1.1.1.1</em> logical-router <em>surabaya</em></span>
 PING 1.1.1.1 (1.1.1.1): 56 data bytes
 64 bytes from 1.1.1.1: icmp_seq=0 ttl=63 time=1.799 ms
 64 bytes from 1.1.1.1: icmp_seq=1 ttl=63 time=1.058 ms
 64 bytes from 1.1.1.1: icmp_seq=2 ttl=63 time=1.228 ms
 64 bytes from 1.1.1.1: icmp_seq=3 ttl=63 time=1.085 ms
 ^C
 --- 1.1.1.1 ping statistics ---
 4 packets transmitted, 4 packets received, 0% packet loss
 round-trip min/avg/max/stddev = 1.058/1.292/1.799/0.299 ms

.

Running Configuration
Statik Routing


Responses

  1. Mas… Juniper punya Simulator ga selain GNS3…?

    • @ Yudhi :
      Lha yang saya pakai itu bukan GNS3, tetapi VMware…
      Jadi langsung dijalanin aja di vmware…jadi deh…
      Tapi ya gitu, ga ada GUInya…
      Lebih asik sih..:)

  2. […] Sumber   […]


Leave a Reply

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Categories

%d bloggers like this: