Juniper MPLS
源码:------------------------------------------------------------------------
--------
version 5.1R1.4;
system {
host-name Juniper-GroupB;
login {
user distix {
uid 2001;
class super-user;
authentication {
encrypted-password "$1$6KPU8$HGm1x5KpMoZfK41tnnLRu1"; #
SECRET-DATA
}
}
user lab {
uid 2000;
class super-user;
authentication {
encrypted-password "$1$u7fsZ$tRThu0U7zDDCVgHdf.Yb2/"; #
SECRET-DATA
}
}
}
services {
ftp;
telnet;
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
}
}
interfaces {
fe-0/1/0 {
fastether-options {
loopback;
}
unit 0 {
family inet {
address 192.168.202.1/24;
}
}
}
so-0/2/0 {
sonet-options {
fcs 32;
}
unit 0 {
family inet {
address 10.3.2.2/24;
}
family mpls;
}
}
fxp0 {
speed 100m;
link-mode half-duplex;
unit 0 {
family inet {
address 192.168.1.202/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 10.0.3.2/32;
}
}
}
}
routing-options {
static {
route 10.0.2.3/32 {
next-hop 10.3.2.1;
preference 10;
}
route 10.0.2.4/32 {
next-hop 10.3.2.1;
preference 10;
}
route 10.0.2.5/32 {
next-hop 10.3.2.1;
preference 10;
}
route 10.0.2.6/32 {
next-hop 10.3.2.1;
preference 10;
}
route 10.0.2.7/32 {
next-hop 10.3.2.1;
preference 10;
}
route 10.0.2.8/32 {
next-hop 10.3.2.1;
preference 10;
}
route 10.0.2.9/32 {
next-hop 10.3.2.1;
preference 10;
}
route 10.0.2.10/32 {
next-hop 10.3.2.1;
preference 10;
}
route 10.0.0.2/32 {
next-hop 10.3.2.1;
preference 10;
}
route 10.0.2.2/32 {
next-hop 10.3.2.1;
preference 10;
}
route 10.2.1.2/32 {
next-hop 10.3.2.1;
preference 10;
}
route 10.0.2.109/32 {
next-hop 10.3.2.1;
preference 10;
}
route 10.0.2.1/32 {
next-hop 10.3.2.1;
preference 10;
}
route 10.0.2.20/32 {
next-hop 10.3.2.1;
preference 10;
}
}
autonomous-system 202;
}
protocols {
rsvp {
interface so-0/2/0.0;
}
mpls {
traffic-engineering bgp-igp-both-ribs;
no-propagate-ttl;
explicit-null;
label-switched-path to-JNPR-A {
from 10.0.3.2;
to 10.0.2.2;
no-cspf;
}
label-switched-path to-Foundry-A {
from 10.0.3.2;
to 10.0.2.3;
no-cspf;
}
label-switched-path to-CISCO-A {
to 10.0.2.1;
no-cspf;
}
label-switched-path to-Hitachi {
to 10.0.2.4;
no-cspf;
}
label-switched-path to-Ayame {
to 10.0.2.5;
no-cspf;
}
label-switched-path to-Furukawa {
to 10.0.2.6;
no-cspf;
}
label-switched-path to-RiverStone {
to 10.0.2.7;
no-cspf;
}
label-switched-path to-DML {
to 10.0.2.8;
no-cspf;
}
label-switched-path to-NEC {
to 10.0.2.9;
no-cspf;
}
label-switched-path to-Uni {
to 10.0.2.10;
no-cspf;
}
label-switched-path to-Extreme {
to 10.0.2.11;
no-cspf;
}
label-switched-path to-Fujitsu {
to 10.0.2.20;
no-cspf;
}
interface fxp0.0 {
disable;
}
interface all;
}
bgp {
group to-NEC {
type external;
local-address 10.0.3.2;
export DIRECT2BGP;
peer-as 110;
neighbor 10.0.2.9 {
multihop {
ttl 1;
}
}
}
group to-Juniper {
type external;
local-address 10.0.3.2;
export DIRECT2BGP;
peer-as 102;
neighbor 10.0.2.2 {
multihop {
ttl 1;
}
}
}
group to-Foundry {
type external;
local-address 10.0.3.2;
export DIRECT2BGP;
peer-as 103;
neighbor 10.0.2.3 {
multihop {
ttl 1;
}
}
}
group to-Hitachi {
type external;
local-address 10.0.3.2;
export DIRECT2BGP;
peer-as 104;
neighbor 10.0.2.4 {
multihop {
ttl 1;
}
}
}
group to-AYAME {
type external;
local-address 10.0.3.2;
export DIRECT2BGP;
peer-as 105;
neighbor 10.0.2.5 {
multihop {
ttl 1;
}
}
}
group to-Furukawa {
type external;
local-address 10.0.3.2;
export DIRECT2BGP;
peer-as 106;
neighbor 10.0.2.6 {
multihop {
ttl 1;
}
}
}
group to-RiverStone {
type external;
local-address 10.0.3.2;
export DIRECT2BGP;
peer-as 107;
neighbor 10.0.2.7 {
multihop {
ttl 1;
}
}
}
group to-Fujitsu {
type external;
local-address 10.0.3.2;
export DIRECT2BGP;
peer-as 120;
neighbor 10.0.2.20 {
multihop {
ttl 1;
}
}
}
group to-Cisco {
type external;
local-address 10.0.3.2;
export DIRECT2BGP;
peer-as 101;
neighbor 10.0.2.1 {
multihop {
ttl 1;
}
}
}
group to-UNI {
type external;
local-address 10.0.3.2;
export DIRECT2BGP;
peer-as 110;
neighbor 10.0.2.10 {
multihop {
ttl 1;
}
}
}
group to-DML {
type external;
peer-as 108;
neighbor 10.0.2.8 {
multihop {
ttl 1;
}
}
}
}
ldp {
traceoptions {
file ldp-log;
flag all;
}
explicit-null;
interface so-0/2/0.0 {
transport-address loopback;
}
}
}
policy-options {
policy-statement DIRECT2BGP {
term 1 {
from {
route-filter 192.168.202.0/24 exact;
}
then accept;
}
term 2 {
then reject;
}
}
}
--