132CHAPTER 15: ROUTING CONFIGURATION GUIDE

#Configure route summarization to prevent network 30.0.0.0/8 from being advertised.

[SwitchA-ospf-1] asbr-summary 30.0.0.0 255.0.0.0 not-advertise

# Redistribute the static routes.

[SwitchA-ospf-1] import-route static

Configure Switch B.

The configuration on Switch B is the same as that in method 1. Refer to “Configure Switch B.” on page 130.

Complete Configuration In the following complete configuration, the import-routecommand and the route-policycommand are used to filter routing information (method 1). For the complete configurations of other methods, refer to the related configuration procedures.

Perform the following configuration on Switch A.

#

router id 1.1.1.1

#

acl number 2000

rule 0 deny source 30.0.0.0 0.255.255.255 rule 1 permit

#

vlan 100

#

vlan 200

#

interface Vlan-interface100 ip address 10.0.0.1 255.0.0.0

#

interface Vlan-interface200 ip address 12.0.0.1 255.0.0.0

#

ospf 1

import-route static route-policy ospf area 0.0.0.0

network 10.0.0.0 0.255.255.255

#

route-policy ospf permit node 10 if-match acl 2000

#

ip route-static 20.0.0.0 255.0.0.0 12.0.0.2 preference 60 ip route-static 30.0.0.0 255.0.0.0 12.0.0.2 preference 60 ip route-static 40.0.0.0 255.0.0.0 12.0.0.2 preference 60

#

Perform the following configuration on Switch B.

#

router id 2.2.2.2

#

vlan 100

#

interface Vlan-interface100

Page 132
Image 132
3Com 5500G, 4210, 4200G manual SwitchA-ospf-1 asbr-summary 30.0.0.0 255.0.0.0 not-advertise