不使用任何路由协议使3台路由器通信
生活随笔
收集整理的這篇文章主要介紹了
不使用任何路由协议使3台路由器通信
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
R1---------R2---------R3
R2上什么都不能做。。。
3臺路由不能做任何的路由協議。。
讓R1和R3通信。。。。。 配置如下: 路由器0配置:
en
conf t
host R1
int s0/0
ip add 192.168.1.1 255.255.255.0
no sh
exit
ip default-gateway 192.168.1.2(默認網關)
no ip routing(網關是2層協議,所以要關閉路由功能)
end 路由器1配置:
en
conf t
host R2
int s0/0
ip add 192.168.1.2 255.255.255.0
no sh
exit
int s0/1
ip add 192.168.2.1 255.255.255.0
no sh
end 路由器2配置:
en
conf t
host R3
int s1/0
ip add 192.168.2.2 255.255.255.0
no sh
exit
ip default-gateway 192.168.2.1(默認網關)
no ip routing(網關是2層協議,所以要關閉路由功能)
end
R2上什么都不能做。。。
3臺路由不能做任何的路由協議。。
讓R1和R3通信。。。。。 配置如下: 路由器0配置:
en
conf t
host R1
int s0/0
ip add 192.168.1.1 255.255.255.0
no sh
exit
ip default-gateway 192.168.1.2(默認網關)
no ip routing(網關是2層協議,所以要關閉路由功能)
end 路由器1配置:
en
conf t
host R2
int s0/0
ip add 192.168.1.2 255.255.255.0
no sh
exit
int s0/1
ip add 192.168.2.1 255.255.255.0
no sh
end 路由器2配置:
en
conf t
host R3
int s1/0
ip add 192.168.2.2 255.255.255.0
no sh
exit
ip default-gateway 192.168.2.1(默認網關)
no ip routing(網關是2層協議,所以要關閉路由功能)
end
轉載于:https://blog.51cto.com/ccccc/171889
總結
以上是生活随笔為你收集整理的不使用任何路由协议使3台路由器通信的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 梦到好多猫仔和狗仔好不好
- 下一篇: 梦到捡扣子是什么意思