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

Low-end ethernet switches
Table of Contents

Advertisement

Routing
H3C Low-End Ethernet Switches Configuration Examples
III. Basic BGP configuration
Figure 3-5
Device
S100_1
S100_2
S200
S300
S400
Figure 3-5 Network diagram for BGP configuration
Configure S100_1.
# Configure the router ID of S100_1 as 1.1.1.1.
<S100_1> system-view
[S100_1] router id 1.1.1.1
# Enable BGP and specify the local AS number as 100.
[S100_1] bgp 100
# Create IBGP peer group 100 and EBGP peer groups 200 and 400.
[S100_1-bgp] group 100 internal
[S100_1-bgp] group 200 external
[S100_1-bgp] group 400 external
# Add peer 196.3.1.2 in AS 100 into peer group 100; Add peer 196.1.1.3 in AS 200 into
peer group 200; Add peer 196.1.3.3 in AS 400 into peer group 400.
[S100_1-bgp] peer 196.3.1.2 group 100
[S100_1-bgp] peer 196.1.1.3 group 200 as-number 200
[S100_1-bgp] peer 196.1.3.3 group 400 as-number 400
# Advertise networks 196.1.3.0, 196.3.1.0, and 196.1.1.0.
[S100_1-bgp] network 196.1.3.0
[S100_1-bgp] network 196.3.1.0
shows the relevant network diagram.
Interface
Vlan-int 11
Vlan-int 15
Vlan-int 31
Vlan-int 22
Vlan-int 23
Vlan-int 31
Vlan-int 11
Vlan-int 13
Vlan-int 22
Vlan-int 13
Vlan-int 15
Vlan-int 23
Chapter 3 Comprehensive Configuration
IP address
Router ID
196.1.1.1/24
1.1.1.1
196.1.3.1/24
196.3.1.1/24
196.2.2.1/24
1.2.1.1
196.2.3.2/24
196.3.1.2/24
196.1.1.3/24
2.1.1.1
206.1.3.3/24
196.2.2.2/24
3.1.1.1
206.1.3.2/24
196.1.3.3/24
4.1.1.1
196.2.3.3/24
3-9
Example
AS
100
200
300
400

Advertisement

Table of Contents
loading

Table of Contents