计算机网络工程教程:基于cisco路由器和交换机,计算机网络工程教程—基于cisco路由器和交换机教学课件作者陆魁军chap7思科路由器的高级功能.ppt...

a7f4a3f590493a1e451dd952a488fd7c.gif 计算机网络工程教程—基于cisco路由器和交换机教学课件作者陆魁军chap7思科路由器的高级功能.ppt

(172页)

d5a526097ae4393f3079d16bd1e7f39b.gif

本资源提供全文预览,点击全文预览即可全文预览,如果喜欢文档就下载吧,查找使用更方便哦!

9.90 积分

计算机网络工程教程—基于cisco路由器和交换机作者:陆魁军 责任编辑:邹小宁 出版日期:2008年9月IDPN:308-2008-017课件章数:071第7章 思科路由器的高级功能 7.1 设置路由器成为DHCP服务器 操作内容:设置路由器成为DHCP服务器,设置路由器的IP转发广播特性,用以传送非直连子网的DHCP请求。。组网环境:Cisco7204 VXR路由器,操作系统版本为IOS (tm) 7200 Software (C7200-JK9S-M), Version 12.3(12a),该路由器充当DHCP服务器。Cisco 3725路由器,操作系统版本为 IOS (tm) 3700 Software (C3725-JK9S-M), Version 12.3(12a),该路由器上设置IP转发广播特性。至少二台PC机充当客户机,一台在LAN1,另一台在LAN2。RTA的串口S1/0连接V.35交叉电缆的DCE端 。2图7-1 设置路由器为DHCP服务器37.1.2 背景知识动态主机配置协议(DHCP)主要用于在TCP/IP网络中,通过DHCP服务器给客户端主机自动配置参数DHCP协议支持三种IP地址分配方式:自动分配:DHCP服务器给客户机分配一个永久的IP地址。动态分配:DHCP服务器给客户机分配的IP地址有一定的期 限,称为租约期限。手工分配:每个客户机对应的IP地址由管理员指定,只是通过DHCP服务器给客户机分配。DHCP客户机第一次登录网络时向本地物理子网广播一个DHCPDISCOVER消息,接受第一个收到的DHCPOFFER消息,并广播一个DHCPREQUEST消息,告诉所有的DHCP服务器它将使用哪一台服务器提供的IP地址。47.1.3 操作步骤网络拓扑说明如图7-1所示,10.214.28.0/24网络为LAN1,10.214.29.0/24网络为LAN2,LAN1和LAN2上的主机作为DHCP客户机。 路由器RTA作为DHCP服务器,创建两个独立的地址池为这两个子网服务。 路由器RTD的以太网口Fa0/0需要设置IP转发广播特性,将LAN2上的客户端主机的DHCP请求转发给DHCP服务器RTA LAN1中主机的默认网关地址为10.214.28.1,DHCP服务器为之创建的地址池命名为28-net。 NetBIOS服务器地址为10.214.28.3,域名为zdcs.com,地址租用期限为10天10小时10分钟。 LAN2中主机的默认网关地址为10.214.29.1,DHCP服务器为之创建的地址池命名为29-net。 29-net地址池中DNS服务器地址、NetBIOS服务器地址和域名与28-net地址池相同,地址租用期限为8天8小时8分钟 路由器RTA和RTD的相连网段为192.168.1.0/24。57.1.3 操作步骤配置步骤(1)配置路由器RTARTA# configure terminalRTA(config)# ip route 10.214.29.0 255.255.255.0 Serial1/0RTA(config)# interface FastEthernet0/0 #RTA的以太网接口地址设置RTA(config-if)# ip address 10.214.28.1 255.255.255.0RTA(config-if)# no shutdownRTA(config-if)# exitRTA(config)# interface Serial1/0 #RTA的串行接口地址设置RTA(config-if)# ip address 192.168.1.1 255.255.255.0RTA(config-if)# clock rate 56000 #连接该端口的电缆若是DTE电缆,则不用配置RTA(config-if)# no shutdown6(2)配置路由器RTD:RTD# configure terminalRTD(config)# ip route 10.214.28.0 255.255.255.0 Serial1/0RTD(config)# interface FastEthernet 0/0 #RTD的以太网接口地址设置RTD(config-if)# ip address 10.214.29.1 255.255.255.0RTD(config-if)# no shutdownRTD(config-if)# exitRTD(config)# interface Serial1/0 #RTD的串行接口地址设置RTD(config-if)# ip address 192.168.1.2 255.255.255.0RTA(config-if)# clock rate 56000 #连接该端口的电缆若是DTE电缆,则不用配置RTD(config-if)# no shutdown7(3) 验证路由是否正常工作:在子网LAN1和LAN2上各任选一台客户机,指定客户机的本地连接网络参数。如指定LAN1上的客户机静态IP地址为10.214.28.100,子网掩码为255.255.255.0,默认网关为10.214.28.1,指定LAN2上的客户机静态IP地址10.214.29.100,子网掩码为255.255.255.0,默认网关为10.214.29.1。然后从LAN1上客户机10.214.28.100 ping LAN2上客户机10.214.29.100,应该能够互通。如果有问题,可以用命令show ip route查看路由信息。C:\>ping 10.214.29.100Pinging 10.214.29.100 with 32 bytes of data:Reply from 10.214.29.100: bytes=32 time=21ms TTL=126Reply from 10.214.29.100: bytes=32 time=21ms TTL=126……8RTA# show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candid。省略部分。 serial restart-delay 0 clockrate 64000!interface Serial1/1 ip address 192.168.3.1 255.255.255.0 tag-switching ip serial restart-delay 0 clockrate 64000!interface Serial1/2 no ip address shutdown serial restart-delay 0!interface Serial1/3 no ip address shutdown serial restart-delay 0163router ospf 100 log-adjacency-changes network 192.168.2.0 0.0.0.255 area 0 network 192.168.3.0 0.0.0.255 area 0 network 192.168.200.202 0.0.0.0 area 0!ip classlessno ip http serverno ip http secure-server!gatekeeper shutdown!line con 0 stopbits 1line aux 0line vty 0 4!end164R3#show running-configBuilding configuration...Current configuration : 1179 bytes!version 12.3service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R3!boot-start-markerboot-end-marker!no aaa new-modelip subnet-zero!165ip cefmpls label protocol ldp!interface Loopback0 ip address 192.168.200.203 255.255.255.255!interface FastEthernet0/0 no ip address shutdown duplex auto speed auto!interface FastEthernet0/1 no ip address shutdown duplex auto speed auto!166interface Serial1/0 ip address 192.168.3.2 255.255.255.0 tag-switching ip serial restart-delay 0!interface Serial1/1 ip address 192.168.4.1 255.255.255.0 tag-switching ip serial restart-delay 0 clockrate 64000!interface Serial1/2 no ip address shutdown serial restart-delay 0!interface Serial1/3 no ip address shutdown serial restart-delay 0167router ospf 100 log-adjacency-changes network 192.168.3.0 0.0.0.255 area 0 network 192.168.4.0 0.0.0.255 area 0 network 192.168.200.203 0.0.0.0 area 0!ip classlessno ip http serverno ip http secure-server!gatekeeper shutdown!line con 0 stopbits 1line aux 0line vty 0 4!end168R4#show running-configBuilding configuration...Current configuration : 1115 bytes!version 12.3service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R4!boot-start-markerboot-end-marker!no aaa new-modelip subnet-zero169ip cefmpls label protocol ldp!interface Loopback0 ip address 192.168.200.204 255.255.255.255!interface FastEthernet0/0 ip address 192.168.5.1 255.255.255.0 duplex auto speed auto!interface FastEthernet0/1 no ip address shutdown duplex auto speed auto170interface Serial1/0 ip address 192.168.4.2 255.255.255.0 tag-switching ip serial restart-delay 0!interface Serial1/1 no ip address shutdown serial restart-delay 0!interface Serial1/2 no ip address shutdown serial restart-delay 0!interface Serial1/3 no ip address shutdown serial restart-delay 0171router ospf 100 log-adjacency-changes network 192.168.4.0 0.0.0.255 area 0 network 192.168.5.0 0.0.0.255 area 0 network 192.168.200.204 0.0.0.0 area 0!no ip http serverno ip http secure-serverip classless!line con 0line aux 0line vty 0 4!end注意,配置文件中的“tag-switching ip”等同于“mpls ip”,思科之所以采用前者进行记录是为了向后兼容。172 关 键 词: 路由器 交换机 chap7 作者 教学 cisco chap 基于 思科 教程

4d91c43bfc72ca913299809b07b4968f.gif  天天文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。

关于本文

本文标题:计算机网络工程教程—基于cisco路由器和交换机教学课件作者陆魁军chap7思科路由器的高级功能.ppt

链接地址: https://www.wenku365.com/p-50168230.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值