HP 6125XLG Layer 3 - Ip Routing Configuration Manual page 436

Blade switch
Hide thumbs Also See for 6125XLG:
Table of Contents

Advertisement

3.
Configure OSPF and route redistribution:
# Configure OSPF on Switch A.
<SwitchA> system-view
[SwitchA] ospf
[SwitchA-ospf-1] area 0
[SwitchA-ospf-1-area-0.0.0.0] network 192.168.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] quit
[SwitchA-ospf-1] quit
# On Switch B, configure OSPF and enable route redistribution from IS-IS.
[SwitchB] ospf
[SwitchB-ospf-1] area 0
[SwitchB-ospf-1-area-0.0.0.0] network 192.168.1.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] quit
[SwitchB-ospf-1] import-route isis 1
[SwitchB-ospf-1] quit
# Display the OSPF routing table on Switch A to view redistributed routes.
[SwitchA] display ospf routing
OSPF Process 1 with Router ID 192.168.1.1
Routing for Network
Destination
192.168.1.0/24
Routing for ASEs
Destination
172.17.1.0/24
172.17.2.0/24
172.17.3.0/24
Total Nets: 4
Intra Area: 1
4.
Configure filtering lists:
# Configure ACL 2002 to permit route 172.17.2.0/24.
[SwitchB] acl number 2002
[SwitchB-acl-basic-2002] rule permit source 172.17.2.0 0.0.0.255
[SwitchB-acl-basic-2002] quit
# Configure IP prefix list prefix-a to permit route 172.17.1.0/24.
[SwitchB] ip prefix-list prefix-a index 10 permit 172.17.1.0 24
5.
Configure a routing policy.
[SwitchB] route-policy isis2ospf permit node 10
[SwitchB-route-policy-isis2ospf-10] if-match ip address prefix-list prefix-a
[SwitchB-route-policy-isis2ospf-10] apply cost 100
[SwitchB-route-policy-isis2ospf-10] quit
[SwitchB] route-policy isis2ospf permit node 20
[SwitchB-route-policy-isis2ospf-20] if-match ip address acl 2002
Routing Tables
Cost
Type
1
Stub
Cost
Type
1
Type2
1
Type2
1
Type2
Inter Area: 0
ASE: 3
424
NextHop
AdvRouter
192.168.1.1
192.168.1.1
Tag
NextHop
1
192.168.1.2
1
192.168.1.2
1
192.168.1.2
NSSA: 0
Area
0.0.0.0
AdvRouter
192.168.2.2
192.168.2.2
192.168.2.2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5920 series5900 series

Table of Contents