您的位置:首页 > 其它

不使用任何路由协议使3台路由器通信

2009-07-01 17:25 405 查看


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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: