NBMAネットワーク(MGRE)でのOSPF実験

NBMA(MGRE)OSPF実験

実験トポロジー

実験要件

①ISPはIPアドレスでのみ設定可能で、PC1-5はプライベートネットワークセグメントにあり、R6のループバックはパブリックネットワークセグメントにあります
。②R1/ 4/5は完全に接続された構造のMGREです。R1/ 2 / 3はスターMGRE、R1は中心サイト
③すべてのプライベートネットワークセグメントはOSPFを使用して相互に通信できます

具体配置

(1)IPアドレスを設定する

【R1】
int型G0 / 0/0
IP広告16.1.1.1 24
int型G0 / 0/1
のIP広告61.1.1.1 24
/0/2 int型G0
IP広告192.168.1.254 24

【R2】
int型G0 / 0/0
IP広告26.1.1.1 24
/0/2 int型G0
IP広告192.168.2.254 24

【R3】
int型G0 / 0/0
IP広告36.1.1.1 24
/0/2 int型G0
IP広告192.168.3.254 24

【R4】
int型G0 / 0/0
IP広告46.1.1.1 24
/0/2 int型G0
IP広告192.168.4.254 24

【R5】
int型G0 / 0/0
IP広告56.1.1.1 24
/0/2 int型G0
IP広告192.168.5.254 24

【ISP】intg0
/ 0/0
ip ad 16.1.1.2 24
int g0 / 0/1
ip ad 61.1.1.2 24
int g0 / 0/2
ip ad 26.1.1.2 24
int g1 /
0/0 ip ad 36.1.1.2 24
int g2 /
0/0 ip ad 46.1.1.2 24
int g3 /
0/0 ip ad 56.1.1.2 24
int lo 0
ip ad 6.6.6.6 24

(2)DHCPを構成する

【R1】【R2】【R3】【R4】【R5】
dhcpenable
ip pool a
network 192.168.1
/ 2/3/4 / 5.0 mask 24 Gateway-list 192.168.1 / 2/3/4 / 5.254
int g0 /
0/2 dhcp select global

(3)デフォルトを設定する

【R1】
iproute-static 0.0.0.0 0.0.0.0 16.1.1.2
ip route-static 0.0.0.0 0.0.0.0 61.1.1.2

【R2】
iproute-static 0.0.0.0 0.0.0.0 26.1.1.2

【R3】
iproute-static 0.0.0.0 0.0.0.0 36.1.1.2

【R4】
iproute-static 0.0.0.0 0.0.0.0 46.1.1.2

【R5】
iproute-static 0.0.0.0 0.0.0.0 56.1.1.2

(4)NATを構成する

【R1】
2000 ACL
のpermit 192.168.1.0 0.0.0.255ソースルール
int型のG0 / 0/0
NATアウトは2000束縛
int型のG0 / 0/1
NATアウトバウンド2000

【R2】【R3】【R4】【R5】
acl2000
ルール許可ソース192.168.2 / 3/4 / 5.0 0.0.0.255
int g0 / 0/0
nat out bound 2000

(5)R1 / 4/5間で完全に接続された構造でMGREを構成します

【R1】intTunnel
0/0/0
ip ad 10.1.1.1 24
tunnel-protocol gre p2mp
source 16.1.1.1
nhrp entry multicast dynamic
nhrp network-id 100

【R4】intTunnel
0/0/0
ip ad 10.1.1.4 24
tunnel-protocol gre p2mp
source 46.1.1.1
nhrp entry multicast dynamic
nhrp network-id 100
nhrp entry 10.1.1.5 56.1.1.1 register

【R5】
intトンネル0/0 / 0ip
ad 10.1.1.524
トンネルプロトコルgrep2mp
ソース
56.1.1.1nhrpエントリマルチキャスト動的
nhrpネットワーク
ID100nhrpエントリ10.1.1.116.1.1.1レジスタ
nhrpエントリ10.1.1.446.1。 1.1レジスタ

(6)R1 / 2/3の間にスター構造MGREを構成します

[R1]
int Tunnel 0/0/1
ip ad 20.1.1.1 24
tunnel-protocol gre p2mp
source 61.1.1.1
nhrp entry multicast dynamic // R1のみが中央サイト
nhrpnetwork-id 100

【R2】intTunnel
0/0/1
ip ad 20.1.1.2 24
tunnel-protocol gre p2mp
source 26.1.1.1
nhrp network-id 100
nhrp entry 20.1.1.1 61.1.1.1 register

【R3】
INTトンネル0/0/1
IP広告20.1.1.3 24
トンネルプロトコルのGRE P2MPの
ソース36.1.1.1
NHRPネットワークID 100
NHRPエントリ20.1.1.1 61.1.1.1レジスタ

(7)OSPFを構成します

①OSPF宣告:
【R1】
ospf 1 router-id 1.1.1.1
area 0
network 192.168.1.0 0.0.0.255
network 10.1.1.0 0.0.0.255
network 20.1.1.0 0.0.0.255

【R4】
ospf1 router-id 4.4.4.4
area 0
network 192.168.4.0 0.0.0.255
network 10.1.1.0 0.0.0.255

【R5】
ospf1 router-id 5.5.5.5
area 0
network 192.168.5.0 0.0.0.255
network 10.1.1.0 0.0.0.255

【R2】ospf1
router-id 2.2.2.2
area 0
network 192.168.2.0 0.0.0.255
network 20.1.1.0 0.0.0.255

【R3】
ospf1 router-id 3.3.3.3
area 0
network 192.168.3.0 0.0.0.255
network 20.1.1.0 0.0.0.255

②インターフェースの動作モードを変更します。
【R1】【R4】【R5】
intトンネル0/0 / 0ospf
ネットワーク型ブロードキャスト

【R1】【R2】【R3】
intトンネル
0/0 / 1ospfネットワーク型p2mp

実験的テスト

PC1pingテスト:


すべての人が通信して要件を完了することができます。

これで実験は完了です!

おすすめ

転載: blog.csdn.net/FLY_7_/article/details/113853477