免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 576 | 回复: 0
打印 上一主题 下一主题

router 配置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-22 10:04 |只看该作者 |倒序浏览
计算机系统必须是linux OS,需要两块网卡  两个不同网段的ip
10.0.0.1/8
192.168.1.1/24
安装包
zebra-0[1].94.tar.gz
配置:
#ifconfig eth0 192.168.1.1 netmask 255.255.255.0
#ifconfig eth1 10.0.0.1 netmask 255.0.0.0
注意:必须写网卡配置文件
#cd /usr/src
#tar zvxf zebra-0[1].94.tar.gz
#cd zebra-0.94
#./configure
#make
#make install

#cd /usr/local/etc
#cp zebra.conf.sample zebra.conf
#cp ripd.conf.sample ripd.conf
#./zebra –d  (定义端口)
#./ripd –d  (定义端口)

分别配置zebra(2601)    ripd(2602)
#telnet 192.168.1.1 2601
passwd:zebra
router>en
passwd:zebra
router#conf t
router(config)#hostname caolei
router(config)#int eth0
router(config-if)#ip add 192.168.1.1/24
router(config-if)#no shut
router(config-if)#exit
router#int eth1
router(config-if)#ip add 10.0.0.1/8
router(config-if)#no shut
router(config-if)#ctrl+z
router#sh run
router#copy run start

#telnet 192.168.1.1 2602
passwd: zebra
ripd>en
ripd#conf t
ripd(config)#router rip
ripd(config)#network 10.0.0.0/8
ripd(config)#network 192.168.1.0/24
ripd(config)#quit
ripd#sh ip rip


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/55840/showart_447918.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP