H3C设备之RIP V1

 

 

H3C设备之RIP V1_第1张图片

 

配置RIP V1 ,使PCA可以访问PCB:

[RTA]interface s6/0

          ip address 11.1.1.1 24

          interface g0/0

          ip address 10.1.1.1 24

[RTB]interface s6/0

          ip address 11.1.1.2 24

          interface g0/0

          ip address 12.1.1.1 24

PCA:10.1.1.2 255.255.255.0

PCB:12.1.1.2 255.255.255.0

配置RIP V1,让各网段连通:

[RTA]rip 1

          network 10.1.1.0

          network 11.1.1.0

[RTB]rip 1

          network 11.1.1.0

          network 12.1.1.0

此时RTA,RTB都学习到了路由信息,可以相互访问。但是RIP V1是自动汇总开启的无法关闭,不支持携带子网信息,所以获取的是汇总信息。并不能完全的反应正确网段的信息。

PCA:  C:\Documents and Settings\xiaofei>ping 12.1.1.2

Pinging 12.1.1.2 with 32 bytes of data:

Reply from 12.1.1.2: bytes=32 time=1ms TTL=254
Reply from 12.1.1.2: bytes=32 time=1ms TTL=254
Reply from 12.1.1.2: bytes=32 time=1ms TTL=254
Reply from 12.1.1.2: bytes=32 time=1ms TTL=254

Ping statistics for 12.1.1.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 1ms, Average = 1ms

C:\Documents and Settings\xiaofei>

 

PCB:  C:\Documents and Settings\xiaofei>ping 10.1.1.2

Pinging 10.1.1.2 with 32 bytes of data:

Reply from 12.1.1.2: bytes=32 time=1ms TTL=254
Reply from 12.1.1.2: bytes=32 time=1ms TTL=254
Reply from 12.1.1.2: bytes=32 time=1ms TTL=254
Reply from 12.1.1.2: bytes=32 time=1ms TTL=254

Ping statistics for 10.1.1.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 1ms, Average = 1ms

C:\Documents and Settings\xiaofei>

[RTA]disp ip routing-table
Routing Tables: Public
        Destinations : 7        Routes : 7

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

10.1.1.0/24         Direct 0    0            10.1.1.1        Eth0/1/0
10.1.1.1/32         Direct 0    0            127.0.0.1       InLoop0
11.1.1.0/24         Direct 0    0            11.1.1.1        Eth0/0/0
11.1.1.1/32         Direct 0    0            127.0.0.1       InLoop0
12.0.0.0/8          RIP    100  1            11.1.1.2        Eth0/0/0
127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0
127.0.0.1/32        Direct 0    0            127.0.0.1       InLoop0
 

[RTB]disp ip routing-table
Routing Tables: Public
        Destinations : 6        Routes : 6

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

10.0.0.0/8          RIP    100  1            11.1.1.1        Eth0/0/0
11.1.1.0/24         Direct 0    0            11.1.1.2        Eth0/0/0
11.1.1.2/32         Direct 0    0            127.0.0.1       InLoop0
12.1.1.2/32         Direct 0    0            127.0.0.1       InLoop0
127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0
127.0.0.1/32        Direct 0    0            127.0.0.1       InLoop0

 

 

你可能感兴趣的:(h3c,rip,v1)