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

Low-end ethernet switches
Table of Contents

Advertisement

Routing
H3C Low-End Ethernet Switches Configuration Examples
# Advertise networks 192.1.1.0 and 206.1.3.0.
[S200-bgp] network 192.1.1.0
[S200-bgp] network 206.1.3.0
# Set the preferences of EBGP routes, IBGP routes, and local routes to 200.
[S200-bgp] preference 200 200 200
Configure S300.
# Configure the router ID of S300 as 3.1.1.1.
<S300> system-view
[S300] router id 3.1.1.1
# Enable BGP and specify the local AS number as 300.
[S300] bgp 300
# Create EBGP peer groups 100 and 200.
[S300-bgp] group 100 external
[S300-bgp] group 200 external
# Add peer 196.2.2.1 in AS 100 into peer group 100; Add peer 206.1.3.3 in AS 200 into
peer group 200.
[S300-bgp] peer 196.2.2.1 group 100 as-number 100
[S300-bgp] peer 206.1.3.3 group 200 as-number 200
# Advertise networks 206.1.3.0 and 196.2.2.0.
[S300-bgp] network 206.1.3.0
[S300-bgp] network 196.2.2.0
# Set the preferences of EBGP routes, IBGP routes, and local routes to 200.
[S300-bgp] preference 200 200 200
Configure S400.
# Configure the router ID of S400 as 4.1.1.1.
<S400> system-view
[S400] router id 4.1.1.1
# Enable BGP and specify the local AS number as 400.
[S400] bgp 400
# Create EBGP peer groups 100_1 and 100_2.
[S400-bgp] group 100_1 external
[S400-bgp] group 100_2 external
# Add peer 196.1.3.1 in AS 100 into peer group 100_1; Add peer 196.2.3.2 in AS 100
into peer group 100_2.
[S400-bgp] peer 196.1.3.1 group 100_1 as-number 100
[S400-bgp] peer 196.2.3.2 group 100_2 as-number 100
Chapter 3 Comprehensive Configuration
3-11
Example

Advertisement

Table of Contents
loading

Table of Contents