Ospf Routes - HPE 5800 Series Configuration Manual

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

Advertisement

<SwitchA> system-view
[SwitchA] ip route-static 0.0.0.0 0 192.168.212.1
# Configure static routes to 192.168.64.0/24, 192.168.74.0/24, and 192.168.99.0/24 with the
same next hop 192.168.212.161 on Switch B.
<SwitchB> system-view
[SwitchB] ip route-static 192.168.64.0 24 192.168.212.161
[SwitchB] ip route-static 192.168.74.0 24 192.168.212.161
[SwitchB] ip route-static 192.168.99.0 24 192.168.212.161
Configure OSPF between Switch B and Switch C and configure OSPF on Switch B to
3.
redistribute static routes:
# Configure OSPF to advertise the local network and enable OSPF to redistribute static routes
on Switch B.
[SwitchB] ospf
[SwitchB-ospf-1] area 0
[SwitchB-ospf-1-area-0.0.0.0] network 172.17.100.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] quit
[SwitchB-ospf-1] import-route static
[SwitchB-ospf-1] quit
# Configure OSPF to advertise the local networks on Switch C.
[SwitchC] ospf
[SwitchC-ospf-1] area 0
[SwitchC-ospf-1-area-0.0.0.0] network 172.17.100.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.0] network 10.220.2.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.0] quit
[SwitchC-ospf-1] quit
# Display the IP routing table on Switch C.
[SwitchC] display ip routing-table
Routing Tables: Public
Destinations : 10
Destination/Mask
3.3.3.3/32
10.220.2.0/24
10.220.2.16/32
127.0.0.0/8
127.0.0.1/32
172.17.100.0/24
172.17.100.2/32
192.168.64.0/24
192.168.74.0/24
192.168.99.0/24
The output shows that Switch C has learned routes to 192.168.64.0/24, 192.168.99.0/24, and
192.168.64.0/18 via OSPF.
Configure BGP between Switch C and Switch D and configure BGP on Switch C to redistribute
4.

OSPF routes:

# On Switch C, enable BGP, specify Switch D as an EBGP peer, and configure BGP to
redistribute OSPF routes.
[SwitchC] bgp 65106
Routes : 10
Proto
Pre
Cost
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
O_ASE
150
1
O_ASE
150
1
O_ASE
150
1
227
NextHop
Interface
127.0.0.1
InLoop0
10.220.2.16
Vlan200
127.0.0.1
InLoop0
127.0.0.1
InLoop0
127.0.0.1
InLoop0
172.17.100.2
Vlan100
127.0.0.1
InLoop0
172.17.100.1
Vlan100
172.17.100.1
Vlan100
172.17.100.1
Vlan100

Advertisement

Table of Contents
loading

This manual is also suitable for:

5820x series

Table of Contents