H3C LS-3100-52P-OVS-H3 Operation Manual page 606

S5500-ei series ethernet switches
Table of Contents

Advertisement

# On Switch C, configure a static route destined for network 3.1.2.0/24.
[SwitchC] ip route-static 3.1.2.0 24 10.4.1.2
# On Switch C, configure a static route destined for network 3.1.3.0/24.
[SwitchC] ip route-static 3.1.3.0 24 10.4.1.2
# On Switch C, configure OSPF to redistribute static routes.
[SwitchC] ospf 1
[SwitchC-ospf-1] import-route static
[SwitchC-ospf-1] quit
# Display the OSPF routing table of Switch A.
<SwitchA> display ip routing-table
Routing Tables: Public
Destinations : 12
Destination/Mask
Proto
3.1.1.0/24
O_ASE
3.1.2.0/24
O_ASE
3.1.3.0/24
O_ASE
10.1.1.0/24
Direct 0
10.1.1.1/32
Direct 0
10.2.1.0/24
Direct 0
10.2.1.1/32
Direct 0
10.3.1.0/24
OSPF
10.4.1.0/24
OSPF
10.5.1.0/24
OSPF
127.0.0.0/8
Direct 0
127.0.0.1/32
Direct 0
4)
On Switch C, filter out route 3.1.3.0/24.
# Configure the IPv4 prefix list.
[SwitchC] ip ip-prefix prefix1 index 1 deny 3.1.3.0 24
[SwitchC] ip ip-prefix prefix1 index 2 permit 3.1.1.0 24
[SwitchC] ip ip-prefix prefix1 index 3 permit 3.1.2.0 24
# Reference the prefix list to filter out route 3.1.3.0/24.
[SwitchC] ospf 1
[SwitchC-ospf-1] filter-policy ip-prefix prefix1 export static
# Display the OSPF routing table of Switch A.
<SwitchA> display ip routing-table
Routing Tables: Public
Destinations : 11
Destination/Mask
Proto
3.1.1.0/24
O_ASE
3.1.2.0/24
O_ASE
10.1.1.0/24
Direct 0
Routes : 12
Pre
Cost
NextHop
150
1
10.2.1.2
150
1
10.2.1.2
150
1
10.2.1.2
0
10.1.1.1
0
127.0.0.1
0
10.2.1.1
0
127.0.0.1
10
4
10.1.1.2
10
13
10.2.1.2
10
14
10.1.1.2
0
127.0.0.1
0
127.0.0.1
Routes : 11
Pre
Cost
NextHop
150
1
10.2.1.2
150
1
10.2.1.2
0
10.1.1.1
1-68
Interface
Vlan200
Vlan200
Vlan200
Vlan200
InLoop0
Vlan200
InLoop0
Vlan100
Vlan200
Vlan100
InLoop0
InLoop0
Interface
Vlan200
Vlan200
Vlan100

Advertisement

Chapters

Table of Contents
loading

Table of Contents