H3C LS-5100-16P-SI-OVS-H3 Configuration page 163

Low-end ethernet switches
Table of Contents

Advertisement

Routing
H3C Low-End Ethernet Switches Configuration Examples
[S100_1-bgp] network 196.1.1.0
# Set the preferences of EBGP routes, IBGP routes, and local routes to 200.
[S100_1-bgp] preference 200 200 200
Configure S100_2.
# Configure the router ID of S200_2 as 1.2.1.1.
<S100_2> system-view
[S100_2] router id 1.2.1.1
# Enable BGP and specify the local AS number as 100.
[S100_2] bgp 100
# Create IBGP peer group 100 and EBGP peer groups 300 and 400.
[S100_2-bgp] group 100 internal
[S100_2-bgp] group 300 external
[S100_2-bgp] group 400 external
# Add peer 196.3.1.1 in AS 100 into peer group 100; Add peer 196.2.2.2 in AS 300 into
peer group 300; Add peer 196.2.3.3 in AS 400 into peer group 400.
[S100_2-bgp] peer 196.3.1.1 group 100
[S100_2-bgp] peer 196.2.2.2 group 300 as-number 300
[S100_2-bgp] peer 196.2.3.3 group 400 as-number 400
# Advertise networks 196.2.2.0, 196.2.3.0, and 196.3.1.0.
[S100_2-bgp] network 196.2.2.0
[S100_2-bgp] network 196.2.3.0
[S100_2-bgp] network 196.3.1.0
# Set the preferences of EBGP routes, IBGP routes, and local routes to 200.
[S100_2-bgp] preference 200 200 200
Configure S200.
# Configure the router ID of S200 as 2.1.1.1.
<S200> system-view
[S200] router id 2.1.1.1
# Enable BGP and specify the local AS number as 200.
[S200] bgp 200
# Create EBGP peer groups 100 and 300.
[S200-bgp] group 100 external
[S200-bgp] group 300 external
# Add peer 196.1.1.1 in AS 100 into peer group 100; Add peer 206.1.3.2 in AS 300 into
peer group 300.
[S200-bgp] peer 196.1.1.1 group 100 as-number 100
[S200-bgp] peer 206.1.3.2 group 300 as-number 300
Chapter 3 Comprehensive Configuration
3-10
Example

Advertisement

Table of Contents
loading

Table of Contents