H3C Technologies H3C S5560 Series Switches User Manual

Page 334

Advertising
background image

318

2.

Configure OSPFv3 in AS 200 to ensure connectivity among Switch B, Switch C and Switch D.

(Details not shown.)

3.

Configure BGP connections:
# Configure Switch A to establish EBGP sessions with Switch B and Switch C, and advertise

network 1::/64.

<SwitchA> system-view

[SwitchA] bgp 100

[SwitchA] router-id 1.1.1.1

[SwitchA-bgp] peer 3001::2 as-number 200

[SwitchA-bgp] peer 2001::2 as-number 200

[SwitchA-bgp] address-family ipv6 unicast

[SwitchA-bgp-ipv6] peer 3001::2 enable

[SwitchA-bgp-ipv6] peer 2001::2 enable

[SwitchA-bgp-ipv6] network 1:: 64

[SwitchA-bgp-ipv6] quit

[SwitchA-bgp] quit

# Configure Switch B to establish an EBGP session with Switch A, and an IBGP session with Switch

D.

<SwitchB> system-view

[SwitchB] bgp 200

[SwitchB] router-id 2.2.2.2

[SwitchB-bgp] peer 3001::1 as-number 100

[SwitchB-bgp] peer 3002::2 as-number 200

[SwitchB-bgp] address-family ipv6 unicast

[SwitchB-bgp-ipv6] peer 3001::1 enable

[SwitchB-bgp-ipv6] peer 3002::2 enable

[SwitchB-bgp-ipv6] peer 3002::2 next-hop-local

[SwitchB-bgp-ipv6] quit

[SwitchB-bgp] quit

# Configure Switch C to establish an EBGP session with Switch A, and an IBGP session with Switch

D.

<SwitchC> system-view

[SwitchC] bgp 200

[SwitchC] router-id 3.3.3.3

[SwitchC-bgp] peer 2001::1 as-number 100

[SwitchC-bgp] peer 2002::2 as-number 200

[SwitchC-bgp] address-family ipv6 unicast

[SwitchC-bgp-ipv6] peer 2001::1 enable

[SwitchC-bgp-ipv6] peer 2002::2 enable

[SwitchC-bgp-ipv6] peer 2002::2 next-hop-local

[SwitchC-bgp-ipv6] quit

[SwitchC-bgp] quit

# Configure Switch D to establish IBGP sessions with Switch B and Switch C, and advertise
network 4::/64.

<SwitchD> system-view

[SwitchD] bgp 200

[SwitchD-bgp] peer 3002::1 as-number 200

[SwitchD-bgp] peer 2002::1 as-number 200

Advertising
This manual is related to the following products: