kstm-su / ictsc_2020_yrfw_pre

0 stars 0 forks source link

繋がらなくなっちゃった! # #9

Open z1ploc opened 3 years ago

z1ploc commented 3 years ago

概要

OSPFを用いて4つのルータ間で経路交換をしていたが、RT1とRT2の設定を書き換えたらRT4に対してR1から疎通ができなくなってしまった。原因を究明し、RT1・RT2の設定を直して疎通ができる状態に復旧してほしい。また、なぜ疎通ができなくなってしまったのかをまとめてほしい。

Imagur

前提条件

直接sshして設定できるのはRT1・RT2のみ OSPFを用いて経路を学習する エリアはバックボーン含めて最低3つ用意する 初期状態 RT1・RT2間、RT2・RT3間は疎通ができるが、RT4への疎通ができない。

RT3のコンフィグ

interfaces { ethernet eth0 { address 192.168.2.2/24 hw-id 9c:a3:ba:30:9d:2c } ethernet eth1 { address 192.168.3.1/24 hw-id 9c:a3:ba:30:12:7a } loopback lo { } } protocols { ospf { area 0 { network 192.168.2.0/24 } area 2 { network 192.168.3.0/24 } parameters { abr-type cisco router-id 10.1.1.3 } } } service { } system { config-management { commit-revisions 100 } console { device ttyS0 { speed 115200 } } host-name RT3 login { banner { post-login " __ _ \n| / __| / |/ |\n | || | | | | (_ | | \n | || | | | \ \| | \n| || |__ | | ) | | \n|\| || |____/ \_____|" } user ictsc { authentication { encrypted-password **** plaintext-password **** public-keys ictsc { key **** type ssh-rsa } } } user user { authentication { encrypted-password **** plaintext-password **** } } user vyos { } } ntp { server 0.pool.ntp.org { } server 1.pool.ntp.org { } server 2.pool.ntp.org { } } syslog { global { facility all { level info } facility protocols { level debug } } } time-zone Asia/Tokyo }`

RT4のコンフィグ

interfaces { ethernet eth0 { address 192.168.3.2/24 hw-id 9c:a3:ba:30:c5:0e } loopback lo { } } protocols { ospf { area 2 { network 192.168.3.0/24 } parameters { abr-type cisco router-id 10.1.1.4 } } } service { } system { config-management { commit-revisions 100 } console { device ttyS0 { speed 115200 } } host-name RT4 login { banner { post-login " __ _ \n| / __| / |/ |\n | || | | | | (_ | | \n | || | | | \ \| | \n| || |__ | | ) | | \n|\| || |____/ \_____|" } user ictsc { authentication { encrypted-password **** plaintext-password **** public-keys ictsc { key **** type ssh-rsa } } } user user { authentication { encrypted-password **** plaintext-password **** } } user vyos { } } ntp { server 0.pool.ntp.org { } server 1.pool.ntp.org { } server 2.pool.ntp.org { } } syslog { global { facility all { level info } facility protocols { level debug } } } time-zone Asia/Tokyo } 終了状態 原因を究明し、RT1からRT4への疎通ができる。

z1ploc commented 3 years ago

RT1 protocols { ospf { area 0 { network 192.168.1.0/24 } parameters { abr-type cisco router-id 10.1.1.1 } passive-interface eth1 } }

RT2 protocols { ospf { area 0 { network 192.168.1.0/24 } area 1 { network 192.168.2.0/24 } parameters { abr-type cisco router-id 10.1.1.1 } } }

普通にルーティングの問題か,コストか何かの問題?

z1ploc commented 3 years ago

RT3 protocols { ospf { area 0 { network 192.168.2.0/24 } area 2 { network 192.168.3.0/24 } parameters { abr-type cisco router-id 10.1.1.3 } } }

RT4 protocols { ospf { area 2 { network 192.168.3.0/24 } parameters { abr-type cisco router-id 10.1.1.4 } } }