BGP JUNOS
From Teknologisk videncenter
interfaces {
ge-0/0/15 {
unit 0 {
family inet {
dhcp;
}
}
}
lo0 {
unit 5 {
family inet {
address 10.99.99.1/32;
address 10.99.99.2/32;
address 10.99.212.1/24;
address 10.99.199.1/24;
address 10.99.62.1/24;
address 10.99.114.1/24;
address 10.99.152.1/24;
address 10.99.31.1/24;
address 10.99.6.1/24;
address 10.99.20.1/24;
address 10.99.207.1/24;
address 10.50.0.1/16;
}
}
}
}
routing-options {
autonomous-system 65099;
}
protocols {
bgp {
group as_65010 {
type external;
authentication-key "$9$LZCNdwoJDmPQVwoGUH5TCtu1hrKMXbs4"; ## SECRET-DATA
export EBGP-EXPORT;
peer-as 65010;
neighbor 192.168.146.110;
neighbor 192.168.146.109;
}
group as_65020 {
type external;
export EBGP-EXPORT;
peer-as 65020;
neighbor 192.168.146.4;
neighbor 192.168.146.5;
}
}
}
policy-options {
policy-statement EBGP-EXPORT {
term 1 {
from {
protocol direct;
route-filter 10.0.0.0/8 orlonger;
}
then accept;
}
}
policy-statement OSPF-EXPORT {
term 1 {
from protocol direct;
then accept;
}
}
policy-statement RIP-EXPORT {
term 1 {
from protocol [ direct rip ];
then accept;
}
}
}
security {
forwarding-options {
family {
inet6 {
mode packet-based;
}
mpls {
mode packet-based;
}
}
}
}