.RT1串行链路、RT2串行链路、FW1、AC1之间分别运行RIP和RIPng协议,FW1、RT1、RT2的RIP和RIPng发布loopback2地址路由,AC1 RIP发布loopback2地址路由,AC1 RIPng采用route-map匹配prefix-list重发布loopback2地址路由。RT1配置offset值为3的路由策略,实现RT1-S1/0_RT2-S1/1为主链路,RT1-S1/1_RT2-S1/0为备份链路,ipv4的ACL名称为AclRIP,ipv6的ACL名称为AclRIPng。RT1的S1/0与RT2的S1/1之间采用chap双向认证,用户名为对端设备名称,密码为Key-1122。
时间: 2024-02-21 18:57:13 浏览: 212
以下是配置示例:
在RT1上的配置:
```
interface Serial1/0
ip address 10.1.1.1 255.255.255.0
ipv6 address 2001:DB8:10:1::1/64
encapsulation ppp
ppp authentication chap
ppp chap hostname RT2
ppp chap password Key-1122
no shutdown
interface Serial1/1
ip address 10.1.2.1 255.255.255.0
ipv6 address 2001:DB8:10:2::1/64
encapsulation ppp
ppp authentication chap
ppp chap hostname RT2
ppp chap password Key-1122
no shutdown
interface Loopback2
ip address 192.168.2.1 255.255.255.0
ipv6 address 2001:DB8:2::1/64
access-list 101 permit ip host 192.168.2.1 any
access-list 102 permit ipv6 host 2001:DB8:2::1 any
router rip
version 2
network 192.168.2.0
default-metric 1
passive-interface default
no passive-interface Serial1/0
no passive-interface Serial1/1
router ripng
version 2
network 2001:DB8:2::/64
default-metric 1
distribute-list prefix-list RIPng out
passive-interface default
no passive-interface Serial1/0
no passive-interface Serial1/1
ipv6 prefix-list RIPng seq 10 permit 2001:DB8:2::/64
ipv6 prefix-list RIPng seq 20 deny ::/0 le 128
route-map RIPng permit 10
match ipv6 address prefix-list RIPng
set metric 3
```
在RT2上的配置:
```
interface Serial1/0
ip address 10.1.2.2 255.255.255.0
ipv6 address 2001:DB8:10:2::2/64
encapsulation ppp
ppp authentication chap
ppp chap hostname RT1
ppp chap password Key-1122
no shutdown
interface Serial1/1
ip address 10.1.1.2 255.255.255.0
ipv6 address 2001:DB8:10:1::2/64
encapsulation ppp
ppp authentication chap
ppp chap hostname RT1
ppp chap password Key-1122
no shutdown
interface Loopback2
ip address 192.168.2.2 255.255.255.0
ipv6 address 2001:DB8:2::2/64
router rip
version 2
network 192.168.2.0
default-metric 1
passive-interface default
no passive-interface Serial1/0
no passive-interface Serial1/1
router ripng
version 2
network 2001:DB8:2::/64
default-metric 1
distribute-list prefix-list RIPng out
passive-interface default
no passive-interface Serial1/0
no passive-interface Serial1/1
ipv6 prefix-list RIPng seq 10 permit 2001:DB8:2::/64
ipv6 prefix-list RIPng seq 20 deny ::/0 le 128
route-map RIPng permit 10
match ipv6 address prefix-list RIPng
set metric 3
```
在FW1上的配置:
```
interface GigabitEthernet0/0
ip address 10.1.3.1 255.255.255.0
ipv6 address 2001:DB8:10:3::1/64
interface Loopback2
ip address 192.168.2.3 255.255.255.0
ipv6 address 2001:DB8:2::3/64
router rip
version 2
network 192.168.2.0
default-metric 1
passive-interface default
no passive-interface GigabitEthernet0/0
router ripng
version 2
network 2001:DB8:2::/64
default-metric 1
distribute-list prefix-list RIPng out
passive-interface default
no passive-interface GigabitEthernet0/0
```
在AC1上的配置:
```
interface GigabitEthernet0/0
ip address 10.1.4.1 255.255.255.0
ipv6 address 2001:DB8:10:4::1/64
interface Loopback2
ip address 192.168.2.4 255.255.255.0
ipv6 address 2001:DB8:2::4/64
router rip
version 2
network 192.168.2.0
default-metric 1
passive-interface default
no passive-interface GigabitEthernet0/0
router ripng
version 2
network 2001:DB8:2::/64
default-metric 1
redistribute rip metric 3 route-map RIPng
passive-interface default
no passive-interface GigabitEthernet0/0
ipv6 prefix-list RIPng seq 10 permit 2001:DB8:2::/64
ipv6 prefix-list RIPng seq 20 deny ::/0 le 128
route-map RIPng permit 10
match ipv6 address prefix-list RIPng
set metric 3
```
注意:以上配置仅供参考,实际配置需要根据网络拓扑和需求进行调整。
阅读全文