host1(config)#
ip route 20.20.20.0 255.255.255.0 192.168.1.0
host1(config)#
ip route 20.20.21.0 255.255.255.0 192.168.1.0
host1(config)#
ip route 20.21.0.0 255.255.255.0 192.168.1.0
2.
Configure an access list with filters on routes 20.20.20.0/24 and
20.20.21.0/24.
host1(config)#
access-list boston permit 20.20.0.0 0.0.255.255
3.
Configure a route map that matches the previous access list and applies a
metric type 1 (OSPF).
host1(config)#
route-map boston
host1(config-route-map)#
match ip address boston
host1(config-route-map)#
set metric-type type-1
4.
Configure redistribution of the static routes into OSPF with route map boston.
host1(config)#
router ospf 2
host1(config-router)#
redistribute static route-map boston
5.
Use the
show ip ospf database
command to verify the effect of the
redistribution (that the two static routes matching the route map are
redistributed as external type 1).
host1#
show ip ospf database
OSPF Database
Router Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Checksum
192.168.1.250 192.168.1.250 3 0x80000006 0x39a1
192.168.254.7 192.168.254.7 220 0x80000169 0xd2b5
Network Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Checksum
192.168.1.214 192.168.254.7 220 0x80000001 0xe0f2
AS External Link States
Link ID ADV Router Age Seq# Checksum
20.20.20.0 192.168.1.250 3 0x80000001 0x6045
20.20.21.0 192.168.1.250 3 0x80000001 0x554f
■
Use the
no
version of the
access-list
command to remove the access list or the
specified entry in the access list.
■
Use the
no
version of the
route-map
command to remove an entry.
■
See access-list
■
See route-map
auto-cost reference-bandwidth
ospf auto-cost reference-bandwidth
■
Use to calculate the OSPFv2 or OSPFv3 interface cost according to bandwidth.
■
Sets the OSPF metric for an interface according to the bandwidth specified.
■
Affects OSPF metrics for existing OSPFv2 interfaces and OSPFv2 interfaces
created after the execution of this command.
Configuring Additional Parameters
■
279
Chapter 5: Configuring OSPF
Содержание IGP - CONFIGURATION GUIDE V11.1.X
Страница 6: ...vi...
Страница 8: ...viii JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 18: ...xviii List of Figures JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 20: ...xx List of Tables JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 26: ...2 Internet Protocol JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 148: ...Set clauses set local pref 400 See show route map 124 Monitoring IP JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 228: ...204 Internet Protocol Routing JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 264: ...240 Monitoring RIP JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 438: ...414 Monitoring IS IS JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 439: ...Part 3 Index Index on page 417 Index 415...
Страница 440: ...416 Index JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...
Страница 454: ...430 Index JUNOSe 11 0 x IP IPv6 and IGP Configuration Guide...