请教一个MVC5.0 关于路由的问题
1个回答
展开全部
楼主的问题在于静态路由没有配置完全,并且汇总的位数不对,图中的汇总应为255.255.254.0
参考配置如下
#R1
en
conf t
hostname R1
no ip domain-lookup
line console 0
logg s
exec-t 0 0
exit
int f0/0
ip add 192.168.0.1 255.255.255.252
no shut
int f0/1
ip add 192.168.0.5 255.255.255.252
no shut
int e0/0/0
ip add 192.168.2.1 255.255.255.0
no shut
int loop 0
ip add 10.0.6.1 255.255.255.255
no shut
exit
ip route 10.0.4.0 255.255.254.0 192.168.0.6
ip route 10.0.4.0 255.255.255.0 192.168.0.2
ip route 192.168.3.0 255.255.255.0 192.168.0.6
ip route 192.168.1.0 255.255.255.0 192.168.0.2
exit
#R3
en
conf t
hostname R3
no ip domain-lookup
line console 0
logg s
exec-t 0 0
exit
int f0/0
ip add 192.168.0.2 255.255.255.252
no shut
int f0/1
ip add 192.168.1.1 255.255.255.0
no shut
int loopback 0
ip add 10.0.4.1 255.255.255.0
no shut
ip route 10.0.4.0 255.255.252.0 192.168.0.1
ip route 10.0.6.0 255.255.255.0 192.168.0.1
ip route 192.168.0.4 255.255.255.252 192.168.0.1
ip route 192.168.3.0 255.255.255.0 192.168.0.1
ip route 192.168.2.0 255.255.255.0 192.168.0.1
exit
#R2
en
conf t
no ip domain-lookup
hostname R2
line console 0
logg s
exec-t 0 0
exit
int f0/1
ip add 192.168.0.6 255.255.255.252
no shut
int f0/0
ip add 192.168.3.1 255.255.255.0
no shut
int loopback 0
ip add 10.0.5.1 255.255.255.0
no shut
int loopback 1
ip add 10.0.7.1 255.255.255.0
no shut
ip route 10.0.4.0 255.255.255.0 192.168.0.5
ip route 10.0.6.0 255.255.255.0 192.168.0.5
ip route 192.168.2.0 255.255.255.0 192.168.0.5
ip route 192.168.0.0 255.255.255.252 192.168.0.5
ip route 192.168.1.0 255.255.255.0 192.168.0.5
exit
参考配置如下
#R1
en
conf t
hostname R1
no ip domain-lookup
line console 0
logg s
exec-t 0 0
exit
int f0/0
ip add 192.168.0.1 255.255.255.252
no shut
int f0/1
ip add 192.168.0.5 255.255.255.252
no shut
int e0/0/0
ip add 192.168.2.1 255.255.255.0
no shut
int loop 0
ip add 10.0.6.1 255.255.255.255
no shut
exit
ip route 10.0.4.0 255.255.254.0 192.168.0.6
ip route 10.0.4.0 255.255.255.0 192.168.0.2
ip route 192.168.3.0 255.255.255.0 192.168.0.6
ip route 192.168.1.0 255.255.255.0 192.168.0.2
exit
#R3
en
conf t
hostname R3
no ip domain-lookup
line console 0
logg s
exec-t 0 0
exit
int f0/0
ip add 192.168.0.2 255.255.255.252
no shut
int f0/1
ip add 192.168.1.1 255.255.255.0
no shut
int loopback 0
ip add 10.0.4.1 255.255.255.0
no shut
ip route 10.0.4.0 255.255.252.0 192.168.0.1
ip route 10.0.6.0 255.255.255.0 192.168.0.1
ip route 192.168.0.4 255.255.255.252 192.168.0.1
ip route 192.168.3.0 255.255.255.0 192.168.0.1
ip route 192.168.2.0 255.255.255.0 192.168.0.1
exit
#R2
en
conf t
no ip domain-lookup
hostname R2
line console 0
logg s
exec-t 0 0
exit
int f0/1
ip add 192.168.0.6 255.255.255.252
no shut
int f0/0
ip add 192.168.3.1 255.255.255.0
no shut
int loopback 0
ip add 10.0.5.1 255.255.255.0
no shut
int loopback 1
ip add 10.0.7.1 255.255.255.0
no shut
ip route 10.0.4.0 255.255.255.0 192.168.0.5
ip route 10.0.6.0 255.255.255.0 192.168.0.5
ip route 192.168.2.0 255.255.255.0 192.168.0.5
ip route 192.168.0.0 255.255.255.252 192.168.0.5
ip route 192.168.1.0 255.255.255.0 192.168.0.5
exit
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
Storm代理
2023-08-29 广告
2023-08-29 广告
"StormProxies是全球大数据IP资源服务商,其住宅代理网络由真实的家庭住宅IP组成,可为企业或个人提供满足各种场景的代理产品。点击免费测试(注册即送1G流量)StormProxies有哪些优势?1、IP+端口提取形式,不限带宽,I...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询