不使用任何路由协议使3台路由器通信
生活随笔
收集整理的這篇文章主要介紹了
不使用任何路由协议使3台路由器通信
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
R1---------R2---------R3
R2上什么都不能做。。。
3臺(tái)路由不能做任何的路由協(xié)議。。
讓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(默認(rèn)網(wǎng)關(guān))
no ip routing(網(wǎng)關(guān)是2層協(xié)議,所以要關(guān)閉路由功能)
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(默認(rèn)網(wǎng)關(guān))
no ip routing(網(wǎng)關(guān)是2層協(xié)議,所以要關(guān)閉路由功能)
end
R2上什么都不能做。。。
3臺(tái)路由不能做任何的路由協(xié)議。。
讓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(默認(rèn)網(wǎng)關(guān))
no ip routing(網(wǎng)關(guān)是2層協(xié)議,所以要關(guān)閉路由功能)
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(默認(rèn)網(wǎng)關(guān))
no ip routing(網(wǎng)關(guān)是2層協(xié)議,所以要關(guān)閉路由功能)
end
轉(zhuǎn)載于:https://blog.51cto.com/ccccc/171889
總結(jié)
以上是生活随笔為你收集整理的不使用任何路由协议使3台路由器通信的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 梦到好多猫仔和狗仔好不好
- 下一篇: 学***先学什么?