1、实验拓扑2、基础配置R1
interface Serial0/0ip address 12.1.1.1 255.255.255.0
R2interface Serial0/0ip address 12.1.1.2 255.255.255.0interface Serial0/1ip address 23.1.1.2 255.255.255.0router eigrp 90network 23.1.1.0 0.0.0.255no auto-summary
R3interface Serial0/0ip address 34.1.1.3 255.255.255.0serial restart-delay 0interface Serial0/1ip address 23.1.1.3 255.255.255.0serial restart-delay 0router eigrp 90network 23.1.1.0 0.0.0.255network 34.1.1.0 0.0.0.255auto-summary
R4interface Serial0/0ip address 34.1.1.4 255.255.255.0router eigrp 90network 34.1.1.0 0.0.0.255auto-summary
3、三种路由注入3中方法方法重分布:添加一条0.0.0.0默认路由,,在EIGRP路由进程中重分布该默认路由
通 告:添加一条0.0.0.0默认路由,在EIGRP路由进程中network通告该默认路由
ip default-network:首先,ip default-network后面的网络必须是外网口所在网段的主类网络其次,在EIGRP路由进程中network通告该主类网络最后,必须存在到该主类网络的路由,没有的话,可以手动添加
4、重分布配置R2(config)#ip route 0.0.0.0 0.0.0.0 s0/0R2(config)#router eigrp 90R2(config-router)#redistribute static
R3#show ip routeCodes: C – connected, S – static, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2 i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2 ia – IS-IS inter area, * – candidate default, U – per-user static route o – ODR, P – periodic downloaded static route
Gateway of last resort is 23.1.1.2 to network 0.0.0.0
34.0.0.0/24 is subnetted, 1 subnetsC 34.1.1.0 is directly connected, Serial0/0 23.0.0.0/24 is subnetted, 1 subnetsC 23.1.1.0 is directly connected, Serial0/1D*EX 0.0.0.0/0 [170/2681856] via 免费云主机域名23.1.1.2, 00:00:04, Serial0/1R3#
R4#show ip routeCodes: C – connected, S – static, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2 i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2 ia – IS-IS inter area, * – candidate default, U – per-user static route o – ODR, P – periodic downloaded static route
Gateway of last resort is 34.1.1.3 to network 0.0.0.0
34.0.0.0/24 is subnetted, 1 subnetsC 34.1.1.0 is directly connected, Serial0/0 23.0.0.0/24 is subnetted, 1 subnetsD 23.1.1.0 [90/2681856] via 34.1.1.3, 00:01:51, Serial0/0D*EX 0.0.0.0/0 [170/3193856] via 34.1.1.3, 00:00:12, Serial0/0R4#重分布进来的静态路由属外部路由,故其AD为170
5、通告配置R2(config)#ip route 0.0.0.0 0.0.0.0 s0/0R2(config)#router eigrp 90R2(config-router)#network 0.0.0.0
R3#show ip routeCodes: C – connected, S – static, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2 i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2 ia – IS-IS inter area, * – candidate default, U – per-user static route o – ODR, P – periodic downloaded static route
Gateway of last resort is 23.1.1.2 to network 0.0.0.0
34.0.0.0/24 is subnetted, 1 subnetsC 34.1.1.0 is directly connected, Serial0/0 23.0.0.0/24 is subnetted, 1 subnetsC 23.1.1.0 is directly connected, Serial0/1 12.0.0.0/24 is subnetted, 1 subnetsD 12.1.1.0 [90/2681856] via 23.1.1.2, 00:00:02, Serial0/1D* 0.0.0.0/0 [90/2681856] via 23.1.1.2, 00:00:02, Serial0/1R3#
R4#show ip routeCodes: C – connected, S – static, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2 i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2 ia – IS-IS inter area, * – candidate default, U – per-user static route o – ODR, P – periodic downloaded static route
Gateway of last resort is 34.1.1.3 to network 0.0.0.0
34.0.0.0/24 is subnetted, 1 subnetsC 34.1.1.0 is directly connected, Serial0/0 23.0.0.0/24 is subnetted, 1 subnetsD 23.1.1.0 [90/2681856] via 34.1.1.3, 00:03:29, Serial0/0 12.0.0.0/24 is subnetted, 1 subnetsD 12.1.1.0 [90/3193856] via 34.1.1.3, 00:00:28, Serial0/0D* 0.0.0.0/0 [90/3193856] via 34.1.1.3, 00:00:28, Serial0/0R4#network通告进来的静态路由属内部路由,故其AD为90
6、ip default-network配置
R2(config)#ip default-network 12.0.0.0R2(config)#router eigrp 90R2(config-router)#network 12.0.0.0 0.255.255.255R2(config-router)#exit
R2(config)#ip route 12.0.0.0 255.0.0.0 null 0
R3#show ip routeCodes: C – connected, S – static, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2 i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2 ia – IS-IS inter area, * – candidate default, U – per-user static route o – ODR, P – periodic downloaded static route
Gateway of last resort is 23.1.1.2 to network 12.0.0.0
34.0.0.0/24 is subnetted, 1 subnetsC 34.1.1.0 is directly connected, Serial0/0 23.0.0.0/24 is subnetted, 1 subnetsC 23.1.1.0 is directly connected, Serial0/1 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masksD 12.1.1.0/24 [90/2681856] via 23.1.1.2, 00:01:28, Serial0/1D* 12.0.0.0/8 [90/2169856] via 23.1.1.2, 00:00:35, Serial0/1R3#
R4#show ip routeCodes: C – connected, S – static, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2 i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2 ia – IS-IS inter area, * – candidate default, U – per-user static route o – ODR, P – periodic downloaded static route
Gateway of last resort is 34.1.1.3 to network 12.0.0.0
34.0.0.0/24 is subnetted, 1 subnetsC 34.1.1.0 is directly connected, Serial0/0 23.0.0.0/24 is subnetted, 1 subnetsD 23.1.1.0 [90/2681856] via 34.1.1.3, 00:06:38, Serial0/0 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masksD 12.1.1.0/24 [90/3193856] via 34.1.1.3, 00:01:59, Serial0/0D* 12.0.0.0/8 [90/2681856] via 34.1.1.3, 00:01:07, Serial0/0R4#
今天只是搜搜DnsMasq,看到一篇文章名叫发现路由器可以刷dd-wrt、openwrt等固件dd免费云主机域名-wrt支持列表:http://www.dd-wrt.com/wiki/index.php/Supported_Devicesopenwrt支持列表…
免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。