|
OSPF の概要
Created by: 2005-11-23 non sugar
Modified by: 2008-01-05 non sugar
目次設定認証router ospf 1 router-id 1.1.1.1 area 0 authentication message-digest interface Vlan20 ip ospf message-digest-key 1 md5 hoge デフォルトルートのアダバタイズ
PC でのパケットキャプチャ# tcpdump -i eth0 ip[9] == 89 OSPF のフィルタリング
distribute-list によるルートフィルタ
(例) rid=2.2.2.2 からのルート 10.5.5.0/24 をフィルタ +-----------+s0.1 +-----------+
| +-------+rid=1.1.1.1|
| | +-----------+
| |
|rid=3.3.3.3|s0.2 +-----------+
| +-------+rid=2.2.2.2|
| | +-----------+
+-----------+
! Example1
ip prefix-list prefix-10-5-5-0 seq 5 deny 10.5.5.0/24
ip prefix-list prefix-10-5-5-0 sqe 10 permit 0.0.0.0/0 le 32
!
router ospf 1
distribute-list prefix prefix-10-5-5-5 in s0.2
!
! Example2 router ospf 1 distibute-list route-map map-10-5-5-5 in ! access-list 30 permit 10-5-5-0 access-list 31 permit 2.2.2.2 ! router-map map-10-5-5-5 deny 10 match ip address 30 match ip route-source 31 router-map map-10-5-5-5 permit 20 ! 外部ルート E1, E2
参考
Cisco Web サイト
RFCs
|