1. 程式人生 > >shell腳本和拓撲圖的互通配置

shell腳本和拓撲圖的互通配置

地址 mar blog loopback eth The .com 實驗 ip add

技術分享圖片技術分享圖片技術分享圖片技術分享圖片
拓撲圖實現ip互通
實驗環境準備:
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 10.0.13.1 24
[R1-GigabitEthernet0/0/0]quit
[R1]interface LoopBack 0
[R1-LoopBack0]ip address 10.0.1.1 24
[R1-LoopBack0]quit
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R2
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]ip address 10.0.12.2 24
[R2-GigabitEthernet0/0/1]quit
[R2]interface LoopBack 0
[R2-LoopBack0]ip address 10.0.2.2 24
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R3
[R3]interface LoopBack 0
[R3-LoopBack0]ip address 10.0.3.3 24
配置 IP 地址
為R2和R3配置如下IP地址。
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ip address 10.0.13.2 24
[R3]interface GigabitEthernet0/0/1
[R3-GigabitEthernet0/0/1]ip address 10.0.12.3 24
測試R1與R2間的連通性。
<R1>ping 10.0.13.2
測試R2與R3間的連通性。
<R2>ping 10.0.12.3

shell腳本和拓撲圖的互通配置