HPE 5800 Series Configuration Manual page 116

Layer 3 - ip routing
Hide thumbs Also See for 5800 Series:
Table of Contents

Advertisement

10.5.1.0/24
127.0.0.0/8
127.0.0.1/32
On Switch C, filter out route 3.1.3.0/24:
4.
# 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
3.1.1.0/24
3.1.2.0/24
10.1.1.0/24
10.1.1.1/32
10.2.1.0/24
10.2.1.1/32
10.3.1.0/24
10.4.1.0/24
10.5.1.0/24
127.0.0.0/8
127.0.0.1/32
The route destined for network 3.1.3.0/24 is filtered out.
On Switch A, filter out the route 10.5.1.1/24:
5.
# Configure the ACL on Switch A.
<SwitchA> system-view
[SwitchA] acl number 2000
[SwitchA-acl-basic-2000] rule 0 deny source 10.5.1.0 0.0.0.255
[SwitchA-acl-basic-2000] rule 1 permit source any
[SwitchA-acl-basic-2000] quit
# Use the ACL to filter route 10.5.1.0/24.
[SwitchA] ospf 1
[SwitchA-ospf-1] filter-policy 2000 import
[SwitchA-ospf-1] quit
# Display the OSPF routing table of Switch A.
[SwitchA] display ip routing-table
Routing Tables: Public
Destinations : 10
Destination/Mask
OSPF
10
14
Direct 0
0
Direct 0
0
Routes : 11
Proto
Pre
Cost
O_ASE
150
1
O_ASE
150
1
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
OSPF
10
4
OSPF
10
13
OSPF
10
14
Direct 0
0
Direct 0
0
Routes : 10
Proto
Pre
Cost
105
10.1.1.2
Vlan100
127.0.0.1
InLoop0
127.0.0.1
InLoop0
NextHop
Interface
10.2.1.2
Vlan200
10.2.1.2
Vlan200
10.1.1.1
Vlan100
127.0.0.1
InLoop0
10.2.1.1
Vlan200
127.0.0.1
InLoop0
10.1.1.2
Vlan100
10.2.1.2
Vlan200
10.1.1.2
Vlan100
127.0.0.1
InLoop0
127.0.0.1
InLoop0
NextHop
Interface

Advertisement

Table of Contents
loading

This manual is also suitable for:

5820x series

Table of Contents