Routing
H3C Low-End Ethernet Switches Configuration Examples
Chapter 3 Comprehensive Configuration
Example
3-17
II. Network diagram
AS 100
AS 200
AS 300
AS 400
OSPF
RIP
OSPF
IBGP
EBGP
EBGP
EBGP
EBGP
EBGP
S300
S300_A
S300_B
S200
S200_0
S200_10
S100_1
S100_2
S400
S400_0
VLAN-int 663
VLAN-int 664
VLAN-int 16
VLAN-int 15
VLAN-int 23
VLAN-int 11
VLAN-int 22
VLAN-int 31
VLAN-int 13
VLAN-int 12
VLAN-int 14
VLAN-int 661
VLAN-int 662
VLAN-int 665
VLAN-int 621
VLAN-int 622
VLAN-int 623
VLAN-int 624
Device
Interface
IP address
AS
S200_10 Vlan-int
621
162.1.1.1/24
Vlan-int
622
162.1.2.1/24
200
S300_B Vlan-int
623
162.1.3.1/24
Vlan-int
624
162.1.4.1/24
300
S400_0 Vlan-int
663
166.1.3.1/24
Vlan-int
664
166.1.4.1/24
400
Figure 3-9
Network diagram for MED attribute configuration
III. Configuration procedure
z
Configure S100_1.
# Define a prefix list named
as200_1
and permit the route with IP prefix 162.1.1.0/24.
<S100_1> system-view
[S100_1] ip ip-prefix as200_1 index 10 permit 162.1.1.0 24
# Define a prefix list named
as200_2
and permit the route with IP prefix 162.1.2.0/24.
[S100_1] ip ip-prefix as200_2 index 10 permit 162.1.2.0 24
# Define a prefix list named
as300_1
and permit the route with IP prefix 162.1.3.0/24.
[S100_1] ip ip-prefix as300_1 index 10 permit 162.1.3.0 24
# Define a prefix list named
as300_2
and permit the route with IP prefix 162.1.4.0/24.
[S100_1] ip ip-prefix as300_2 index 10 permit 162.1.4.0 24
# Define a prefix list named
other
and permit all the routes.