Sie sind auf Seite 1von 4

tim@R1# show

system { /* OMITTED */ };
interfaces {
ge-0/0/0 { /* OMITTED */ };
ge-0/0/1 {
description R2;
unit 0 {
family inet {
address 192.168.1.1/24;
}
}
}
lo0 {
description "route to export to prove out as-path";
unit 0 {
family inet {
address 1.1.1.1/32;
}
}
}
}
routing-options {
router-id 192.168.0.1;
autonomous-system 1;
}
protocols {
bgp {
group R2 {
export export-lo0;
neighbor 192.168.1.2 {
peer-as 2;
}
}
}
}
policy-options {
policy-statement export-lo0 {
from {
protocol direct;
interface lo0.0;
}
then accept;
}
policy-statement nhs {
then {
next-hop self;
}
}
}
security { /* OMITTED */ };

tim@R2# show

system { /* OMITTED */ };
interfaces {
ge-0/0/0 { /* OMITTED */ };
ge-0/0/1 {
description R1;
unit 0 {
family inet {
address 192.168.1.2/24;
}
}
}
ge-0/0/2 {
description R4;
unit 0 {
family inet {
address 192.168.3.1/24;
}
}
}
}
routing-options {
router-id 192.168.0.2;
autonomous-system 2;
}
protocols {
bgp {
group R1 {
neighbor 192.168.1.1 {
peer-as 1;
}
}
group R4 {
neighbor 192.168.3.2 {
peer-as 4;
}
}
}
}
security { /* OMITTED */ };

tim@R4# show
system { /* OMITTED */ };
interfaces {
ge-0/0/0 { /* OMITTED */ };
ge-0/0/2 {
description R2;
unit 0 {
family inet {
address 192.168.3.2/24;
}
}
}

ge-0/0/3 {
description R6;
unit 0 {
family inet {
address 192.168.6.1/24;
}
}
}
}
routing-options {
router-id 192.168.0.4;
autonomous-system 4;
}
protocols {
bgp {
group R2 {
neighbor 192.168.3.1 {
peer-as 2;
}
}
group R5 {
neighbor 192.168.6.2 {
peer-as 6;
}
}
}
}
security { /* OMITTED */ };

tim@R6# show
system { /* OMITTED */ };
interfaces {
ge-0/0/0 { /* OMITTED */ };
ge-0/0/1 {
description R4;
unit 0 {
family inet {
address 192.168.6.2/24;
}
}
}
lo0 {
description "route to export to prove out as-path";
unit 0 {
family inet {
address 6.6.6.6/32;
}
}
}
}
routing-options {
autonomous-system 6;

}
protocols {
bgp {
group R4 {
export export-lo0;
neighbor 192.168.6.1 {
peer-as 4;
}
}
}
}
policy-options {
policy-statement export-lo0 {
from {
protocol direct;
interface lo0.0;
}
then accept;
}
policy-statement nhs {
then {
next-hop self;
}
}
}
security { /* OMITTED */ };

Das könnte Ihnen auch gefallen