ラボシミュレーション1
ガイドライン
これは、仮想デバイス上でタスクが実行されるラボ項目です。
- このラボ項目のタスクを表示するには、「タスク」タブを参照してください。
- デバイス コンソールにアクセスしてタスクを実行するには、[トポロジ] タブを参照してください。
- デバイス アイコンをクリックするか、コンソール ウィンドウの上にあるタブを使用すると、必要なすべてのデバイスにコンソール アクセスが利用できます。
- 必要な事前設定がすべて適用されました。
- どのデバイスの有効なパスワードまたはホスト名も変更しないでください。
- 次の項目に進む前に、設定を NVRAM に保存します。
- 画面下部の「次へ」をクリックしてこのラボを送信し、次の質問に進みます。
- 「次へ」をクリックすると、ラボは閉じられ、再度開くことができなくなります。
トポロジー

タスク
本社と両方のリモート サイトの間には BGP 接続が存在しますが、リモート サイト 1 はリモート サイト 2 と通信できません。次の目標を達成するには、トポロジに従って BGP を構成します。
1. リモート サイト 1 とリモート サイト 2 間の到達可能性を確保するため、BGP プロセスで R2 を設定します。R1 または R3 での設定変更は許可されません。
2. リモート サイト 1 とリモート サイト 2 の /32 ネットワークが相互に ping できることを確認します。
初期設定
(注: このシムには 2 つのバージョンがある可能性があります。最初のバージョンでは、R2 にアクセスできず、不要な構成が削除されています。まずはこのバージョンを解決します。)

R3 で「show ip bgp」コマンドを使用すると、R1 の Loopback0 インターフェイスは同じ AS 番号 123 から来ているため学習されていないことがわかります。

正解:
In order to allow same AS prefix to be received from eBGP neighbor and installed in BGP table, R1 can use the "allowas-in" command will as below:
R1(config)#router bgp 123
R1(config-router)#address-family ipv4
R1(config-router-af)#neighbor 10.0.0.2 allowas-in
Same configuration should be applied to R3:
R3(config)#router bgp 123
R3(config-router)#address-family ipv4
R3(config-router-af)#neighbor 192.168.1.2 allowas-in
Note: In the second version of this sim, only R2 can be accessible so the above commands cannot be applied to R1 & R3. In that case we have to use "as-override" on R2 as follows:
R2(config)#router bgp 456
R2(config-router)#address-family ipv4
R2(config-router-af)#neighbor 10.0.0.1 as-override
R2(config-router-af)#neighbor 192.168.1.3 as-override
With "as-override" configured, R3 would accept routes advertised from R1 (and vice versa) as the AS 123 was replaced by AS 456 in the AS_PATH. R3 will see the AS_PATH "456 456 i" (instead of "123 456 i"). Since the AS_PATH does not contain its own AS number so it accepts the advertised routes.
You can practice this version (AS-Override) with our own simulator at BGP Configuration online simulator v2. This version does not work with EVE-NG as AS-Override feature requires a VRF so we did not create a lab file in EVE-NG.
Verification
R1,R3#show ip bgp -> see Loopback0 of remote routers.
R1 must ping Loopback0 of R3 successfully.
Save the configuration
Don't forget to save the configuration on R1 & R3
R1, R3#copy running-config startup-config
In the second version, only R2 was configured so save its configuration: R2#copy running-config startup-config