Difference between revisions of "BGP JUNOS"
From Teknologisk videncenter
m (→Konfiguration) |
m (→Konfiguration) |
||
Line 24: | Line 24: | ||
address 10.99.207.1/24; | address 10.99.207.1/24; | ||
address 10.50.0.1/16; | address 10.50.0.1/16; | ||
+ | } | ||
+ | family inet6 { | ||
+ | address 2001:db8:ded0:2000::1/64; | ||
} | } | ||
} | } |
Revision as of 13:55, 4 November 2014
Konfiguration
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;
}
family inet6 {
address 2001:db8:ded0:2000::1/64;
}
}
}
}
routing-options {
autonomous-system 65099;
}
protocols {
bgp {
group as_65010 {
type external;
family inet {
unicast;
}
family inet6 {
unicast;
}
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;
}
}
}
}
Fejlfinding
root@SRX240# <input>run show bgp summary</input>
Groups: 6 Peers: 11 Down peers: 8
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0 1 1 0 0 0 0
inet6.0 0 0 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
<notice>192.168.146.4 65020 127 325 0 0 1:02:41 Establ
inet.0: 0/0/0/0</notice>
192.168.146.5 65020 0 0 0 0 1:03:01 Connect
<notice>192.168.146.50 65050 127 324 0 0 1:02:41 Establ
inet.0: 0/0/0/0</notice>
192.168.146.51 65050 0 0 0 0 1:03:01 Active
192.168.146.60 65060 0 0 0 0 1:03:01 Active
192.168.146.106 65030 0 0 0 0 1:03:01 Connect
192.168.146.109 65010 0 0 0 0 1:03:01 Connect
<notice>192.168.146.110 65010 17 196 0 1 6:14 Establ
inet.0: 1/1/1/0
inet6.0: 0/0/0/0</notice>
192.168.146.112 65040 0 0 0 0 1:03:01 Connect
192.168.146.113 65030 0 0 0 0 1:03:01 Connect
192.168.146.128 65040 0 0 0 0 1:03:01 Connect