beautypg.com

H3C Technologies H3C SecPath F1000-E User Manual

Page 447

background image

422

[RouterA-ospf-1] quit

# Configure SecPath.

system-view

[SecPath] ospf

[SecPath-ospf-1] area 0

[SecPath-ospf-1-area-0.0.0.0] network 11.2.1.0 0.0.0.255

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

[SecPath-ospf-1] quit

# Configure Router B.

system-view

[RouterB] ospf

[RouterB-ospf-1] area 0

[RouterB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255

[RouterB-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255

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

[RouterB-ospf-1] quit

# Configure Router C.

system-view

[RouterC] ospf

[RouterC-ospf-1] area 0

[RouterC-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255

[RouterC-ospf-1-area-0.0.0.0] network 10.3.1.0 0.0.0.255

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

# Configure Router D.

system-view

[RouterD] ospf

[RouterD-ospf-1] area 0

[RouterD-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255

[RouterD-ospf-1-area-0.0.0.0] network 10.4.1.0 0.0.0.255

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

[RouterD-ospf-1] quit

3.

Configure BGP to redistribute OSPF routes and direct routes:
# Configure SecPath.

[SecPath] bgp 200

[SecPath-bgp] peer 11.1.1.2 as-number 100

[SecPath-bgp] import-route ospf

[SecPath-bgp] import-route direct

[SecPath-bgp] quit

# Configure Router B.

[RouterB] bgp 100

[RouterB-bgp] peer 11.1.1.1 as-number 200

[RouterB-bgp] import-route ospf

[RouterB-bgp] import-route direct

[RouterB-bgp] quit

4.

Configure SecPath and Router B to redistribute BGP routes into OSPF:
# Configure OSPF to redistribute routes from BGP on SecPath.