Macro 32 Ramblings

Mind Archive

Step by Step BGP IPv6 Configuration in JunOS

Your Interface :
==========

admin@JunOS#show
description ***TO-BGP-PEER***;
vlan-id 8;
family inet6 {
address 2404:170:251::A:A:1A/126;
}
[edit interfaces ge-1/3/0 unit 8]

The Command : refer to http://www.ip-stories.com/


BGP Setting :
=========

admin@JunOS#show
type external;
neighbor 2404:170:251::A:A:19 {
description CUSTOMER-IPV6;
import IPv6-CUSTOMER-IMPORT;
export IPv6-CUSTOMER-EXPORT;
peer-as 3940;
}

[edit protocols bgp group eBGP-IPv6]

The command :
admin@JunOS# set type external [different ASN]
admin@JunOS# set neighbor 2404:170:251::A:A:19 import IPv6-CUSTOMER-IMPORT export IPv6-CUSTOMER-EXPORT peer-as 3940
admin@JunOS# commit

Policy Setting :
==========

admin@JunOS#
policy-statement IPv6-CUSTOMER-IMPORT {
from as-path ALL;
then accept;
}
policy-statement IPv6-CUSTOMER-EXPORT {
from as-path ALL;
then reject;
}

as-path ALL .*

[edit policy-options]

The command :

admin@JunOS# set policy-statement IPv6-CUSTOMER-IMPORT from as-path ALL

[edit policy-options]
admin@JunOS# set policy-statement IPv6-CUSTOMER-IMPORT then accept

[edit policy-options]
admin@JunOS# set policy-statement IPv6-CUSTOMER-EXPORT from as-path ALL

[edit policy-options]
admin@JunOS# set policy-statement IPv6-CUSTOMER-EXPORT then reject
admin@JunOS# set as-path ALL .*
admin@JunOS# commit

BGP Status :
========

admin@JunOS# run show bgp summary
Groups: 17 Peers: 18 Down peers: 4
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
inet.0           1206977     309046          0          0          0          0
inet6.0             2416       2414          0          0          0          0
Peer               AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Damped…
2404:170:251::a:a:19  9340       1897          6       0       0        1:31 Establ
inet6.0: 2414/2416/0

a. rahman isnaini r.sutan

Posted in BGP, IPv6, Juniper | No Comments »
[Juniper] Working with /127 IPv6 Address [Or /31 IPv4 Address]

Posted by admin on 12th November 2009

/64 is kind of waste of IPv6 Point to Point Address between two devices.
So, let’s work with /127 :)

admin@JunOS# show
description ***UPSTREAM***;
vlan-id 510;
family inet {
address 192.168.224.221/30;
}
family inet6 {
address 2001:E00:F003::1/127;
}

[edit interfaces ge-1/3/0 unit 510]

admin@JunOS# run ping 2001:e00:f003::1
PING6(56=40+8+8 bytes) 2001:e00:f003::1 –> 2001:e00:f003::1
16 bytes from 2001:e00:f003::1, icmp_seq=0 hlim=64 time=0.212 ms
^C
— 2001:e00:f003::1 ping6 statistics —
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 0.212/0.212/0.212 ms

[edit interfaces ge-1/3/0 unit 510]
admin@JunOS# run ping 2001:e00:f003::0
PING6(56=40+8+8 bytes) 2001:e00:f003::1 –> 2001:e00:f003::
16 bytes from 2001:e00:f003::, icmp_seq=0 hlim=64 time=1.123 ms
16 bytes from 2001:e00:f003::, icmp_seq=1 hlim=64 time=0.892 ms
16 bytes from 2001:e00:f003::, icmp_seq=2 hlim=64 time=0.777 ms
16 bytes from 2001:e00:f003::, icmp_seq=3 hlim=64 time=1.151 ms
16 bytes from 2001:e00:f003::, icmp_seq=4 hlim=64 time=1.026 ms
16 bytes from 2001:e00:f003::, icmp_seq=5 hlim=64 time=0.981 ms
16 bytes from 2001:e00:f003::, icmp_seq=6 hlim=64 time=1.02 ms
^C
— 2001:e00:f003::0 ping6 statistics —
7 packets transmitted, 7 packets received, 0% packet loss
round-trip min/avg/max = 0.777/0.995/1.151 ms

