1、PE及CE有兩條LINK
2、跑RIP
3、有分DATA及VOICE網段 (192.168.2.0 data,192.168.3.0 voice)
4、平常DATA跑第一條,VOICE跑第二條
5、斷第一條時,DATA需能跑到第二條
6、斷第二條線,VOICE不需跑到第一條
router rip
version 2
redistribute static
offset-list 1 out 3 FastEthernet0/1
network 172.31.0.0
network 192.168.2.0
network 192.168.3.0
distribute-list 1 out FastEthernet0/0
distribute-list 12 out FastEthernet0/1
!
ip classless
ip route 192.168.2.0 255.255.255.0 192.168.1.254
ip route 192.168.3.0 255.255.255.0 192.168.1.254
!
no ip http server
no ip http secure-server
!
!
access-list 1 permit 192.168.2.0 0.0.0.255
access-list 12 permit 192.168.2.0
access-list 12 permit 192.168.3.0
測試:斷第一條
172.31.0.0/30 is subnetted, 2 subnets
C 172.31.0.0 is directly connected, FastEthernet0/0
C 172.31.0.4 is directly connected, FastEthernet0/1
R 192.168.2.0/24 [120/4] via 172.31.0.6, 00:00:17, FastEthernet0/1
R 192.168.3.0/24 [120/1] via 172.31.0.6, 00:00:17, FastEthernet0/1
測試:斷第二條
172.31.0.0/30 is subnetted, 2 subnets
C 172.31.0.0 is directly connected, FastEthernet0/0
C 172.31.0.4 is directly connected, FastEthernet0/1
R 192.168.2.0/24 [120/1] via 172.31.0.2, 00:00:10, FastEthernet0/0
測試:把兩條線都拉起來
172.31.0.0/30 is subnetted, 2 subnets
C 172.31.0.0 is directly connected, FastEthernet0/0
C 172.31.0.4 is directly connected, FastEthernet0/1
R 192.168.2.0/24 [120/1] via 172.31.0.2, 00:00:02, FastEthernet0/0
R 192.168.3.0/24 [120/1] via 172.31.0.6, 00:00:02, FastEthernet0/1
均符合需求
沒有留言:
張貼留言