beautypg.com

H3C Technologies H3C SecPath F1000-E User Manual

Page 518

background image

493

[SecPathB-ospf-1-area-0.0.0.0] network 192.1.1.0 0.0.0.255

[SecPathB-ospf-1-area-0.0.0.0] network 194.1.1.0 0.0.0.255

[SecPathB-ospf-1-area-0.0.0.0] quit

[SecPathB-ospf-1] quit

# Configure SecPath C.

system-view

[SecPathC] ospf

[SecPathC-ospf] area 0

[SecPathC-ospf-1-area-0.0.0.0] network 193.1.1.0 0.0.0.255

[SecPathC-ospf-1-area-0.0.0.0] network 195.1.1.0 0.0.0.255

[SecPathC-ospf-1-area-0.0.0.0] quit

[SecPathC-ospf-1] quit

# Configure SecPath D.

system-view

[SecPathD] ospf

[SecPathD-ospf] area 0

[SecPathD-ospf-1-area-0.0.0.0] network 194.1.1.0 0.0.0.255

[SecPathD-ospf-1-area-0.0.0.0] network 195.1.1.0 0.0.0.255

[SecPathD-ospf-1-area-0.0.0.0] quit

[SecPathD-ospf-1] quit

3.

Configure BGP connections:
# Configure SecPath A.

system-view

[SecPathA] bgp 100

[SecPathA-bgp] peer 192.1.1.2 as-number 200

[SecPathA-bgp] peer 193.1.1.2 as-number 200

# Inject network 1.0.0.0/8 into the BGP routing table of SecPath A.

[SecPathA-bgp] network 1.0.0.0 8

[SecPathA-bgp] quit

# Configure SecPath B.

[SecPathB] bgp 200

[SecPathB-bgp] peer 192.1.1.1 as-number 100

[SecPathB-bgp] peer 194.1.1.1 as-number 200

[SecPathB-bgp] quit

# Configure SecPath C

[SecPathC] bgp 200

[SecPathC-bgp] peer 193.1.1.1 as-number 100

[SecPathC-bgp] peer 195.1.1.1 as-number 200

[SecPathC-bgp] quit

# Configure SecPath D

[SecPathD] bgp 200

[SecPathD-bgp] peer 194.1.1.2 as-number 200

[SecPathD-bgp] peer 195.1.1.2 as-number 200

[SecPathD-bgp] quit

4.

Configure different attribute values for the route 1.0.0.0/8 to make SecPath D give priority to the
route learned from SecPath C: