鬼╄鬼 2007-12-2 00:46
Juniper eBGP路由基本配置!
作者 网络刀客
root@netDorker# show
r1 {
interfaces {
fxp1 {
unit 11 {
vlan-id 11;
family inet {
address 133.10.12.1/24;
}
family iso;
}
}
lo0 {
unit 1 {
family inet {
address 133.10.1.1/32;
}
family iso {
address 47.0000.0000.0000.0001.00;
}
}
}
}
protocols {
bgp {
group test-bgp {
type external;
multihop;
local-address 133.10.1.1;
local-as 65001;
neighbor 133.10.2.2 {
peer-as 65002;
}
}
}
isis {
interface fxp1.11;
interface lo0.1;
}
}
routing-options {
router-id 133.10.1.1;
autonomous-system 65001;
}
}
r2 {
interfaces {
fxp2 {
unit 11 {
vlan-id 11;
family inet {
address 133.10.12.2/24;
}
family iso;
}
}
lo0 {
unit 2 {
family inet {
address 133.10.2.2/32;
}
family iso {
address 47.0000.0000.0000.0002.00;
}
}
}
}
protocols {
bgp {
group test-bgp {
type external;
multihop;
local-address 133.10.2.2;
local-as 65002;
neighbor 133.10.1.1 {
peer-as 65001;
}
}
}
isis {
interface fxp2.11;
interface lo0.2;
}
}
routing-options {
router-id 133.10.2.2;
autonomous-system 65002;
}
}
rs {
protocols {
isis {
interface lo0.2;
}
}
}
[edit logical-routers]
===================================
验证:
root@netDorker# run show bgp neighbor logical-router r1
Peer: 133.10.2.2+2404 [b]AS 65002[/b] Local: 133.10.1.1+179 [color=red][b]AS 65001[/b][/color]
Type: External State: [color=red][b]Established [/b][/color] Flags: <Sync>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: None
Options: <Multihop Preference LocalAddress HoldTime PeerAS LocalAS Refresh>
Local Address: 133.10.1.1 Holdtime: 90 Preference: 170 Local AS: 65001
Local System AS: 65001
Number of flaps: 0
Peer ID: 133.10.2.2 Local ID: 133.10.1.1 Active Holdtime: 90
Keepalive Interval: 30 Peer index: 0
NLRI advertised by peer: inet-unicast
NLRI for this session: inet-unicast
Peer supports Refresh capability (2)
Table inet.0 Bit: 10000
RIB State: BGP restart is complete
Send state: in sync
Active prefixes: 0
Received prefixes: 0
Suppressed due to damping: 0
Advertised prefixes: 0
Last traffic (seconds): Received 29 Sent 29 Checked 29
Input messages: Total 2 Updates 0 Refreshes 0 Octets 64
Output messages: Total 3 Updates 0 Refreshes 0 Octets 83
Output Queue[0]: 0
[edit logical-routers]
root@netDorker# run show bgp neighbor logical-router r2
Peer: 133.10.1.1+179 AS 65001 Local: 133.10.2.2+2404 AS 65002
Type: External State: Established Flags: <Sync>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: None
Options: <Multihop Preference LocalAddress HoldTime PeerAS LocalAS Refresh>
Local Address: 133.10.2.2 Holdtime: 90 Preference: 170 Local AS: 65002
Local System AS: 65002
Number of flaps: 0
Peer ID: 133.10.1.1 Local ID: 133.10.2.2 Active Holdtime: 90
Keepalive Interval: 30 Peer index: 0
NLRI advertised by peer: inet-unicast
NLRI for this session: inet-unicast
Peer supports Refresh capability (2)
Table inet.0 Bit: 10000
RIB State: BGP restart is complete
Send state: in sync
Active prefixes: 0
Received prefixes: 0
Suppressed due to damping: 0
Advertised prefixes: 0
Last traffic (seconds): Received 8 Sent 8 Checked 8
Input messages: Total 2 Updates 0 Refreshes 0 Octets 38
Output messages: Total 4 Updates 0 Refreshes 0 Octets 102
Output Queue[0]: 0
[edit logical-routers]
root@netDorker#
==============================
结论:
eBGP配置没问题。哈哈,OK.