Step 1: Verify BGP on an Internal Router
Action
To verify the BGP configuration of an internal router, enter the following JUNOS command-line interface (CLI) command:
user@host>show configurationSample Output
The following sample output is for a BGP configuration on
R3in the network shown in Figure 14:user@R3>show configuration[...Output truncated...]interfaces {so-0/0/1 {unit 0 {family inet {address 10.1.23.2/30;}family iso;}}so-0/0/3 {unit 0 {family inet {address 10.1.36.1/30;}family iso;}}lo0 {unit 0 {family inet {address 10.0.0.3/32;}family iso {address 49.0002.1000.0000.0003.00;}}}}routing-options {[...Output truncated...]router-id 10.0.0.3;autonomous-system 65002;}protocols {bgp {group internal {type internal;local-address 10.0.0.3;neighbor 10.0.0.2;neighbor 10.0.0.4;neighbor 10.0.0.6;}}isis {level 1 disable;interface all {level 2 metric 10;}interface lo0.0;}}user@R6>show configuration|[Output truncated...]interfaces {so-0/0/1 {unit 0 {family inet {address 10.1.46.2/30;}family iso;}}so-0/0/3 {unit 0 {family inet {address 10.1.36.2/30;}family iso;}}lo0 {unit 0 {family inet {address 10.0.0.6/32;}family iso {address 49.0003.1000.0000.0006.00;}}}}routing-options {[Output truncated...]router-id 10.0.0.6;autonomous-system 65002;}protocols {bgp {group internal {type internal;local-address 10.0.0.6;neighbor 10.0.0.2;neighbor 10.0.0.3;neighbor 10.0.0.4;}}isis {level 1 disable;interface all {level 2 metric 10;}interface lo0.0;}}What It Means
The sample output shows a basic BGP configuration on routers
R3andR6. The local AS (65002) and one group (internal) are configured on both routers.R3has three internal peers—10.0.0.2,10.0.0.4, and10.0.0.6—included at the [protocols bgp groupgroup] hierarchy level.R6also has three internal peers:10.0.0.2,10.0.0.3, and10.0.0.4. The underlying IGP protocol is Intermediate System-to-Intermediate System (IS-IS), and relevant interfaces are configured to run IS-IS.Note that in this configuration the router ID is manually configured to avoid any duplicate router ID problems.