(一)配置各设备接口IP
R1
interface LoopBack0
ip address 192.168.1.1 255.255.255.255
#
interface LoopBack1
ip address 192.168.2.1 255.255.255.255
interface GigabitEthernet0/0/0
ip address 10.0.0.1 255.255.255.0
R2
interface GigabitEthernet0/0/0
ip address 10.0.0.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 11.0.0.1 255.255.255.0
rip authentication-mode simple 123
R3
interface GigabitEthernet0/0/0
ip address 11.0.0.2 255.255.255.0
rip authentication-mode simple 123
1、配置rip
R1
rip 1
undo summary
version 2
network 10.0.0.0
network 192.168.1.0
network 192.168.2.0
R2
rip 1
undo summary
version 2
network 10.0.0.0
network 11.0.0.0
R3
rip 1
undo summary
version 2
network 11.0.0.0
(二)查看设备各路由表
R1
[Huawei]DIS IP routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 8 Routes : 8
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.0.0.0/24 Direct 0 0 D 10.0.0.1 GigabitEthernet0/0/0
10.0.0.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0
11.0.0.0/24 RIP 100 1 D 10.0.0.2 GigabitEthernet0/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
192.168.0.1/32 Direct 0 0 D 127.0.0.1 LoopBack2
192.168.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack0
192.168.2.1/32 Direct 0 0 D 127.0.0.1 LoopBack1
R2
[R2]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 9 Routes : 9
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.0.0.0/24 Direct 0 0 D 10.0.0.2 GigabitEthernet0/0/0
10.0.0.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0
11.0.0.0/24 Direct 0 0 D 11.0.0.1 GigabitEthernet0/0/1
11.0.0.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/1
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
192.168.0.1/32 RIP 100 1 D 10.0.0.1 GigabitEthernet0/0/0
192.168.1.1/32 RIP 100 1 D 10.0.0.1 GigabitEthernet0/0/0
192.168.2.1/32 RIP 100 1 D 10.0.0.1 GigabitEthernet0/0/0
R3
[R3]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 8 Routes : 8
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.0.0.0/24 RIP 100 1 D 11.0.0.1 GigabitEthernet0/0/0
11.0.0.0/24 Direct 0 0 D 11.0.0.2 GigabitEthernet0/0/0
11.0.0.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
192.168.0.1/32 RIP 100 2 D 11.0.0.1 GigabitEthernet0/0/0
192.168.1.1/32 RIP 100 2 D 11.0.0.1 GigabitEthernet0/0/0
192.168.2.1/32 RIP 100 2 D 11.0.0.1 GigabitEthernet0/0/0
(三)测试网络连通性
[R1]tracert 11.0.0.2
traceroute to 11.0.0.2(11.0.0.2), max hops: 30 ,packet length: 40,press CTRL_C to break
1 10.0.0.2 100 ms 40 ms 50 ms
2 11.0.0.2 110 ms 90 ms 80 ms
[R3]tracert 192.168.0.1
traceroute to 192.168.0.1(192.168.0.1), max hops: 30 ,packet length: 40,press CTRL_C to break
1 11.0.0.1 30 ms 50 ms 30 ms
2 10.0.0.1 60 ms 60 ms 70 ms
(四)认证数据抓包
Jul 8 2015 10:38:07.960.4-08:00 Huawei RIP/7/DBG: 6: 12330: Full table request R
TE
Jul 8 2015 10:38:07.960.5-08:00 Huawei RIP/7/DBG: 6: 12236: RIP 2: Receive respo
nse from 11.0.0.2 on GigabitEthernet0/0/1
Jul 8 2015 10:38:07.960.6-08:00 Huawei RIP/7/DBG: 6: 12247: Packet: Version 2, C
md response, Length 64
Jul 8 2015 10:38:07.960.7-08:00 Huawei RIP/7/DBG: 6: 12371: Authentication-mode
- Simple: 123