Jump to navigation
« OSPFでの注意点 |
EIGRP »
OSPFによるネットワーク構築
今日は、前回のRIPと似たような構成で、ルーティングプロトコルにOSPFを使う場合の実習でした。お題はこちら。
設定の注意点は、
・フレームリレーはNBMAなので、DR/BDRをスタティック設定するか、
インタフェースにip ospf network point-to-multipointを指定すること。
・OSPFのプロセスIDは、ルータごとに異なっていてよい。
・RIPのときの注意点もチェック
各ルータの設定はコメントに書きます。
サイト内関連記事 : ルーティング
スポンサードリンク
コメント
=== R1 ===
!
hostname R1
!
logging queue-limit 100
enable secret 5 $1$OSz/$q3VD2TA6G.xSCit/NN5li/
!
ip subnet-zero
!
!
!
!
!
!
!
!
interface Loopback0
ip address 150.1.4.1 255.255.255.0
!
interface BRI0
no ip address
shutdown
!
interface FastEthernet0
ip address 192.168.10.2 255.255.255.0
no ip redirects
speed auto
standby track Serial0
standby 1 ip 192.168.10.1
standby 1 priority 105
standby 1 preempt
!
interface Serial0
ip address 172.16.31.1 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint
ip ospf priority 5
frame-relay map ip 172.16.31.2 16 broadcast
frame-relay map ip 172.16.31.3 17 broadcast
frame-relay lmi-type q933a
!
router ospf 55
log-adjacency-changes
network 172.16.31.0 0.0.0.255 area 0
network 192.168.10.0 0.0.0.255 area 0
!
ip classless
no ip http server
!
!
=== R2 ===
!
hostname R2
!
logging queue-limit 100
enable secret 5 $1$jYiY$HwFDK1TUwtq5j9fYKQZG5.
!
username R5 password 0 cisco
username R4 password 0 cisco
ip subnet-zero
!
!
no ip domain lookup
!
!
isdn switch-type ntt
!
!
!
interface Loopback1
ip address 150.1.3.1 255.255.255.0
!
interface BRI0
ip address 172.16.29.1 255.255.255.0
encapsulation ppp
dialer map ip 172.16.29.2 name R5 2003
dialer map ip 172.16.29.3 name R4 2002
dialer-group 1
isdn switch-type ntt
ppp authentication chap
!
interface FastEthernet0
ip address 192.168.10.3 255.255.255.0
no ip redirects
speed auto
standby 1 ip 192.168.10.1
standby 1 preempt
!
interface Serial0
no ip address
shutdown
no fair-queue
!
router ospf 100
log-adjacency-changes
redistribute static metric 20 subnets
network 192.168.10.0 0.0.0.255 area 0
!
ip classless
ip route 172.16.1.0 255.255.255.0 172.16.29.3 200
ip route 172.16.2.0 255.255.255.0 172.16.29.2 200
no ip http server
!
!
!
dialer-list 1 protocol ip permit
!
!
=== R3 ===
!
hostname R3
!
logging queue-limit 100
enable secret 5 $1$WY.s$6mXz84911rxKGaoGTnUKi1
!
username R1 password 0 cisco
username R3 password 0 cisco
username R4 password 0 cisco
username R5 password 0 cisco
ip subnet-zero
!
!
no ip domain lookup
!
!
!
!
!
!
interface Loopback0
ip address 150.1.2.1 255.255.255.0
!
interface BRI0
no ip address
shutdown
!
interface FastEthernet0
ip address 172.16.2.2 255.255.255.0
no ip redirects
speed auto
standby 1 ip 172.16.2.1
standby 1 priority 105
standby 1 preempt
standby 1 track Serial0 15
!
interface Serial0
ip address 172.16.31.2 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint
ip ospf priority 5
frame-relay map ip 172.16.31.1 16 broadcast
frame-relay lmi-type q933a
!
router ospf 1
log-adjacency-changes
network 172.16.2.0 0.0.0.255 area 1
network 172.16.30.0 0.0.1.255 area 0
!
ip classless
no ip http server
!
!
=== R4 ===
!
hostname R4
!
logging queue-limit 100
no logging console
enable secret 5 $1$f3y.$mRFkFV3Nrf9IOcmocO9gs0
!
username R2 password 0 cisco
ip subnet-zero
!
!
no ip domain lookup
!
!
isdn switch-type ntt
!
!
!
interface BRI0
ip address 172.16.29.3 255.255.255.0
encapsulation ppp
dialer idle-timeout 200
dialer map ip 172.16.29.1 name R2 2001
dialer-group 1
no peer neighbor-route
isdn switch-type ntt
ppp authentication chap
!
interface FastEthernet0
ip address 172.16.1.1 255.255.255.0
no ip redirects
speed auto
!
interface Serial0
ip address 172.16.31.3 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint
frame-relay map ip 172.16.31.1 16 broadcast
frame-relay lmi-type q933a
!
router ospf 4
log-adjacency-changes
network 172.16.1.0 0.0.0.255 area 2
network 172.16.31.0 0.0.0.255 area 0
!
ip classless
ip route 172.16.2.0 255.255.255.0 172.16.29.1 210
ip route 192.168.10.0 255.255.255.0 172.16.29.1 210
no ip http server
!
!
=== R5 ===
!
hostname R5
!
logging queue-limit 100
enable secret 5 $1$JOv9$zksbR8m9J0KEw.umpmoqp0
!
username R2 password 0 cisco
ip subnet-zero
!
!
no ip domain lookup
!
!
isdn switch-type ntt
!
!
!
interface BRI0
ip address 172.16.29.2 255.255.255.0
encapsulation ppp
dialer map ip 172.16.29.1 name R2 2001
dialer-group 1
isdn switch-type ntt
ppp authentication chap
!
interface FastEthernet0
ip address 172.16.2.3 255.255.255.0
no ip redirects
speed auto
standby 1 ip 172.16.2.1
standby 1 preempt
!
interface Serial0
no ip address
shutdown
!
router ospf 10
log-adjacency-changes
redistribute static metric 40 metric-type 1 subnets
network 172.16.2.0 0.0.0.255 area 1
!
ip classless
ip route 172.16.1.0 255.255.255.0 172.16.29.1 199
ip route 192.168.10.0 255.255.255.0 172.16.29.1 199
no ip http server
!
!
コメントを追加
* コメントにURLを書くとブロックされます。
(私が気付いたときは解除されることもありますが。)
* スパムブロックのため、コメントの反映に時間がかかることがあります。
TrackBack
* 現在、当方へのリンクがないTBは受け付けておりません。
* 当方へのTBの一覧のリンクはリダイレクトされています。SEO目的のみのTBはあまり意味をなさないと思いますのでご遠慮ください。
!
hostname R1
!
logging queue-limit 100
enable secret 5 $1$OSz/$q3VD2TA6G.xSCit/NN5li/
!
ip subnet-zero
!
!
!
!
!
!
!
!
interface Loopback0
ip address 150.1.4.1 255.255.255.0
!
interface BRI0
no ip address
shutdown
!
interface FastEthernet0
ip address 192.168.10.2 255.255.255.0
no ip redirects
speed auto
standby track Serial0
standby 1 ip 192.168.10.1
standby 1 priority 105
standby 1 preempt
!
interface Serial0
ip address 172.16.31.1 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint
ip ospf priority 5
frame-relay map ip 172.16.31.2 16 broadcast
frame-relay map ip 172.16.31.3 17 broadcast
frame-relay lmi-type q933a
!
router ospf 55
log-adjacency-changes
network 172.16.31.0 0.0.0.255 area 0
network 192.168.10.0 0.0.0.255 area 0
!
ip classless
no ip http server
!
!
=== R2 ===
!
hostname R2
!
logging queue-limit 100
enable secret 5 $1$jYiY$HwFDK1TUwtq5j9fYKQZG5.
!
username R5 password 0 cisco
username R4 password 0 cisco
ip subnet-zero
!
!
no ip domain lookup
!
!
isdn switch-type ntt
!
!
!
interface Loopback1
ip address 150.1.3.1 255.255.255.0
!
interface BRI0
ip address 172.16.29.1 255.255.255.0
encapsulation ppp
dialer map ip 172.16.29.2 name R5 2003
dialer map ip 172.16.29.3 name R4 2002
dialer-group 1
isdn switch-type ntt
ppp authentication chap
!
interface FastEthernet0
ip address 192.168.10.3 255.255.255.0
no ip redirects
speed auto
standby 1 ip 192.168.10.1
standby 1 preempt
!
interface Serial0
no ip address
shutdown
no fair-queue
!
router ospf 100
log-adjacency-changes
redistribute static metric 20 subnets
network 192.168.10.0 0.0.0.255 area 0
!
ip classless
ip route 172.16.1.0 255.255.255.0 172.16.29.3 200
ip route 172.16.2.0 255.255.255.0 172.16.29.2 200
no ip http server
!
!
!
dialer-list 1 protocol ip permit
!
!
=== R3 ===
!
hostname R3
!
logging queue-limit 100
enable secret 5 $1$WY.s$6mXz84911rxKGaoGTnUKi1
!
username R1 password 0 cisco
username R3 password 0 cisco
username R4 password 0 cisco
username R5 password 0 cisco
ip subnet-zero
!
!
no ip domain lookup
!
!
!
!
!
!
interface Loopback0
ip address 150.1.2.1 255.255.255.0
!
interface BRI0
no ip address
shutdown
!
interface FastEthernet0
ip address 172.16.2.2 255.255.255.0
no ip redirects
speed auto
standby 1 ip 172.16.2.1
standby 1 priority 105
standby 1 preempt
standby 1 track Serial0 15
!
interface Serial0
ip address 172.16.31.2 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint
ip ospf priority 5
frame-relay map ip 172.16.31.1 16 broadcast
frame-relay lmi-type q933a
!
router ospf 1
log-adjacency-changes
network 172.16.2.0 0.0.0.255 area 1
network 172.16.30.0 0.0.1.255 area 0
!
ip classless
no ip http server
!
!
=== R4 ===
!
hostname R4
!
logging queue-limit 100
no logging console
enable secret 5 $1$f3y.$mRFkFV3Nrf9IOcmocO9gs0
!
username R2 password 0 cisco
ip subnet-zero
!
!
no ip domain lookup
!
!
isdn switch-type ntt
!
!
!
interface BRI0
ip address 172.16.29.3 255.255.255.0
encapsulation ppp
dialer idle-timeout 200
dialer map ip 172.16.29.1 name R2 2001
dialer-group 1
no peer neighbor-route
isdn switch-type ntt
ppp authentication chap
!
interface FastEthernet0
ip address 172.16.1.1 255.255.255.0
no ip redirects
speed auto
!
interface Serial0
ip address 172.16.31.3 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint
frame-relay map ip 172.16.31.1 16 broadcast
frame-relay lmi-type q933a
!
router ospf 4
log-adjacency-changes
network 172.16.1.0 0.0.0.255 area 2
network 172.16.31.0 0.0.0.255 area 0
!
ip classless
ip route 172.16.2.0 255.255.255.0 172.16.29.1 210
ip route 192.168.10.0 255.255.255.0 172.16.29.1 210
no ip http server
!
!
=== R5 ===
!
hostname R5
!
logging queue-limit 100
enable secret 5 $1$JOv9$zksbR8m9J0KEw.umpmoqp0
!
username R2 password 0 cisco
ip subnet-zero
!
!
no ip domain lookup
!
!
isdn switch-type ntt
!
!
!
interface BRI0
ip address 172.16.29.2 255.255.255.0
encapsulation ppp
dialer map ip 172.16.29.1 name R2 2001
dialer-group 1
isdn switch-type ntt
ppp authentication chap
!
interface FastEthernet0
ip address 172.16.2.3 255.255.255.0
no ip redirects
speed auto
standby 1 ip 172.16.2.1
standby 1 preempt
!
interface Serial0
no ip address
shutdown
!
router ospf 10
log-adjacency-changes
redistribute static metric 40 metric-type 1 subnets
network 172.16.2.0 0.0.0.255 area 1
!
ip classless
ip route 172.16.1.0 255.255.255.0 172.16.29.1 199
ip route 192.168.10.0 255.255.255.0 172.16.29.1 199
no ip http server
!
!