R8和r9的环回分别是172.16.1.0/24和172.16.2.0/24
中间使用78.1.1.0/24
剩下的路由器2-6使用172.16.0.0/16
R1为运营商 r1远程登录r2实际登录r7
R2访问r7要求走r5去访问
全网可达
子网划分
172.16.3.0/24
172.16.4.0/24
172.16.5.0/24
172.16.6.0/24
172.16.7.0/24
172.16.8.0/24
172.16.9.0/24
12.1.1.0/24
78.1.1.0/24
R7环回
7.7.7.7
R8环回
172.16.1.1
R9环回
172.16.2.1
根据划分方案对路由器进行配置ip地址:
R2配置ip地址
Destination/Mask Proto Pre Cost Flags NextHop Interface
0.0.0.0/0 Static 60 0 RD 12.1.1.1 GigabitEthernet
0/0/0
7.7.7.7/32 RIP 100 7 D 172.16.3.2 GigabitEthernet
0/0/1
12.1.1.0/24 Direct 0 0 D 12.1.1.2 GigabitEthernet
0/0/0
12.1.1.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
12.1.1.3/32 Unr 64 0 D 127.0.0.1 InLoopBack0
12.1.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
78.1.1.0/24 RIP 100 5 D 172.16.3.2 GigabitEthernet
0/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
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
172.16.0.0/16 RIP 100 6 D 172.16.3.2 GigabitEthernet
0/0/1
172.16.1.0/24 RIP 100 5 D 172.16.3.2 GigabitEthernet
0/0/1
172.16.3.0/24 Direct 0 0 D 172.16.3.1 GigabitEthernet
0/0/1
172.16.3.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
172.16.3.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
172.16.4.0/24 RIP 100 1 D 172.16.3.2 GigabitEthernet
0/0/1
172.16.5.0/24 RIP 100 1 D 172.16.3.2 GigabitEthernet
0/0/1
172.16.6.0/24 RIP 100 4 D 172.16.3.2 GigabitEthernet
0/0/1
172.16.7.0/24 RIP 100 2 D 172.16.3.2 GigabitEthernet
0/0/1
172.16.8.0/24 RIP 100 3 D 172.16.3.2 GigabitEthernet
0/0/1
172.16.9.0/24 RIP 100 4 D 172.16.3.2 GigabitEthernet
0/0/1
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
R3配置ip地址
Destination/Mask Proto Pre Cost Flags NextHop Interface
0.0.0.0/0 RIP 100 1 D 172.16.3.1 GigabitEthernet
0/0/0
7.7.7.7/32 RIP 100 4 D 172.16.4.2 GigabitEthernet
0/0/2
78.1.1.0/24 RIP 100 4 D 172.16.4.2 GigabitEthernet
0/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
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
172.16.0.0/16 RIP 100 5 D 172.16.4.2 GigabitEthernet
0/0/1
172.16.1.0/24 RIP 100 4 D 172.16.4.2 GigabitEthernet
0/0/1
172.16.3.0/24 Direct 0 0 D 172.16.3.2 GigabitEthernet
0/0/0
172.16.3.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
172.16.3.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
172.16.4.0/24 Direct 0 0 D 172.16.4.1 GigabitEthernet
0/0/1
172.16.4.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
172.16.4.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
172.16.5.0/24 Direct 0 0 D 172.16.5.2 GigabitEthernet
0/0/2
172.16.5.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/2
172.16.5.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/2
172.16.6.0/24 RIP 100 3 D 172.16.4.2 GigabitEthernet
0/0/1
172.16.7.0/24 RIP 100 1 D 172.16.4.2 GigabitEthernet
0/0/1
172.16.8.0/24 RIP 100 2 D 172.16.4.2 GigabitEthernet
0/0/1
172.16.9.0/24 RIP 100 3 D 172.16.4.2 GigabitEthernet
0/0/1
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
R2访问r7要求走r5去访问
[r3]acl 2000
[r3-acl-basic-2000]rule permit source 7.7.7.7 0.0.0.0
[r3-acl-basic-2000]q
[r3-GigabitEthernet0/0/1]rip metricin 2000 4
R1为运营商 r1远程登录r2实际登录r7
[r7]user-interface vty 0 4
[r7-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):123
[r2-GigabitEthernet0/0/0]nat static protocol tcp global 12.1.1.3 23 inside 7.7.7
.7 23