[edit interfaces ge-1/3/0 unit 510]

a. rahman isnaini r.sutan

Configure IPv6 Address
======================

Configured yes, under interface mode.
Belows example shows IPv4 & IPv6 at one sub interface [Dual Stack]

admin@JunOS# set family inet6 address 2404:170:251::A:A:1A/126

[edit interfaces ge-1/3/0 unit 4]
admin@JunOS# show
description ***TO-CUST***;
vlan-id 4;
family inet {
address 192.168.224.45/30;
}
family inet6 {
address 2404:170:251::A:A:1A/126;
}

[edit interfaces ge-1/3/0 unit 4]

admin@JunOS# run ping 2404:170:251::A:A:19
PING6(56=40+8+8 bytes) 2404:170:251::a:a:1a –> 2404:170:251::a:a:19
16 bytes from 2404:170:251::a:a:19, icmp_seq=0 hlim=64 time=1.082 ms
16 bytes from 2404:170:251::a:a:19, icmp_seq=1 hlim=64 time=0.871 ms
16 bytes from 2404:170:251::a:a:19, icmp_seq=2 hlim=64 time=1.377 ms
Set Default Route
==================

Configured under routing-Option.
Please re-ensure that Ipv6 Static Route “NOT” under static 
mode but under rib mode named inet6.0 [what ever you named it].

admin@JunOS# set rib inet6.0 static route 0::/0 next-hop 2404:170:251::A:A:19
[edit routing-options]
admin@JunOS#commit

admin@JunOS# show
interface-routes {
rib-group inet all-ribs;
}
rib inet6.0 {
static {
route 0::/0 next-hop 2404:170:251::A:A:19;
}
}

admin@JunOS# run traceroute 2001:200:0:8002:203:47ff:fea5:3085 no-resolve
traceroute6 to 2001:200:0:8002:203:47ff:fea5:3085 (2001:200:0:8002:203:47ff:fea5:3085) 
from 2404:170:251::a:a:1a, 30 hops max, 12 byte packets
1  2404:170:251::a:a:19  1.314 ms  1.49 ms  1.121 ms
2  2404:c000:4000:4514:7:3852:5:1  29.669 ms  1.326 ms  4.286 ms
3  2404:c000:0:1::5  3.332 ms  3.122 ms  1.599 ms
4  2001:7fa:0:1::ca28:a1db  283.406 ms  288.813 ms  280.211 ms
5  2001:218:0:6000::13d  281.033 ms  281.488 ms  284.32 ms
6  2001:218:0:2000::101  269.061 ms  272.352 ms 2001:218:0:2000::15a  291.264 ms
7  2001:218:0:2000::5  289.404 ms 2001:218:0:6000::116  283.702 ms  282.235 ms
8  2001:218:0:6000::116  284.39 ms  285.519 ms 2001:218:2000:5000::82  274.299 ms
9  2001:200:0:10::141  274.942 ms 2001:218:2000:5000::82  277.802 ms  277.253 ms
10  2001:200:0:11::66  273.719 ms  274.504 ms  272.959 ms
11  2001:200:0:12::74  273.844 ms 2001:200:0:11::66  275.37 ms  275.73 ms
12  2001:200:0:4803:212:e2ff:fe28:1ca2  277.486 ms  276.499 ms 2001:200:0:12::74  276.379 ms
13  2001:200:0:4803:212:e2ff:fe28:1ca2  281.574 ms 2001:200:0:8002:203:47ff:fea5:3085  275.133 ms  275.072 ms

rgs
a. rahman isnaini r.sutan


Leave a Reply