H3C RIP配置

2023-01-31 01:01:41 配置 H3C RIP

153512544.jpg

AR1配置

<H3C>system-view

[H3C]sysname AR1

[AR1]interface GigabitEthernet 0/0/0

[AR1-GigabitEthernet0/0/0]ipaddress 192.168.1.1 24

[AR1-GigabitEthernet0/0/0]qu

[AR1]interface GigabitEthernet0/0/1

[AR1-GigabitEthernet0/0/1]ip address 192.168.0.1 24

[AR1-GigabitEthernet0/0/1]qu

[AR1]dis brief interface

[AR1]display ip routing-table 在AR1上查看,此时没有发现2.0网段

[AR1]rip

[AR1-rip-1]version 2 支持可变长掩码

[AR1-rip-1]network192.168.0.0 宣告网段

[AR1-rip-1]network 192.168.1.0

[AR1-rip-1]qu

AR2配置

<H3C>system-view

[H3C]sysname AR1

[AR2]interface GigabitEthernet 0/0/0

[AR2-GigabitEthernet0/0/0]ip address192.168.1.2 24

[AR2-GigabitEthernet0/0/0]qu

[AR2]interface GigabitEthernet 0/0/1

[AR2-GigabitEthernet0/0/1]ip address 192.168.2.1 24

[AR2-GigabitEthernet0/0/1]qu

[AR2]dis brief interface

[AR2]display ip routing-table AR2上查看,此时没有发现0.0网段

[AR2]rip

[AR2-rip-1]version 2

[AR2-rip-1]network 192.168.1.0

[AR2-rip-1]network 192.168.2.0

[AR2-rip-1]qu

[AR1]display ip routing-table 在AR1上查看,发现学到2.0网段

[AR2]display ip routing-table 在AR1上查看,发现学到0.0网段



相关文章