LINUX企业版5路由配置.ppt
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- LINUX 企业版 路由 配置
- 资源描述:
-
单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,2-,*,WS-NE30-1-03 02-,*,北京清华万博网络技术股份有限公司版权所有,单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,*,单击鼠标编辑标题文的格式,单击鼠标编辑大纲正文格式,第二个大纲级,第三个大纲级,第四个大纲级,第五个大纲级,第六个大纲级,第七个大纲级,第八个大纲级,第九个大纲级,*,专注、专业、创新、共赢,WS-NE30-1-03 02-,*,北京清华万博网络技术股份有限公司版权所有,单击鼠标编辑标题文的格式,单击鼠标编辑大纲正文格式,第二个大纲级,第三个大纲级,第四个大纲级,第五个大纲级,第六个大纲级,第七个大纲级,第八个大纲级,第九个大纲级,*,专注、专业、创新、共赢,LINUX,enterprise 4,路由的实现,使用,LINUX,充当路由器,Eth0:,192.168.0.250,Eth1,:192.168.1.250,LINUX,LINUX,PC1,PC2,注:需要开启路由转发功能,Echo 1/proc/sys/net/ipv4/ip_forward /etc/rc.d/rc.local,或,#sysctl w net.ipv4.conf.all.forwarding=1,Zebra,是一个路由软件包,提供基于,TCP/IP,路由服务,支持,RIPv1,RIPv2,RIPng,OSPFv2,OSPFv3,BGP-4,和,BGP-4+,等众多路由协议。,Zebra,还支持,BGP,特性路由反射器(,Route Reflector,)。除了传统的,IPv4,路由协议,,Zebra,也支持,IPv6,路由协议。如果运行的,SNMP,守护进程(需要,ucd-snmp,)支持,SMUX,协 议,,Zebra,还能支持路由协议,MIBs,。,使用,Zebra,Zebra,目前最新的版本是,0.95a,,它的安装非常简单,我们只需从,,www.zebra.org,/,下载,zebra-,0.95a.tar.gz,,然后执行以下命令安装。,Zebra,shell tar,xzf,zebra-0.95a.tar.gz,shell,cd,zebra-0.95a,shell./configure,shell make,shell make install,Zebra,Zebra,就安装完成,执行文件如下:,shell,ls,/,usr/local/sbin,bgpd,ospfd,ripd,zebra,配置文件:,shell,ls,/,usr,/local/etc,bgpd.conf.sample,ospfd.conf.sample,zebra.conf.sample,bgpd.conf.sample2,ripd.conf.sample,编译安装完,Zebra,后,可以看到有,4,个可执行文件和,5,个配置样本文件,使用它的配置样本文件配置之:,shell,cd,/,usr,/local/etc,shell cp,zebra.conf.sample,zebra.conf,Zebra,Zebra,的各进程有各自的终端接口或,VTY,,如果我们需要给连接到它们的端口设置别名的话,在,/etc/services,文件添加如下内容:,zebrasrv,2600/tcp#zebra service,zebra 2601/tcp#zebra,vty,ripd,2602/tcp#,RIPd,vty,ripngd,2603/tcp#,RIPngd,vty,ospfd,2604/tcp#,OSPFd,vty,bgpd,2605/tcp#,BGPd,vty,ospf6d 2606/tcp#OSPF6d,vty,Zebra,启动,Zebra,:,shell_1,cd,/,usr,/local/etc,shell_1 cp,zebra.conf.sample,zebra.conf,shell_1 cp,ripd.conf.sample,ripd.conf,shell_1 zebra-d,shell_1,ripd,-d,shell_1 telnet,localhost,2601,shell_1 telnet,localhost,2602,shell_1 telnet,localhost,2604,Zebra,Zebra,会提示输入口令,我们通过,/,usr/local/etc/zebra.conf,可以看到,口令是,zebra,,,enable,口令也是,zebra,。,rip,ospf,基本,zebra,演示实验,LINUX,Windows,Eth0:0.250,Eth1:1.250,Eth0:1.251,Eth0:2.251,IP:192.168.0.249,IP:192.168.2.252,Zebra,ripd,en,ripd,#conf t,ripd(config,)#hostname r1_ripd,!,改个名字好辨认,r1_ripd(config)#router rip,!,启动,rip,r1_ripd(config-router)#network 192.168.5.0/24,!,指定网络需要子网掩码。,!,本地直连网络,r1_ripd#,sh,ip,protocols,Routing Protocol is rip,Sending updates every 30 seconds with+/-50%,next due in 3 seconds,Timeout after 180 seconds,garbage collect after 120 seconds,Outgoing update filter list for all interface is not set,Incoming update filter list for all interface is not set,Default redistribution metric is 1,Redistributing:,Default version control:send version 2,receive version 2,Interface Send,Recv,Key-chain,eth0 2 2,Routing for Networks:,192.168.5.0/24,Routing Information Sources:,Gateway,BadPackets,BadRoutes,Distance Last Update,Distance:(default is 120),Zebra,查看路由表、事件和动态收发的数据包、并保持配置:,r1_ripd#,sh,ip,rip,r1_ripd#debug rip events,r1_ripd#debug rip packet,r1_ripd#copy run start,Zebra,配置,OSPF,协议:,shell_1,cd,/,usr,/local/etc,shell_1 cp,zebra.conf.sample,zebra.conf,shell_1 cp,ospfd.conf.sample,ospfd.conf,shell_1 zebra-d,shell_1,ospfd,-d,Zebra,shell_1,ospfd,-d,shell_1 telnet,localhost,2604,Password:,ospfd,en,ospfd,#conf t,ospfd(config,)#hostname r1_ospfd,!,改个名字好辨认,r1_ospfd(config)#router,ospf,!,启动,ospf,r1_ospfd(config-router)#,ospf,router-id 192.168.5.121,!,设置,router-id,r1_ospfd(config-router)#network 192.168.5.0/24 area 0,Zebra,r1_ospfd#,sh,ip,ospf,route,r1_ospfd#debug,ospf,event,r1_ospfd#,sh,ip,ospf,neig,r1_ospfd(config)#log file/,usr/local/etc/ospfd.log,shell_1 tail-f/,usr/local/etc/ospfd.log,2002/04/28 14:24:27 OSPF:,make_hello,:options:2,int,:eth0:192.168.5.121,2002/04/28 14:24:37 OSPF:,make_hello,:options:2,int,:eth0:192.168.5.121,2002/04/28 14:24:47 OSPF:,make_hello,:options:2,int,:eth0:192.168.5.121,Zebra,展开阅读全文

咨信网声明:本文档由用户上传并分享,仅供学习交流、研究之用,未经授权,严禁复制、发行、汇编、翻译或网络传播等,侵权必究。
咨信网小贴示:
1、浏览或下载可查看了解,请点击【咨信网告知】。
2、下载文件中如有侵权或不适当内容,将立即纠正。
3、如果因为网速或其他原因下载失败请重新下载,重复下载[60天内]不扣币。
4、开具发票登录电脑端申请,请点击【索取发票】。
咨信网客服组:【微信客服】
1、浏览或下载可查看了解,请点击【咨信网告知】。
2、下载文件中如有侵权或不适当内容,将立即纠正。
3、如果因为网速或其他原因下载失败请重新下载,重复下载[60天内]不扣币。
4、开具发票登录电脑端申请,请点击【索取发票】。
咨信网客服组:【微信客服】


LINUX企业版5路由配置.ppt
















自信AI助手














微信客服
客服QQ
发送邮件
意见反馈



链接地址:https://www.zixin.com.cn/doc/14761157.html