码迷,mamicode.com
首页 > 系统相关 > 详细

cisco静态路由-适合初学者

时间:2018-01-30 12:20:28      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:inf   http   src   接口   log   适合   分享   banner   .com   

技术分享图片

RT1
enable
conf t /进入全局模式
banner motd #this is a ccna1# /设置旗标
banner login #this is a ccna1#
int f0/0 /进入接口
ip add 172.16.20.1 255.255.255.0 /接口配ip地址
int f0/1
ip add 172.16.10.1 255.255.255.0
eixt
ip route 172.16.30.0 255.255.255.0 172.16.20.2 /配置路由信息,30网段的地址指向172.16.20.2这个接口
ip route 172.16.40.0 255.255.255.0 172.16.20.2
ip route 172.16.50.0 255.255.255.0 172.16.20.2
exit
write
RT2
enable
conf t
banner motd #this is a ccna2#
banner login #this is a ccna2#
ip route 172.16.10.0 255.255.255.0 172.16.20.2
ip route 172.16.40.0 255.255.255.0 172.16.30.2
exit
write
RT3
enable
conf t
banner motd #this is a ccna3#
banner login #this is a ccna3#
ip route 172.16.10.0 255.255.255.0 172.16.30.1
ip route 172.16.20.0 255.255.255.0 172.16.30.1
ip route 172.16.50.0 255.255.255.0 172.16.30.1
exit
write
pc1
ip 172.16.10.3/24 172.16.10.1 /配置IP地址、掩码和网关
pc2
ip 172.16.50.2/24 172.16.50.1
pc1
ip 172.16.40.2/24 172.16.40.1
路由器替代pc
ip route 172.16.20.0 255.255.255.0 172.16.10.1
ip route 172.16.30.0 255.255.255.0 172.16.10.1
ip route 172.16.40.0 255.255.255.0 172.16.10.1
ip route 172.16.50.0 255.255.255.0 172.16.10.1 /配置路由
或者:配置默认路由 0.0.0.0 0.0.0.0 172.16.10.1

cisco静态路由-适合初学者

标签:inf   http   src   接口   log   适合   分享   banner   .com   

原文地址:https://www.cnblogs.com/jimdo/p/8383526.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!