注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 利用IPSec实现网络安全之..
 帮助

静态路由的实现


2007-09-29 23:49:54
版权声明:原创作品,如需转载,请与作者联系。否则将追究法律责任。
在路由器A上做如下配置:
 
router(config)#hostname A
A(config)#interface f0/0
A(config-if)#ip address 192.168.1.1 255.255.255.0
A(config-if)#no shutdown
A(config)#interface f0/1
A(config-if)#ip address 192.168.2.1 255.255.255.0
A(config-if)#no shutdown
A(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2
 
 
在路由器B上做如下配置:
 
router(config)#hostname B
B(config)#interface f0/0
B(config-if)#ip address 192.168.3.1 255.255.255.0
B(config-if)#no shutdown
B(config)#interface f0/1
B(config-if)#ip address 192.168.2.2 255.255.255.0
B(config-if)#no shutdown
B(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1

查看路由表:
router#show ip route
其中C代表直连的网络,S代表静态的路由,S*代表默认的路由

本文出自 “思微草堂” 博客,转载请与作者联系!





    文章评论
 
2007-09-30 10:20:59
博主是做硬件开发的啊?
博主那个图片是什么芯片
啊?

 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: