默认网络重定向

简介:

【实验拓扑】

图中的x用1代替,例如155.x.0.0 = 155.1.0.0
 

 

 

【实验要求】

在R5上配置150.1.5.0/24为默认网络
并将其冲发布到EIGRP中,让R4能够学习到

 
【实验步骤】
1、按照上图配置好接口地址以及EIGRP
2、在R5上配置默认网络
R5:
ip default-network 150.1.5.0
ip default-network 150.1.0.0

router eigrp 100
no auto-summary
redistribute static

 
【看一下为何配置两条默认网络】
1、如果只配置1条ip default-network 150.1.5.0

 
R5(config)# ip default-network 150.1.0.0
R5#show ip route
*Mar  1 00:41:51.627: %SYS-5-CONFIG_I: Configured from console by console
R5#show ip route
Gateway of last resort is not set

 
     155.1.0.0/24 is subnetted, 2 subnets
C       155.1.0.0 is directly connected, Serial0/0
C       155.1.45.0 is directly connected, Serial0/1
     150.1.0.0/16 is variably subnetted, 3 subnets, 2 masks
C       150.1.5.0/24 is directly connected, Loopback0
D       150.1.4.0/24 [90/10639872] via 155.1.0.4, 00:39:09, Serial0/0
S       150.1.0.0/16 [1/0] via 150.1.5.0

 
2、配置了两条默认路由后的路由表

 
R5(config)#ip default-network 150.1.5.0
R5(config)#ip default-network 150.1.0.0
R5(config)#end
R5#show ip route
*Mar  1 00:41:32.143: %SYS-5-CONFIG_I: Configured from console by console
R5#show ip route

 
Gateway of last resort is 150.1.5.0 to network 150.1.0.0

 
     155.1.0.0/24 is subnetted, 2 subnets
C       155.1.0.0 is directly connected, Serial0/0
C       155.1.45.0 is directly connected, Serial0/1
 *   150.1.0.0/16 is variably subnetted, 3 subnets, 2 masks
C       150.1.5.0/24 is directly connected, Loopback0
D       150.1.4.0/24 [90/10639872] via 155.1.0.4, 00:38:49, Serial0/0
S*      150.1.0.0/16 [1/0] via 150.1.5.0

 
我们会发现配置了1条的被路由表识别为静态路由 S,而配置了两条后会识别为静态默认路由 S*

配置了重发布后在R4上学习到的不同效果,注意多了一个 *,代表默认网络
1、配置了1条默认路由效果
R4:
R4#show ip route
     155.1.0.0/24 is subnetted, 2 subnets
C       155.1.0.0 is directly connected, Serial0/0
C       155.1.45.0 is directly connected, Serial0/1
     150.1.0.0/16 is variably subnetted, 3 subnets, 2 masks
D       150.1.5.0/24 [90/10639872] via 155.1.0.5, 00:00:04, Serial0/0
C       150.1.4.0/24 is directly connected, Loopback0
D EX    150.1.0.0/16 [170/10639872] via 155.1.0.5, 00:00:04, Serial0/0

 
2、配置了两条默认路由效果
R4#show ip route
     155.1.0.0/24 is subnetted, 2 subnets
C       155.1.0.0 is directly connected, Serial0/0
C       155.1.45.0 is directly connected, Serial0/1
     150.1.0.0/16 is variably subnetted, 3 subnets, 2 masks
D       150.1.5.0/24 [90/10639872] via 155.1.0.5, 00:00:03, Serial0/0
C       150.1.4.0/24 is directly connected, Loopback0
D * EX    150.1.0.0/16 [170/10639872] via 155.1.0.5, 00:00:03, Serial0/0

 


本文转自zcm8483 51CTO博客,原文链接:http://blog.51cto.com/haolun/993175

相关文章
|
网络协议 开发工具 Android开发
【Android 逆向】Android 逆向通用工具开发 ( adb forward 网络端口重定向命令 | PC 端逆向程序主函数分析 )
【Android 逆向】Android 逆向通用工具开发 ( adb forward 网络端口重定向命令 | PC 端逆向程序主函数分析 )
287 0
【Android 逆向】Android 逆向通用工具开发 ( adb forward 网络端口重定向命令 | PC 端逆向程序主函数分析 )
|
Java Linux Maven
LINUX03_磁盘情况查询、ps -ef、centos7查看服务、netstat查看网络、grep、重定向、管道、yum、用户权限(四)
LINUX03_磁盘情况查询、ps -ef、centos7查看服务、netstat查看网络、grep、重定向、管道、yum、用户权限(四)
192 0
LINUX03_磁盘情况查询、ps -ef、centos7查看服务、netstat查看网络、grep、重定向、管道、yum、用户权限(四)
|
Linux
LINUX03_磁盘情况查询、ps -ef、centos7查看服务、netstat查看网络、grep、重定向、管道、yum、用户权限(三)
LINUX03_磁盘情况查询、ps -ef、centos7查看服务、netstat查看网络、grep、重定向、管道、yum、用户权限(三)
151 0
|
Linux 应用服务中间件 nginx
LINUX03_磁盘情况查询、ps -ef、centos7查看服务、netstat查看网络、grep、重定向、管道、yum、用户权限(二)
LINUX03_磁盘情况查询、ps -ef、centos7查看服务、netstat查看网络、grep、重定向、管道、yum、用户权限(二)
242 0
LINUX03_磁盘情况查询、ps -ef、centos7查看服务、netstat查看网络、grep、重定向、管道、yum、用户权限(二)
|
Linux
LINUX03_磁盘情况查询、ps -ef、centos7查看服务、netstat查看网络、grep、重定向、管道、yum、用户权限(一)
LINUX03_磁盘情况查询、ps -ef、centos7查看服务、netstat查看网络、grep、重定向、管道、yum、用户权限(一)
221 0
LINUX03_磁盘情况查询、ps -ef、centos7查看服务、netstat查看网络、grep、重定向、管道、yum、用户权限(一)
|
IDE 开发工具 C++
Qt日志重定向qInstallMessageHandler,输出Log至文件及网络
Qt日志重定向qInstallMessageHandler,输出Log至文件及网络
899 0
|
JSON 缓存 前端开发
修复shiro重定向引起的Response for preflight is invalid (redirect)的网络报错问题
最近集成shiro到项目中,遇到该一个报复Response for preflight is invalid (redirect)的问题。 shiro集成,配置无权限的路径 @Bean(name = "shiroFilter") p...
1656 0
|
3天前
|
域名解析 网络协议 Linux
linux网络配置详解
linux网络配置详解
13 0
|
4天前
|
网络协议 Java Linux
【探索Linux】P.29(网络编程套接字 —— 简单的TCP网络程序模拟实现)
【探索Linux】P.29(网络编程套接字 —— 简单的TCP网络程序模拟实现)
11 0