# 20191008

![](/files/-LrCG4RS5dxjDNFYNvWe)

![](/files/-LrCHwYuRzGFH3sDXU8b)

![](/files/-LrCIAvbGRk0tp-A_CCh)

```
先設定R1、R2的網路環境，再進行互ping。
基本設定完成後，請對R1、R2輸入以下指令:
router rip
network 10.1.1.1
router rip
network 10.1.2.1
開啟R1的capture檢視
```

![](/files/-LqeBAbMt00lWLNjHemM)

![](/files/-LqeBGTZvf1K39HFr1RZ)

```
R3路由器經由前面的步驟透過do show ip route得到:
10.1.1.0/24 [120/1] via 10.1.2.1 ...
10.1.2.0/24 ...

router rip
network 10.1.2.2
透過上述可以完成R1-R3的連接且能互相傳送資料。
```

```
R2:
int e0/1
ip addr 192.168.1.1 255.255.255.0
R3:
int e0/0
ip addr 192.168.1.2 255.255.255.0
R1先檢查ip route，在做:
router rip
version 2
R2、R3:
router rip
version 2
R2:
network 192.168.1.1
```

![](/files/-LqeNRbi7v70U4QEMDIt)

![](/files/-LqeN_3zOE1GjWoPHoMk)

```
加裝3台VPC
VPC4:
ip 172.16.1.1 255.255.255.0 172.16.1.254
VPC5:
ip 10.1.3.1 255.255.255.0 10.1.3.254
VPC6:
```

![](/files/-LrCM0OXzSq-l6dcowuj)

![](/files/-LrCMrC_G8Gnaar--MU6)

```
R1:
int e0/1
ip addr 172.16.1.254 255.255.255.0
no shut
do show ip int brief
R2:
int e0/1
ip addr 10.1.2.1 255.255.255.0
no shut
int e0/2
ip addr 10.1.3.254 255.255.255.0
no shut
do show ip int brief
R3:
int e0/0
ip addr 10.1.2.2 255.255.255.0
no shut
int e0/1
ip addr 172.16.2.254 255.255.255.0
no shut
do show ip int brief
R1:
router rip
version 2
network 172.16.1.254
network 10.1.1.1
R2:
router rip
version 2
network 10.1.1.2
network 10.1.2.1
network 10.1.3.254
R3:
router rip
version 2
network 10.1.2.2
network 172.16.2.254
```

```
VPC5:
ping 10.1.3.254
ping 10.1.1.1
ping 10.1.2.2
```

![](/files/-LrCP127zeJHeB2S0umM)

![](/files/-LrCPMBRx2nbgW1Eu_Ok)

{% embed url="<https://www.jannet.hk/zh-Hant/post/routing-information-protocol-rip/>" %}

```
R3:
default-information originate
R1:
key chain Mychain
key 1
key-string 1234
int e0/0
ip rip authentication key-chain Mychain
ip rip authentication mode md5
exit
R1:
show ip route
R2:
key chain Mychain
key 1
key-string 1234
int e0/0
ip rip authentication key
```

![](/files/-LrCRFiBqG4GcPnJ1eDQ)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cf337188.gitbook.io/01/20191008.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
