2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

OSPFの設定演習

Last updated at Posted at 2024-08-26

はじめに

こちらの動画の設定演習をプレイしました。
https://www.youtube.com/watch?v=pLP6IUBb8J4&t=307s

OSPFの設定演習

スクリーンショット 2024-08-26 115615.png
以上の構成図をパケットトレーサーで再現し,ClientからTR(target Router)までの疎通確認をします。

スクリーンショット 2024-08-26 143723.png

各ルータに設定それぞれ設定します

RT1
Router(config)#hostname RT1
RT1(config)#interface gigabitEthernet 0/0 
RT1(config-if)#ip address 172.16.1.254 255.255.255.0 
RT1(config-if)#no shutdown 

RT1(config)#interface Loopback 0
RT1(config-if)ip address 1.1.1.1 255.255.255.255

RT1(config)#interface gigabitEthernet 0/1
RT1(config-if)ip address ip 192.168.10.1 255.255.255.0
RT1(config-if)no shutdown

RT1(config)#Router OSPF 1
RT1(config-router)#network 172.16.1.0 0.0.0.255 area 0
RT1(config-router)#network 192.168.10.0 0.0.0.255 area 0

RT2
router(config)#hostname RT2
RT2(config)#interface gigabitEthernet 0/0
RT2(config-if)#ip address 192.168.10.2 255.255.255.0 
RT2(config-if)#no shutdown 
RT2(config)#interface gigabitEthernet 0/1
RT2(config-if)#ip address 192.168.100.1 
RT2(config-if)#no shutdown 
RT2(config)#interface Loopback 0
RT2(config-if)#ip address 2.2.2.2 255.255.255.255 

RT2(config)#router ospf 1
RT2(config-router)#network 192.168.10.0 0.0.0.255 area 0
RT2(config-router)#network 192.168.100.0 0.0.0.255 area 0

RT3
router(config)#hostname RT3 
RT3(config)#interface gigabitEthernet 0/0 
RT3(config-if)#ip address 192.168.100.2 255.255.255.0 
RT3(config-if)#no shutdown
RT3(config)#interface gigabitEthernet 0/1
RT3(config-if)#ip address 192.168.100.2 255.255.255.0 
RT3(config-if)#no shutdown
RT3(config)#interface Loopback 0
RT3(config)#ip address 3.3.3.3 255.255.255.255
RT3(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.254
RT3(config)#router ospf 1
RT3(config-router)#network 192.168.100.0 0.0.0.255 area 0
RT3(config-router)#network 10.10.10.0 0.0.0.255 area 0
RT3(config-router)#default-information originate

TR(target Router)

Router(config)#hostname TR
TR(config)#interface gigabitEthernet 0/1
TR(config-if)ip address 10.10.10.1 255.255.255.0
TR(config)ip route 0.0.0.0 0.0.0.0 192.168.100.1
Client

クライアント.png

PING

スクリーンショット 2024-08-26 150854.png

ピング成功しました。みなさんもぜひチャレンジしてみてください~!!

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?