静态路由配置练习
网络管理技师 技能考试 实验6:静态路由协议配置
实验6:静态路由协议配置一、实验目的1、练习cisco 路由器静态路由的基本配置;2、熟练掌握了解静态路由协议的使用二、实验环境Packet tracer 5.0三、静态路由配置格式CISCO 路由器下静态路由的配置命令为:ip route net-number mask next-hop四、实验步骤:拓扑结构图:配置过程:Router1:Router>enableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface FastEthernet0/0Router(config-if)#ip address 1.1.1.2 255.255.255.0 /为FA0/0 口添加IP 地址Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#interface Serial2/0Router(config-if)#ip address 1.1.2.1 255.255.255.0 /为serial2/0 口添加IP 地址Router(config-if)#%LINK-5-CHANGED: Interface Serial2/0, changed state to upno shutdownRouter(config-if)#exitRouter(config)#interface Serial3/0 /为serial3/0 口添加IP 地址Router(config-if)#ip address 1.1.6.1 255.255.255.0Router(config-if)#clock rate 64000 /配置串行链路时钟Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#ip route 1.1.4.0 255.255.255.0 1.1.6.2 /添加静态路由Router(config)#ip route 1.1.5.0 255.255.255.0 1.1.2.2Router(config)#%LINK-5-CHANGED: Interface Serial3/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to up Router2:Router>enableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface FastEthernet0/0Router(config-if)#ip address 1.1.5.2 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#Router(config-if)#exitRouter(config)#interface Serial2/0Router(config-if)#ip address 1.1.2.2 255.255.255.0Router(config-if)#clock rate 64000Router(config-if)#no shutdownRouter(config-if)#Router(config-if)#exitRouter(config)#ip route 1.1.1.0 255.255.255.0 1.1.2.1Router(config)#ip route 1.1.4.0 255.255.255.0 1.1.3.2Router(config)#Router(config)#Router(config)#%LINK-5-CHANGED: Interface Serial2/0, changed state to upRouter(config)#interface Serial3/0Router(config-if)#ip address 1.1.3.1 255.255.255.0Router(config-if)#%LINK-5-CHANGED: Interface Serial3/0, changed state to upno shutdownRouter(config-if)#Router(config-if)#exitRouter3:Router>enableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface FastEthernet0/0Router(config-if)#ip address 1.1.4.1 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#interface Serial2/0Router(config-if)#ip address 1.1.6.2 255.255.255.0Router(config-if)#%LINK-5-CHANGED: Interface Serial2/0, changed state to upno shutdown%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up Router(config-if)#exitRouter(config)#interface Serial3/0Router(config-if)#ip address 1.1.3.2 255.255.255.0Router(config-if)#clock rate 64000Router(config-if)#no shutdownRouter(config-if)#%LINK-5-CHANGED: Interface Serial3/0, changed state to upRouter(config-if)#exitRouter(config)#ip route 1.1.5.0 255.255.255.0 1.1.3.1Router(config)#ip route 1.1.1.0 255.255.255.0 1.1.6.1Router(config)#之后按照图示配置好主机的IP 地址,使用ping 命令测试相互之间的连通性,主机之间哈斯可以相互ping 通的。
完整版静态路由试题
1上配置哪种静态路由?,应在B Router1 172.16.0.0 请参见图示。
为使主机A 能够连接到网络上的主机ip route 192.168.0.0 172.16.0.0 255.255.0.0ip route 172.16.0.0 255.255.0.0 192.168.0.1ip route 172.16.0.0 255.255.0.0 S0/0/1ip route 172.16.0.0 255.255.0.0 S0/0/0命令的输出显示了如下内容:show interfaces serial 0/1Router# 2Serial0/1 is up, line protocol is down.(关闭)的原因最可能是什么?线路协议为down 为关闭状态。
Serial0/1路由器未连接电缆。
接口。
serial 0/0 远程路由器正在使用尚未设置时钟频率。
3.请参见图示。
根据如图所示的输出,该链路的时钟频率会如何确定?此频率将由两台路由器协商得出。
连接错误,因此不会选择任何频率。
DCE/DTE 由于上配置的频率决定了时钟频率。
DTEDCE 上配置的频率决定了时钟频率。
172.16.1.0/24 、172.16.2.0/24、172.16.4.0/24?172.16.3.0/24 和下列哪一个地址可以用来总结网络4172.16.0.0/21172.16.1.0/22172.16.0.0 255.255.255.248172.16.0.0 255.255.252.05.Internet 的数据包并将所有其它流量转到Altamonte 请参见图示。
要使WinterPark 和路由器能够传送来自每个LAN一组命令来配置静态路由?WinterPark(config)# ip route 0.0.0.0 0.0.0.0 192.168.146.1ip route 10.0.234.0 255.255.255.0 192.168.146.2Altamonte(config)# ip route 0.0.0.0 0.0.0.0s0/1 Altamonte(config)#ip route 0.0.0.0 0.0.0.0 192.168.146.1WinterPark(config)#ip route 10.0.234.0 255.255.255.0 192.168.146.2Altamonte(config)#Altamonte(config)# ip route 198.18.222.0 255.255.255.255 s0/1ip route 172.191.67.0 255.255.255.0 192.168.146.1WinterPark(config)#WinterPark(config)# ip route 0.0.0.0 0.0.0.0 192.168.146.1 Altamonte(config)# ip route10.0.234.0 255.255.255.0 192.168.146.2ip route 172.191.67.0 255.255.255.0 192.168.146.1WinterPark(config)#Altamonte(config)# ip route 10.0.234.0 255.255.255.0 192.168.146.2ip route 0.0.0.0 0.0.0.0 s0/0 Altamonte(config)#show cdp neighbors Router# 命令会显示下列哪些内容?(选择三项。
实训5.4 静态路由的配置与管理
在路由器A上配置静态路由
Router_A# //特权模式提示符 Router_A#config terminal //进入全局配置模式 Router_A(config)# //全局配置模式提示符 Router_A(config)# ip route 202.7.20.0 255.255.255.0 195.16.13.1 //配置到目的网198.8.15.0/24的静态路由 Router_A(config)#exit //返回到特权模式 Router_A#show ip route //查看路由表中的内容
Gateway of last resort is not set
C R 20.0.0.0/8 is directly connected, Serial0/0 30.0.0.0/8 [120/1] via 20.0.0.2, 00:00:14, Serial0/0
静态路由
全局配置模式下使用: ip route 目标网络号 掩码 下一跳或转发端口 例:ip route 30.0.0.0 255.0.0.0 s0/0 功能:设置到目标网络30.0.0.0/8的数据报从串 口0/0转发 对于Stub网络,可直接使用: ip route 0.0.0.0 0.0.0.0 转发端口
配置路由器A的各接口
Router_A (config)#interface f0/0 //进入f0/0接口配置模式 Router_A (config-if)# //f0/0接口配置模式提示符 Router_A (config-if)#ip address 193.10.18.1 255.255.255.0 //配 置f0/0接口的IP地址为193.10.18.1,子网掩码为255.255.255.0 Router_A (config-if)#no shutdown //激活f0/0接口 Router_A (config-if)#interface f0/1 //进入f0/0接口配置模 式 Router_A (config-if)#ip address 198.8.15.1 255.255.255.0 //配 置f0/1接口的IP地址为198.8.15.1,子网掩码为255.255.255.0
静态路由配置的实训操作步骤
静态路由配置的实训操作步骤以静态路由配置的实训操作步骤为标题,写一篇文章一、实训背景介绍在网络通信中,静态路由是一种简单而有效的路由配置方式。
它通过手动配置路由表的方式,指定了数据包从源网络到目标网络的路径。
本实训将介绍如何进行静态路由的配置,以实现网络设备之间的通信。
二、实训准备工作1. 确定网络拓扑结构:确定需要进行静态路由配置的网络设备,并绘制出网络拓扑图,包括各设备的连接关系和IP地址分配情况。
2. 确定路由器的管理IP地址:为每个路由器设备分配一个唯一的管理IP地址,用于远程登录和配置路由器。
3. 确定网络设备的接口IP地址:为每个网络设备的接口分配一个唯一的IP地址,用于实现设备之间的通信。
三、静态路由配置步骤1. 登录路由器:使用Telnet或SSH等远程登录工具,通过管理IP 地址登录到需要配置静态路由的路由器。
2. 进入全局配置模式:在路由器的命令行界面中输入"enable"命令,进入特权模式,然后输入"configure terminal"命令,进入全局配置模式。
3. 配置静态路由:在全局配置模式下,输入"ip route 目标网络目标网络掩码下一跳地址"命令,配置静态路由。
其中,目标网络为需要访问的目标网络地址,目标网络掩码为目标网络的子网掩码,下一跳地址为数据包的下一跳路由器的IP地址。
4. 保存配置:输入"end"命令退出配置模式,然后输入"write"命令保存配置。
四、实训操作示例假设有两台路由器R1和R2,它们之间通过以太网连接。
R1的管理IP地址为192.168.1.1,R2的管理IP地址为192.168.2.1。
R1的接口IP地址为192.168.1.254,R2的接口IP地址为192.168.2.254。
现在需要配置R1和R2之间的静态路由。
1. 登录R1路由器:使用Telnet工具,输入192.168.1.1,登录到R1路由器。
R1-R2-R3静态路由配置的练习
R1配置如下:R1#R1#conf tEnter configuration commands, one per line. End with CNTL/Z. R1(config)#R1(config)#R1(config)#hostname R1R1(config)#R1(config)#enable secret tony123R1(config)#R1(config)#username admin password admin123R1(config)#R1(config)#R1(config)#line vty 0 4R1(config-line)#R1(config-line)#password tony 123R1(config-line)#R1(config-line)#loginR1(config-line)#R1(config-line)#exitR1(config)#R1(config)#line console 0R1(config-line)#R1(config-line)#password tony123R1(config-line)#R1(config-line)#loginR1(config-line)#R1(config-line)#exitR1(config)#R1(config)#R1(config)#int f0/0R1(config-if)#R1(config-if)#ip add 12.12.12.1 255.255.255.252R1(config-if)#R1(config-if)#no shutdownR1(config-if)#R1(config-if)#*Mar 1 00:15:33.739: %LINK-3-UPDOWN: Interface FastEthernet0/0,changed state to up*Mar 1 00:15:34.739: %LINEPROTO-5-UPDOWN: Line protocol on InterfaceFastEthernet0/0, changed state to upR1(config-if)#endR1#R1#R1#R1#sh ip int brInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 12.12.12.1 YES manual up upFastEthernet0/1 unassigned YES unset administratively down downR1#conf tEnter configuration commands, one per line. End with CNTL/Z.R1(config)#R1(config)#ip route 23.23.23.0 255.255.255.252 ?A.B.C.D Forwarding router's addressAsync Async interfaceBVI Bridge-Group Virtual InterfaceCDMA-Ix CDMA Ix interfaceCTunnel CTunnel interfaceDHCP Default Gateway obtained from DHCPDialer Dialer interfaceFastEthernet FastEthernet IEEE 802.3Lex Lex interfaceLoopback Loopback interfaceMFR Multilink Frame Relay bundle interfaceMultilink Multilink-group interfaceNull Null interfacePort-channel Ethernet Channel of interfacesTunnel Tunnel interfaceVif PGM Multicast Host interfaceVirtual-PPP Virtual PPP interfaceVirtual-TokenRing Virtual TokenRingXTagATM Extended Tag ATM interfacevmi Virtual Multipoint InterfaceR1(config)#ip route 23.23.23.0 255.255.255.252R1#*Mar 1 00:39:00.527: %SYS-5-CONFIG_I: Configured from console by consoleR1#conf tEnter configuration commands, one per line. End with CNTL/Z.R1(config)#ip 23.23.23.0 255.255.255.252 12.12.12.2^% Invalid input detected at '^' marker.R1(config)#ip route 23.23.23.0 255.255.255.252 12.12.12.2R1(config)#R1(config)#R1(config)#endR1#R1#*Mar 1 00:46:04.623: %SYS-5-CONFIG_I: Configured from console by consoleR1#show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - 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 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set23.0.0.0/30 is subnetted, 1 subnetsS 23.23.23.0 [1/0] via 12.12.12.212.0.0.0/30 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, FastEthernet0/0R1#ping 23.23.23.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 23.23.23.2, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 40/51/60 ms R1#R1#R2配置如下:R2>enableR2#R2#R2#R2#R2#conf tEnter configuration commands, one per line. End with CNTL/Z.R2(config)#R2(config)#R2(config)#hostname R2R2(config)#R2(config)#R2(config)#enable secret tony123R2(config)#R2(config)#R2(config)#username admin password admin123R2(config)#R2(config)#R2(config)#line vty 0 4R2(config-line)#R2(config-line)#R2(config-line)#password tony123R2(config-line)#R2(config-line)#loginR2(config-line)#R2(config-line)#exitR2(config)#R2(config)#R2(config)#line console 0R2(config-line)#R2(config-line)#R2(config-line)#password tony123R2(config-line)#R2(config-line)#loginR2(config-line)#R2(config-line)#endR2#R2#R2#R2#R2#conf tEnter configuration commands, one per line. End with CNTL/Z.R2(config)#R2(config)#R2(config)#int f0/0R2(config-if)#R2(config-if)#R2(config-if)#ip add 12.12.12.2 255.255.255.252R2(config-if)#R2(config-if)#no shutdownR2(config-if)#R2(config-if)#endR2#*Mar 1 00:25:10.683: %SYS-5-CONFIG_I: Configured from console by consoleR2#R2#ping 12.12.12.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 12.12.12.1, timeout is 2 seconds:.!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 20/32/44 msR2#R2#R2#sh ip int brInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 12.12.12.2 YES manual up upFastEthernet0/1 unassigned YES unset administratively down downR2#conf tEnter configuration commands, one per line. End with CNTL/Z.R2(config)#R2(config)#R2(config)#int f0/1R2(config-if)#R2(config-if)#ip add 23.23.23.1 255.255.255.252R2(config-if)#R2(config-if)#no shutdownR2(config-if)#R2(config-if)#endR2#R2#*Mar 1 00:26:51.567: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to upR2#*Mar 1 00:26:52.287: %SYS-5-CONFIG_I: Configured from console by console*Mar 1 00:26:52.567: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upR2#R2#R2#sh ip int brInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 12.12.12.2 YES manual up upFastEthernet0/1 23.23.23.1 YES manual up upR2#R3配置如下:R3#R3#R3#R3#conf tEnter configuration commands, one per line. End with CNTL/Z.R3(config)#R3(config)#R3(config)#hostname R3R3(config)#R3(config)#enable secret tony123R3(config)#R3(config)#R3(config)#username admin password admin123R3(config)#R3(config)#R3(config)#line vty 0 4R3(config-line)#R3(config-line)#password tony123R3(config-line)#R3(config-line)#loginR3(config-line)#R3(config-line)#endR3#R3#*Mar 1 00:22:01.655: %SYS-5-CONFIG_I: Configured from console by consoleR3#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.R3(config)#R3(config)#line% Incomplete command.R3(config)#line console 0R3(config-line)#R3(config-line)#password tony123R3(config-line)#R3(config-line)#loginR3(config-line)#R3(config-line)#exitR3(config)#R3(config)#int f0/0R3(config-if)#R3(config-if)#ip add 23.23.23.2 255.255.255.252R3(config-if)#R3(config-if)#no shutdownR3(config-if)#R3(config-if)#en*Mar 1 00:24:21.323: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up*Mar 1 00:24:22.323: %LINEPROTO-5-UPDOWN: Line protocol on InterfaceFastEthernet0/0, changed state to upR3(config-if)#endR3#*Mar 1 00:24:24.923: %SYS-5-CONFIG_I: Configured from console by console R3#ping 23.23.23.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 23.23.23.1, timeout is 2 seconds:.!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 24/32/36 msR3#R3#R3#conf tEnter configuration commands, one per line. End with CNTL/Z.R3(config)#ip route 12.12.12.0 255.255.255.252 ?A.B.C.D Forwarding router's addressAsync Async interfaceBVI Bridge-Group Virtual InterfaceCDMA-Ix CDMA Ix interfaceCTunnel CTunnel interfaceDHCP Default Gateway obtained from DHCPDialer Dialer interfaceFastEthernet FastEthernet IEEE 802.3Lex Lex interfaceLoopback Loopback interfaceMFR Multilink Frame Relay bundle interfaceMultilink Multilink-group interfaceNull Null interfacePort-channel Ethernet Channel of interfacesTunnel Tunnel interfaceVif PGM Multicast Host interfaceVirtual-PPP Virtual PPP interfaceVirtual-TokenRing Virtual TokenRingXTagATM Extended Tag ATM interfacevmi Virtual Multipoint InterfaceR3(config)#ip route 12.12.12.0 255.255.255.252 23.23.23.1R3(config)#R3(config)#R3(config)#R3(config)#ping 12.12.12.1^% Invalid input detected at '^' marker.R3(config)#endR3#R3#R3#*Mar 1 00:43:04.647: %SYS-5-CONFIG_I: Configured from console by console R3#ping 12.12.12.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 12.12.12.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 24/55/84 msR3#R3#至此R3-R1能互通了。
教案——路由器静态路由练习
第三步:配置路由器RT3的接口地址
Router>ena
Router#
Router#conf
Router(config)#hostname RT3
RT3(config)#interface fastEthernet 0/0
RT3(config-if)#ip address 192.168.4.1 255.255.255.0
RT2-F1/1
1.1.2.1
255.255.255.0
RT2-F0/0
192.168.3.1
255.255.255.0
PC3
192.168.3.2
255.255.255.0
RT3-F1/0
1.1.1.2
255.255.255.0
RT3-F0/0
192.168.4.1
255.255.255.0
PC4
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
Codes: C - connected, S - static, I - IGRP, 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
7实训七静态路由配置答案
实训七路由器的静态路由配置一、实训目的和要求1、掌握路由器的路由表的概念。
2、掌握路由器静态路由的概念。
3、掌握路由器静态路由的基本配置命令和配置方法。
二、实训内容为路由器配置静态路由,并测试连通性。
三、命令格式Router(config)#ip routing ;启动路由转发功能Router(config)#ip route [目的网络ip地址] [目的网络子网掩码] [下一跳地址];设置静态路由Router(config)#ip route 0.0.0.0 0.0.0.0 [下一跳地址] ;设置默认路由路由器设置中一般有一条默认路由,路由器将匹配不了的数据包都发送给默认的下一跳。
Router(config)#no ip route [目的网络ip地址] [目的网络子网掩码] [下一跳地址];删除静态路由Router#show ip route ;查看路由表四、实训步骤在画图时选择RouterA的s1端口作为DCE端口。
(1)pc机的地址如下。
ip address subnet mask default-gateway HostA 10.65.1.1 255.255.0.0 10.65.1.2HostB 10.70.1.1 255.255.0.0 10.70.1.2HostC 10.71.1.1 255.255.0.0 10.71.1.2(2)对RouterA进行配置,在配置好各端口ip地址后激活该端口。
各端口ip地址如下。
f0/0:ip地址10.65.1.2,子网掩码255.255.0.0。
s1:ip地址10.68.1.2,子网掩码255.255.0.0,时钟频率64000。
注:DCE端口需要设置时钟频率,DTE端口就不必设置了。
Router>enRouter#conf tRouter(config)#hostname RouterARouterA(config)#int f0/0RouterA(config-if)#ip addr 10.65.1.2 255.255.0.0RouterA(config-if)#no shutdownRouterA(config-if)#int s1RouterA(config-if)#ip addr 10.68.1.2 255.255.0.0RouterA(config-if)#clock rate 64000RouterA(config-if)#no shutdownRouterA(config-if)#exit(3)对RouterB进行配置,在配置好各端口ip地址后激活该端口。
华为HCNA课堂默认静态路由配置练习
要求:配置默认静态路由使AR1和AR3实现互通,并演示删除配置重启步骤如下:<R1><Huawei><Huawei>clo<Huawei>clock d<Huawei>clock datetime 21:40:00 2017-03-09<Huawei>sys<Huawei>system-viewEnter system view, return user view with Ctrl+Z.[Huawei][Huawei]sy[Huawei]sysname R1[R1]su[R1]super p[R1]super password c[R1]super password cipher 123456[R1]us[R1]user-i[R1]user-interface v[R1]user-interface vty 0 4[R1-ui-vty0-4]auth[R1-ui-vty0-4]authentication-mode p[R1-ui-vty0-4]authentication-mode passwordPlease configure the login password (maximum length 16):123456[R1-ui-vty0-4]se[R1-ui-vty0-4]setauth[R1-ui-vty0-4]set authentication p[R1-ui-vty0-4]set authentication password c[R1-ui-vty0-4]set authentication password cipher 123456[R1-ui-vty0-4]q[R1]us[R1]user-i[R1]user-interface c[R1]user-interface console 0[R1-ui-console0]auth[R1-ui-console0]authentication-mode p[R1-ui-console0]authentication-mode passwordPlease configure the login password (maximum length 16):123456[R1-ui-console0]se[R1-ui-console0]setauth[R1-ui-console0]set authentication p[R1-ui-console0]set authentication password c[R1-ui-console0]set authentication password cipher 123456[R1-ui-console0]q[R1][R1]aaa[R1-aaa]lo[R1-aaa]local-user admin p[R1-aaa]local-user admin password c[R1-aaa]local-user admin password cipher 123456[R1-aaa]lo[R1-aaa]local-user admin ser[R1-aaa]local-user admin service-type t[R1-aaa]local-user admin service-type telnet[R1-aaa]q[R1]int g0/0/0[R1-GigabitEthernet0/0/0]ip add 1.1.1.1 255.255.255.0[R1-GigabitEthernet0/0/0]Mar 9 2017 21:37:11-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state.[R1-GigabitEthernet0/0/0]un[R1-GigabitEthernet0/0/0]undosh[R1-GigabitEthernet0/0/0]undo shutdownInfo: Interface GigabitEthernet0/0/0 is not shutdown.[R1-GigabitEthernet0/0/0]q[R1][R1]disipintbr*down: administratively down^down: standby(l): loopback(s): spoofingThe number of interface that is UP in Physical is 2The number of interface that is DOWN in Physical is 2The number of interface that is UP in Protocol is 2The number of interface that is DOWN in Protocol is 2Interface IP Address/Mask Physical Protocol GigabitEthernet0/0/0 1.1.1.1/24 up up GigabitEthernet0/0/1 unassigned down down GigabitEthernet0/0/2 unassigned down down NULL0 unassigned up up(s) [R1]q<R1>saveThe current configuration will be written to the device.Are you sure to continue? (y/n)[n]:yIt will take several minutes to save configuration file, please wait..........Configuration file had been saved successfullyNote: The configuration file will take effect after being activated<R1>u t mInfo: Current terminal monitor is off.<R1>Please check whether system data has been changed, and save data in time Configuration console time out, please press any key to log onLogin authenticationPassword:<R1>sy<R1>system-viewEnter system view, return user view with Ctrl+Z.[R1]iprou[R1]ip route-[R1]ip route-static 0.0.0.0 0.0.0.0 1.1.1.2[R1][R1]q<R1>ping 2.2.2.1PING 2.2.2.1: 56 data bytes, press CTRL_C to breakReply from 2.2.2.1: bytes=56 Sequence=1 ttl=255 time=480 msReply from 2.2.2.1: bytes=56 Sequence=2 ttl=255 time=90 msReply from 2.2.2.1: bytes=56 Sequence=3 ttl=255 time=30 msReply from 2.2.2.1: bytes=56 Sequence=4 ttl=255 time=40 msReply from 2.2.2.1: bytes=56 Sequence=5 ttl=255 time=20 ms--- 2.2.2.1 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 20/132/480 ms<R1>ping 2.2.2.2PING 2.2.2.2: 56 data bytes, press CTRL_C to breakRequest time outReply from 2.2.2.2: bytes=56 Sequence=2 ttl=254 time=190 ms Reply from 2.2.2.2: bytes=56 Sequence=3 ttl=254 time=170 ms Reply from 2.2.2.2: bytes=56 Sequence=4 ttl=254 time=160 ms Reply from 2.2.2.2: bytes=56 Sequence=5 ttl=254 time=150 ms--- 2.2.2.2 ping statistics ---5 packet(s) transmitted4 packet(s) received20.00% packet lossround-trip min/avg/max = 150/167/190 ms<R1><R2><Huawei><Huawei>clo<Huawei>clock d<Huawei>clock datetime 21:41:00 2017-03-09<Huawei>sy<Huawei>system-viewEnter system view, return user view with Ctrl+Z.[Huawei]sy[Huawei]sysname R2[R2]su[R2]super p[R2]super password c[R2]super password cipher 123456[R2]us[R2]user-i[R2]user-interface v[R2]user-interface vty 0 4[R2-ui-vty0-4]auth[R2-ui-vty0-4]authentication-mode p[R2-ui-vty0-4]authentication-mode passwordPlease configure the login password (maximum length 16):123456[R2-ui-vty0-4]se[R2-ui-vty0-4]setauth[R2-ui-vty0-4]set authentication p[R2-ui-vty0-4]set authentication password c[R2-ui-vty0-4]set authentication password cipher 123456[R2-ui-vty0-4]q[R2]us[R2]user-i[R2]user-interface c[R2]user-interface console 0[R2-ui-console0]auth[R2-ui-console0]authentication-mode p[R2-ui-console0]authentication-mode passwordPlease configure the login password (maximum length 16):123456[R2-ui-console0]se[R2-ui-console0]setauth[R2-ui-console0]set authentication p[R2-ui-console0]set authentication password c[R2-ui-console0]set authentication password cipher 123456[R2-ui-console0]q[R2]aaa[R2-aaa]lo[R2-aaa]local-user admin p[R2-aaa]local-user admin password c[R2-aaa]local-user admin password cipher 123456[R2-aaa]lo[R2-aaa]local-user admin ser[R2-aaa]local-user admin service-type t[R2-aaa]local-user admin service-type telnet[R2-aaa]q[R2]int g0/0/0[R2-GigabitEthernet0/0/0]ip add 1.1.1.2 24[R2-GigabitEthernet0/0/0]Mar 9 2017 21:46:08-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state.[R2-GigabitEthernet0/0/0]un[R2-GigabitEthernet0/0/0]undosh[R2-GigabitEthernet0/0/0]undo shutdownInfo: Interface GigabitEthernet0/0/0 is not shutdown.[R2-GigabitEthernet0/0/0]q[R2]int g0/0/1[R2-GigabitEthernet0/0/1]ip add 2.2.2.1 24[R2-GigabitEthernet0/0/1]Mar 9 2017 21:46:55-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state.[R2-GigabitEthernet0/0/1]un[R2-GigabitEthernet0/0/1]undosh[R2-GigabitEthernet0/0/1]undo shutdownInfo: Interface GigabitEthernet0/0/1 is not shutdown.[R2-GigabitEthernet0/0/1]q[R2]disipintbr*down: administratively down^down: standby(l): loopback(s): spoofingThe number of interface that is UP in Physical is 3The number of interface that is DOWN in Physical is 1The number of interface that is UP in Protocol is 3The number of interface that is DOWN in Protocol is 1Interface IP Address/Mask Physical Protocol GigabitEthernet0/0/0 1.1.1.2/24 up up GigabitEthernet0/0/1 2.2.2.1/24 up up GigabitEthernet0/0/2 unassigned down down NULL0 unassigned up up(s) [R2]q<R2>saveThe current configuration will be written to the device.Are you sure to continue? (y/n)[n]:yIt will take several minutes to save configuration file, please wait..........Configuration file had been saved successfullyNote: The configuration file will take effect after being activated<R2>Please check whether system data has been changed, and save data in time Configuration console time out, please press any key to log on<R3><Huawei>clo<Huawei>clock d<Huawei>clock datetime 21:49:00 2017-03-09<Huawei>sy<Huawei>system-viewEnter system view, return user view with Ctrl+Z.[Huawei]sy[Huawei]sysname R3[R3]su[R3]super p[R3]super password c[R3]super password cipher 123456[R3]us[R3]user-i[R3]user-interface v[R3]user-interface vty 0 4[R3-ui-vty0-4]auth[R3-ui-vty0-4]authentication-mode p[R3-ui-vty0-4]authentication-mode passwordPlease configure the login password (maximum length 16):123456 [R3-ui-vty0-4]se[R3-ui-vty0-4]setauth[R3-ui-vty0-4]set authentication p[R3-ui-vty0-4]set authentication password c[R3-ui-vty0-4]set authentication password cipher 123456[R3-ui-vty0-4]q[R3]us[R3]user-i[R3]user-interface c[R3]user-interface console 0[R3-ui-console0]auth[R3-ui-console0]authentication-mode p[R3-ui-console0]authentication-mode passwordPlease configure the login password (maximum length 16):123456 [R3-ui-console0]se[R3-ui-console0]setauth[R3-ui-console0]set authentication p[R3-ui-console0]set authentication password c[R3-ui-console0]set authentication password cipher 123456[R3-ui-console0]q[R3][R3]aaa[R3-aaa]lo[R3-aaa]local-user admin p[R3-aaa]local-user admin password c[R3-aaa]local-user admin password cipher 123456[R3-aaa]lo[R3-aaa]local-user admin ser[R3-aaa]local-user admin service-type t[R3-aaa]local-user admin service-type telnet[R3-aaa]q[R3]int g0/0/0[R3-GigabitEthernet0/0/0]ip add 2.2.2.2 24[R3-GigabitEthernet0/0/0]Mar 9 2017 21:54:22-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state.[R3-GigabitEthernet0/0/0]un[R3-GigabitEthernet0/0/0]undosh[R3-GigabitEthernet0/0/0]undo shutdownInfo: Interface GigabitEthernet0/0/0 is not shutdown.[R3-GigabitEthernet0/0/0]q[R3]disipintbr*down: administratively down^down: standby(l): loopback(s): spoofingThe number of interface that is UP in Physical is 2The number of interface that is DOWN in Physical is 2The number of interface that is UP in Protocol is 2The number of interface that is DOWN in Protocol is 2Interface IP Address/Mask Physical Protocol GigabitEthernet0/0/0 2.2.2.2/24 up up GigabitEthernet0/0/1 unassigned down down GigabitEthernet0/0/2 unassigned down down NULL0 unassigned up up(s) [R3]q<R3>saveThe current configuration will be written to the device.Are you sure to continue? (y/n)[n]:yIt will take several minutes to save configuration file, please wait..........Configuration file had been saved successfullyNote: The configuration file will take effect after being activated<R3>sy<R3>system-viewEnter system view, return user view with Ctrl+Z.[R3]iprou[R3]ip route-[R3]ip route-static 0.0.0.0 0.0.0.0 2.2.2.1[R3][R3]q<R3>ping 1.1.1.2PING 1.1.1.2: 56 data bytes, press CTRL_C to breakReply from 1.1.1.2: bytes=56 Sequence=1 ttl=255 time=210 msReply from 1.1.1.2: bytes=56 Sequence=2 ttl=255 time=180 msReply from 1.1.1.2: bytes=56 Sequence=3 ttl=255 time=150 msReply from 1.1.1.2: bytes=56 Sequence=4 ttl=255 time=140 msReply from 1.1.1.2: bytes=56 Sequence=5 ttl=255 time=160 ms--- 1.1.1.2 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 140/168/210 ms<R3>ping 1.1.1.1PING 1.1.1.1: 56 data bytes, press CTRL_C to breakReply from 1.1.1.1: bytes=56 Sequence=1 ttl=254 time=150 msReply from 1.1.1.1: bytes=56 Sequence=2 ttl=254 time=170 msReply from 1.1.1.1: bytes=56 Sequence=3 ttl=254 time=130 msReply from 1.1.1.1: bytes=56 Sequence=4 ttl=254 time=40 msReply from 1.1.1.1: bytes=56 Sequence=5 ttl=254 time=50 ms--- 1.1.1.1 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 40/108/170 ms<R3>saveThe current configuration will be written to the device.Are you sure to continue? (y/n)[n]:yIt will take several minutes to save configuration file, please wait......... Configuration file had been saved successfullyNote: The configuration file will take effect after being activated<R3>Please check whether system data has been changed, and save data in timeConfiguration console time out, please press any key to log on_____________________________________________________________________________<R1><R1>reset saved-This will delete the configuration in the flash memory.The device configurations will be erased to reconfigure.这将删除配置在快闪记忆体。
静态路由实训
静态路由一、实训目的了解静态路由的作用及添加、配置静态路由的方法、理解默认路由的配置和作用二、实训内容1.环境:3台路由器、4台计算机2.内容:掌握静态路由的配置,路由的作用,默认路由的作用三、实训步骤将设备如上图连接好,并分配IP地址如下:1.设置计算机和路由器的IP地址设置PCA、PCB、PCC的IP地址分别为:10.65.1.1和10.71.1.1及10.70.1.1。
并分别添加添加网关10.65.1.2和10.71.1.2和10.70.1.2[root#PCA root]# ifconfig eth0 10.65.1.1 netmask 255.255.0.0[root#PCB root]# ifconfig eth0 10.71.1.1 netmask 255.255.0.0[root#PCC root]# ifconfig eth0 10.70.1.1 netmask 255.255.0.0[root#PCA root]# route add default gw 10.65.1.2[root#PCB root]# route add default gw 10.71.1.2[root#PCC root]# route add default gw 10.70.1.2设置RouterA的IP地址: (子网掩码是255.255.0.0)f0/0: 10.65.1.2----->10.65.1.1(与PCA连接)f0/1: 10.66.1.2s0/0: 10.67.1.2s0/1: 10.68.1.2-----> (RouterA的s0/1接RouterB的s0/0)设置RouterB的IP地址:s0/0: 10.68.1.1<----(RouterB的s0/1接RouterA的s0/0)s0/1: 10.69.1.2f0/0: 10.70.1.2f0/1: 10.71.1.2---->10.71.1.1 (与PCB连接)2.设置路由器的静态路由:先看一下路由表:show ip route 是显示路由表命令,它可以看到直联网络,静态路由和动态路由的情况,这是一个很常用的命令。
第3单元:实训-静态路由
第3单元:实训-静态路由实训:静态路由本实训要求学生掌握静态路由、默认路由、汇总路由的概念,以及静态路由、默认路由的配置方法。
1.网络拓扑首先,需要建立由交换机、路由器和PC机组成的网络,并画出拓扑图。
在拓扑图中要标记出相关接口和网络地址。
2.静态路由静态路由是手动配置路由表的一种方式,需要掌握路由表的概念和ip route命令的使用。
根据需求正确配置静态路由。
3.默认路由默认路由是指当路由表中没有匹配路由时,将数据包发送到默认网关。
需要掌握默认路由的使用场合,并能够正确配置默认路由。
实验数据记录:场景描述:学校有新旧两个校区,每个校区是一个独立的局域网,为了使新旧校区能够正常相互通讯,共享资源。
每个校区出口利用一台路由器进行连接,两台路由器间学校申请了一条2M的DDN专线进行相连,要求做适当配置实现两个校区的正常相互访问。
命令:在路由器R1上进行以下配置:conf thostname R1int fa 1/0no shutip address 192.168.1.1 255.255.255.0 exitint serial 2/0no shutip address 192.168.3.1 255.255.255.0 clock rateend在路由器R2上进行以下配置:conf thostname R2int fa 1/0no shutip address 192.168.2.1 255.255.255.0 exitint serial 2/0ip address 192.168.3.2 255.255.255.0 no shutendip route 192.168.2.0 255.255.255.0 192.168.3.2最后,检查路由表是否正确配置:show ip route表:该命令用于查看路由表,可以查看到当前路由器的路由信息,包括目的网络地址、子网掩码、下一跳地址和出接口等信息。
实验步骤:1.根据实验环境搭建网络拓扑图;2.配置路由器地址和各主机IP地址;3.进行ping测试以检查网络情况。
实验1. 配置静态路由
实验1. 静态路由基础配置1 应用背景管理员可以通过手工的方法在路由器中直接配置路由表,这就是静态路由。
虽然静态路由不适合于在大的网络中使用,但是由于静态路由简单、路由器负载小、安全性高等原因,现在在ISP、金融、证券等单位经常被使用。
2 实验目的通过本实验,掌握以下技能:◆路由表的概念◆命令ip route的使用,以及静态路由跟下一条地址和接口◆根据需求正确的配置静态路由◆掌握验证静态路由的命令3 设备需求:思科路由器 3640 三台4 实验拓扑:Hlsz_R1Hlsz_R3Hlsz_R2LOOPBACK 0Ip add 1.1.1.1/32LOOPBACK 0Ip add 3.3.3.3/32成都互联神州网络技术培训S2/0S2/0S2/1S2/15 实验步骤5.1、静态路由配置静态路由让R1 loopback 0:1.1.1.1/24、R2 loopback 0:2.2.2.2/24、R3 loopback 0:3.3.3.3/24能够相互通信5.1.1、基本配置配置接口IP地址,保证直连链路的互通R1(config)#int loopback0R1(config-if)#ip address 1.1.1.1 255.255.255.0R1(config)#int s2/0R1(config-if)#ip address 12.1.1.1 255.255.255.0R1(config-if)#no shutdownR2(config)#int loopback0R2(config-if)#ip address 2.2.2.2 255.255.255.0R2(config)#int s2/0R2(config-if)#clock rate 64000 /DCE端配置时钟速率R2(config-if)#ip address 12.1.1.2 255.255.255.0R2(config-if)#no shutdownR2(config)#int s2/1R2(config-if)#clock rate 64000 /DCE端配置时钟速率R2(config-if)#ip address 23.1.1.2 255.255.255.0R2(config-if)#no shutdownR3(config)#int loopback0R3(config-if)#ip address 3.3.3.3 255.255.255.0R3(config)#int s2/1R3(config-if)#ip address 23.1.1.3 255.255.255.0R3(config-if)#no shutdown5.1.2、配置静态路由静态路由指向下一跳地址R1(config)#ip route 3.3.3.0 255.255.255.0 12.1.1.2R1(config)#ip route 2.2.2.0 255.255.255.0 12.1.1.2R1(config)#ip route 23.1.1.0 255.255.255.0 12.1.1.2/在R1上配置静态路由分别到网段:23.1.1.0、3.3.3.0和2.2.2.0,采用下一跳IP地址的形式,注意IP:12.1.1.2是R2上S2/0接口IP地址。
实训名称:静态路由配置
实训名称:静态路由配置一、实训原理
Ip route 目标网络掩码下一跳IP地址二、实训目的
让不同网络不同路由器的PC机能够通信
三、实训步骤:
拓扑图
第一步:配IP地址
先配左边的路由器
En
Conf
Int F0/1
Ip add 192.168.1.1 255.255.255.0
No shut
Int f0/0
Ip add 192.168.2.1 255.255.255.0
No shut
再配右边的路由器
En
Conf
Int f0/0
Ip add 192.168.2.2 255.255.255.0
No shut
Int f0/1
Ip add 192.168.3.1 255.255.255.0
第二步:给PC机配置IP地址
此处略去1000字
第三步:配置静态路由
先配左边的路由器
Ip route 192.168.3.0 255.255.255.0 192.168.2.2 //全局配置模式下关键字目标网络掩码下一跳IP地址
再配右边的路由器
Ip route 192.168.1.0 255.255.255.0 192.168.2.1 //全局配置模式下关键字目标网络掩码下一跳IP地址
四、实训结果
右边路由器的路由表
左边路由器的路由表
Ping 通。
静态路由配置练习
实验报告• 思考网络实施并整理成文档。
实验拓扑及场景地址表希腊字母表设备借口IP地址子网掩码默认网关BRANCH(config)#banner motd #Enter TEXT message.End with the character‘#’Welcome to Router BRANCH! #BRANCH(config)#line console 0BRANCH(config-line)#loginBRANCH(config-line)#password ciscoBRANCH(config)#line vty 0 4BRANCH(config-line)#loginBRANCH(config-line)#password ciscoBRANCH(config)#line console 0BRANCH(config-line)#logging synchronousHQ上的配置:略ISP上的配置:略任务5 :配置并激活串行地址和以太网地址。
步骤 1 :配置 BRANCH 、 HQ 和 ISP 路由器上的接口。
使用拓扑图下方表格中的 IP 地址配置 BRANCH 、 HQ 和 ISP 路由器上的接口。
配置完成后,务必将运行配置保存到路由器的 NVRAM 中。
BRANCH上的配置:BRANCH(config)#inter f0/0BRANCH(config-if)#ip add 192.168.2.193 255.255.255.192BRANCH(config-if)#no shutBRANCH(config)#inter s0/0BRANCH(config)#clock rate 56000BRANCH(config-if)#ip add 192.168.2.129 255.255.255.192BRANCH(config-if)#no shutHQ上的配置:略ISP上的配置:略步骤 2 :配置以太网接口。
试验十静态路由的配置
试验十:静态路由的配置1.1实验目的:1.深入了解网络层的工作2.深入了解选择路由的方式3.掌握配置静态路由实现网络互通的方法;4.了解静态路由的优缺点及适用范围.1.2实验内容:虚拟应用背景: 本学院组建局域网, 院长办公室有5部主机和1台打印机, 学院行政办公室有6部主机和1台打印机, 教师机房有20部主机和2台打印机, 学生机房有24部主机和2台打印机, 得到一个c类地址193.168.2.0, 请为组网进行子网划分,并为各网段和路由器接口合理分配ip地址.为以上虚拟网络配置静态路由1.3试验条件:PC机一台安装了Net- sim1.4试验指导:1.4.1路由选择基础知识路由是将对象从一个地方转达发到另一个地方的一个中继过程学习和维持网络拓朴结构知识的机制被认为是路由功能。
数据流经路由器进入接口穿过路由器被移送到外出接口的过程,是另一项单独的功能,被认为是交换/转发功能。
路由设备必须同时具有路由和交换的功能才可以作为一台有效的中继设备。
为了进行路由,路由器必须知道下面三项内容:l、路由器必须确定它是否激活了对该协议组的支持;2、路由器必须知道目的地网络;3、路由器必须知道哪个外出接口是到达目的地的最佳路。
路由选择协议通过度量值来决定到达目的地的最佳路径。
小度量值代表优选的路径;如果两条或更多路径都有一个相同的小度量值,那么所有这些路径将被平等地分享。
通过多条路径分流数据流量被称为到目的地的负载均衡。
执行路由操作所需要的信息被包含在路由器的路由表中,它们由一个或多个路由选择协议进程生成。
路由表由多个路由条目组成,每个条目指明了以下内容:*学习该路由所用的机制(动态或手动)*逻辑目的地*管理距离*度量值(它是度量一条路径的总"总开销"的一个尺度)*去往目的地下一HOP的中继设备(路由器)的地址;*路由信息的新旧程度*与要去往目的地网络相关联的接口使用命令SHOW IP ROUTE可看到以上内容。
实训配置静态路由
实训一路由器的基本配置1.实训目的掌握路由器的管理特性,学会配置路由器支持Telnet 操作的相关语句。
2.实训环境。
如图所示。
Route r AF0/1 Conso l e192.168.0.138Nic ComPc3.实训内容路由器基本配置实训环境假设某学校的网络管理员第一次在设备机房对路由器进行了初次配置后,他希望以后在办公室或出差时也可以对设备进行远程管理,现要在路由器上做适当配置,使他可以实现这一愿望。
本实验以一台R2624 路由器为例,路由器命名为RouterA。
一台PC 机通过串口(Com)连接到路由器的控制(Console)端口,通过网卡(NIC)连接到路由器的fastethernet0 端口。
假设PC 机的IP 地址和网络掩码分别为192.168.0.137,255.255.255.0,配置路由器的fastethernet0 端口的IP 地址和网络掩码分别为192.168.0.138,255.255.255.0。
【实验设备】R2624(1 台)。
4.实训操作步骤1) 在路由器上配置fastethernet0 端口的IP 地址。
Red-Giant>enable !进入特权模式Red-Giant # configure terminal !进入全局配置模式Red-Giant (config)# hostname RouterA !配置路由器名称为“RouterA”RouterA(config)# interface fastethernet0 !进入路由器接口配置模式RouterA(config)# ip address 192.168.0.138 255.255.255.0 !配置路由器管理接口IP 地址RouterA(config)# no shutdown !开启路由器fastethernet0 接口验证测试:验证路由器接口fastethernet0 的IP 地址已经配置和开启RouterA#show ip interface fastethernet0 !验证接口fastethernet0 的IP 地址已经配置和开启FastEthernet0 is up, line protocol is upInternet address is 192.168.0.138/24Broadcast address is 255.255.255.255Address determined by setup commandMTU is 1500 bytesHelper address is not setDirected broadcast forwarding is disabledOutgoing access list is not set Inbound access list is not set Proxy ARP is enabledSecurity level is defaultSplit horizon is enabledICMP redirects are always sent ICMP unreachables are always sent ICMP mask replies are never sent IP fast switching is enabledIP fast switching on the same interface is disabledIP multicast fast switching is enabledRouter Discovery is disabledIP output packet accounting is disabledIP access violation accounting is disabled TCP/IP header compression is disabled Policy routing is disabled或:RouterA#show ip interface brief !验证接口fastethernet0 的IP 地址已经配置和开启Interface IP-Address OK? Method Status Protocol FastEthernet0 192.168.0.138 YES manual up up FastEthernet1 unassigned YES unset administratively down down FastEthernet2 unassigned YES unset administratively down d own FastEthernet3 unassigned YES unset administratively down d own Serial0 unassigned YES unset administratively down downSerial1 unassigned YES unset administratively down d own2) 配置路由器远程登录密码。
华为静态路由实验练习
R1配置情况:<Huawei><Huawei><Huawei>clo<Huawei>clock d<Huawei>clock datetime 18:30:00 2017-03-05[Huawei]sy[Huawei]sysname R1Mar 5 2017 18:30:19-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEthernet0/0/1 has turned into UP state.[Huawei]sysname R1[R1][R1][R1]<R1>sy<R1>system-viewEnter system view, return user view with Ctrl+Z.[R1][R1]su[R1]super p[R1]super password c[R1]super password cipher 123456[R1][R1]us[R1]user-i[R1]user-interface v[R1]user-interface vty 0 4[R1-ui-vty0-4][R1-ui-vty0-4]au[R1-ui-vty0-4]authentication-mode p[R1-ui-vty0-4]authentication-mode passwordPlease configure the login password (maximum length 16):123456[R1-ui-vty0-4][R1-ui-vty0-4]se[R1-ui-vty0-4]set au[R1-ui-vty0-4]set authentication p[R1-ui-vty0-4]set authentication password c[R1-ui-vty0-4]set authentication password cipher 123456[R1-ui-vty0-4][R1-ui-vty0-4]q[R1][R1][R1]int[R1]interface g[R1]interfaceGigabitEthernet 0/0/0[R1-GigabitEthernet0/0/0][R1-GigabitEthernet0/0/0]ip add[R1-GigabitEthernet0/0/0]ip address 192.168.1.254 24[R1-GigabitEthernet0/0/0]Mar 5 2017 18:51:37-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IPon the interface GigabitEthernet0/0/0 has entered the UP state. [R1-GigabitEthernet0/0/0][R1-GigabitEthernet0/0/0]un[R1-GigabitEthernet0/0/0]undosh[R1-GigabitEthernet0/0/0]undo shutdownInfo: Interface GigabitEthernet0/0/0 is not shutdown.[R1-GigabitEthernet0/0/0]q[R1][R1]int[R1]interface g[R1]interfaceGigabitEthernet 0/0/1[R1-GigabitEthernet0/0/1]ip ad[R1-GigabitEthernet0/0/1]ip address 192.168.12.1 24[R1-GigabitEthernet0/0/1]Mar 5 2017 18:53:23-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IPon the interface GigabitEthernet0/0/1 has entered the UP state.[R1-GigabitEthernet0/0/1]un[R1-GigabitEthernet0/0/1]undosh[R1-GigabitEthernet0/0/1]undo shutdownInfo: Interface GigabitEthernet0/0/1 is not shutdown.[R1-GigabitEthernet0/0/1][R1-GigabitEthernet0/0/1]q[R1][R1]dis[R1]displayipint[R1]displayip interface b[R1]displayip interface brief*down: administratively down^down: standby(l): loopback(s): spoofingThe number of interface that is UP in Physical is 3The number of interface that is DOWN in Physical is 1The number of interface that is UP in Protocol is 3The number of interface that is DOWN in Protocol is 1Interface IP Address/Mask Physical Protocol GigabitEthernet0/0/0 192.168.1.254/24 up up GigabitEthernet0/0/1 192.168.12.1/24 up up GigabitEthernet0/0/2 unassigned down downNULL0 unassigned up up(s) [R1][R1][R1]Please check whether system data has been changed, and save data in time Configuration console time out, please press any key to log on<R1><R1><R1><R1>syEnter system view, return user view with Ctrl+Z.[R1][R1][R1]ipro[R1]ip route-[R1]ip route-static 192.168.23.0 255.255.255.0 192.168.12.2[R1][R1]ipro[R1]ip route-[R1]ip route-static 192.168.2.0 255.255.255.0 192.168.23.2[R1][R1][R1]dis[R1]displayipro[R1]displayip routing-tableRoute Flags: R - relay, D - download to fib------------------------------------------------------------------------------Routing Tables: PublicDestinations : 12 Routes : 12Destination/Mask Proto Pre Cost Flags NextHopInterface127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0192.168.1.0/24 Direct 0 0 D 192.168.1.254 GigabitEthernet0/0/0192.168.1.254/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0192.168.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0192.168.2.0/24 Static 60 0 RD 192.168.23.2 GigabitEthernet0/0/1192.168.12.0/24 Direct 0 0 D 192.168.12.1 GigabitEthernet0/0/1192.168.12.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/1192.168.12.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/1192.168.23.0/24 Static 60 0 RD 192.168.12.2 GigabitEthernet0/0/1255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0[R1]Please check whether system data has been changed, and save data in timeConfiguration console time out, please press any key to log on<R1>ping 192.168.2.254PING 192.168.2.254: 56 data bytes, press CTRL_C to breakReply from 192.168.2.254: bytes=56 Sequence=1 ttl=254 time=50 ms Reply from 192.168.2.254: bytes=56 Sequence=2 ttl=254 time=30 ms Reply from 192.168.2.254: bytes=56 Sequence=3 ttl=254 time=50 ms Reply from 192.168.2.254: bytes=56 Sequence=4 ttl=254 time=30 ms Reply from 192.168.2.254: bytes=56 Sequence=5 ttl=254 time=20 ms--- 192.168.2.254 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 20/36/50 ms<R1>ping 192.168.2.1PING 192.168.2.1: 56 data bytes, press CTRL_C to breakRequest time outReply from 192.168.2.1: bytes=56 Sequence=2 ttl=126 time=40 msReply from 192.168.2.1: bytes=56 Sequence=3 ttl=126 time=30 msReply from 192.168.2.1: bytes=56 Sequence=4 ttl=126 time=50 msReply from 192.168.2.1: bytes=56 Sequence=5 ttl=126 time=40 ms--- 192.168.2.1 ping statistics ---5 packet(s) transmitted4 packet(s) received20.00% packet lossround-trip min/avg/max = 30/40/50 ms<R1>saveThe current configuration will be written to the device.Are you sure to continue? (y/n)[n]:yIt will take several minutes to save configuration file, pleasewait.........Configuration file had been saved successfullyNote: The configuration file will take effect after being activated <R1>Please check whether system data has been changed, and save data in timeConfiguration console time out, please press any key to log onR2配置如下<Huawei>clo<Huawei>clock d<Huawei>clock datetime 18:56:00 2017-03-05<Huawei><Huawei>sy<Huawei>system-viewEnter system view, return user view with Ctrl+Z.[Huawei][Huawei]sy[Huawei]sysname R2[R2][R2]su[R2]super p[R2]super password c[R2]super password cipher 123456[R2][R2]us[R2]user-i[R2]user-interface v[R2]user-interface vty 0 4[R2-ui-vty0-4][R2-ui-vty0-4]au[R2-ui-vty0-4]authentication-mode p[R2-ui-vty0-4]authentication-mode passwordPlease configure the login password (maximum length 16):123456[R2-ui-vty0-4][R2-ui-vty0-4]se[R2-ui-vty0-4]setau[R2-ui-vty0-4]set authentication P[R2-ui-vty0-4]set authentication password C[R2-ui-vty0-4]set authentication password cipher 123456[R2-ui-vty0-4][R2-ui-vty0-4]q[R2][R2]int[R2]interface G[R2]interfaceGigabitEthernet 0/0/0[R2-GigabitEthernet0/0/0][R2-GigabitEthernet0/0/0]ip ad[R2-GigabitEthernet0/0/0]ip address 192.168.12.2 24[R2-GigabitEthernet0/0/0]un[R2-GigabitEthernet0/0/0]undosh[R2-GigabitEthernet0/0/0]undo shutdownInfo: Interface GigabitEthernet0/0/0 is not shutdown.[R2-GigabitEthernet0/0/0][R2-GigabitEthernet0/0/0]q[R2][R2]int[R2]interface G[R2]interfaceGigabitEthernet 0/0/1[R2-GigabitEthernet0/0/1][R2-GigabitEthernet0/0/1]ip add[R2-GigabitEthernet0/0/1]ip address 192.168.23.1 24[R2-GigabitEthernet0/0/1]Mar 5 2017 19:02:40-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IPon the interface GigabitEthernet0/0/1 has entered the UP state. [R2-GigabitEthernet0/0/1]un[R2-GigabitEthernet0/0/1]undosh[R2-GigabitEthernet0/0/1]undo shutdownInfo: Interface GigabitEthernet0/0/1 is not shutdown.[R2-GigabitEthernet0/0/1][R2-GigabitEthernet0/0/1]quit[R2][R2][R2]dis[R2]displayipint[R2]displayip interface B[R2]displayip interface brief*down: administratively down^down: standby(l): loopback(s): spoofingThe number of interface that is UP in Physical is 3The number of interface that is DOWN in Physical is 1The number of interface that is UP in Protocol is 3The number of interface that is DOWN in Protocol is 1Interface IP Address/Mask Physical Protocol GigabitEthernet0/0/0 192.168.12.2/24 up up GigabitEthernet0/0/1 192.168.23.1/24 up up GigabitEthernet0/0/2 unassigned down downNULL0 unassigned up up(s) [R2]<R2><R2>sy<R2>system-viewEnter system view, return user view with Ctrl+Z.[R2][R2]iprou[R2]ip route-[R2]ip route-static 192.168.1.0 255.255.255.0 192.168.12.1[R2][R2]ipro[R2]ip route-[R2]ip route-static 192.168.2.0 255.255.255.0 192.168.23.2[R2][R2]dis[R2]displayipro[R2]displayip routing-tableRoute Flags: R - relay, D - download to fib------------------------------------------------------------------------------Routing Tables: PublicDestinations : 12 Routes : 12Destination/Mask Proto Pre Cost Flags NextHopInterface127.0.0.0/8 Direct 0 0 D 127.0.0.1InLoopBack0127.0.0.1/32 Direct 0 0 D 127.0.0.1InLoopBack0127.255.255.255/32 Direct 0 0 D 127.0.0.1InLoopBack0192.168.1.0/24 Static 60 0 RD 192.168.12.1 GigabitEthernet0/0/0192.168.2.0/24 Static 60 0 RD 192.168.23.2 GigabitEthernet0/0/1192.168.12.0/24 Direct 0 0 D 192.168.12.2 GigabitEthernet0/0/0192.168.12.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0192.168.12.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0192.168.23.0/24 Direct 0 0 D 192.168.23.1 GigabitEthernet0/0/1192.168.23.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/1192.168.23.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/1255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0[R2]Please check whether system data has been changed, and save data in timeConfiguration console time out, please press any key to log on<R2><R2><R2><R2>saveThe current configuration will be written to the device.Are you sure to continue? (y/n)[n]:yIt will take several minutes to save configuration file, please wait.........Configuration file had been saved successfullyNote: The configuration file will take effect after being activated <R2>Please check whether system data has been changed, and save data in timeConfiguration console time out, please press any key to log on R3配置如下<Huawei>clo<Huawei>clock d<Huawei>clock datetime 19:05:00 2017-03-05<Huawei><Huawei>sy<Huawei>system-viewEnter system view, return user view with Ctrl+Z.[Huawei][Huawei]sy[Huawei]sysname R3[R3][R3]su[R3]super p[R3]super password c[R3]super password cipher 123456[R3][R3]user-i[R3]user-interface v[R3]user-interface vty 0 4[R3-ui-vty0-4]au[R3-ui-vty0-4]authentication-mode p[R3-ui-vty0-4]authentication-mode passwordPlease configure the login password (maximum length 16):123456 [R3-ui-vty0-4][R3-ui-vty0-4]se[R3-ui-vty0-4]set au[R3-ui-vty0-4]set authentication p[R3-ui-vty0-4]set authentication password c[R3-ui-vty0-4]set authentication password cipher 123456[R3-ui-vty0-4][R3-ui-vty0-4]q[R3][R3]int[R3]interface g[R3]interfaceGigabitEthernet 0/0/0[R3-GigabitEthernet0/0/0][R3-GigabitEthernet0/0/0]ip ad[R3-GigabitEthernet0/0/0]ip address 192.168.23.2 24[R3-GigabitEthernet0/0/0]Mar 5 2017 19:08:28-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IPon the interface GigabitEthernet0/0/0 has entered the UP state. [R3-GigabitEthernet0/0/0][R3-GigabitEthernet0/0/0]un[R3-GigabitEthernet0/0/0]undosh[R3-GigabitEthernet0/0/0]undo shutdownInfo: Interface GigabitEthernet0/0/0 is not shutdown.[R3-GigabitEthernet0/0/0][R3-GigabitEthernet0/0/0]q[R3][R3]int[R3]interface g[R3]interfaceGigabitEthernet 0/0/1[R3-GigabitEthernet0/0/1][R3-GigabitEthernet0/0/1]ip ad[R3-GigabitEthernet0/0/1]ip address 192.168.2.254 24[R3-GigabitEthernet0/0/1]Mar 5 2017 19:09:54-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IPon the interface GigabitEthernet0/0/1 has entered the UP state. [R3-GigabitEthernet0/0/1][R3-GigabitEthernet0/0/1]un[R3-GigabitEthernet0/0/1]undosh[R3-GigabitEthernet0/0/1]undo shutdownInfo: Interface GigabitEthernet0/0/1 is not shutdown.[R3-GigabitEthernet0/0/1][R3-GigabitEthernet0/0/1]q[R3][R3]dis[R3]displayipint[R3]displayip interface b[R3]displayip interface brief*down: administratively down^down: standby(l): loopback(s): spoofingThe number of interface that is UP in Physical is 3The number of interface that is DOWN in Physical is 1The number of interface that is UP in Protocol is 3The number of interface that is DOWN in Protocol is 1Interface IP Address/Mask Physical Protocol GigabitEthernet0/0/0 192.168.23.2/24 up up GigabitEthernet0/0/1 192.168.2.254/24 up up GigabitEthernet0/0/2 unassigned down downNULL0 unassigned up up(s) [R3][R3]<R3>sy<R3>system-viewEnter system view, return user view with Ctrl+Z.[R3][R3]iPlease check whether system data has been changed, and save data in time Configuration console time out, please press any key to log on<R3><R3><R3>sy<R3>system-viewEnter system view, return user view with Ctrl+Z.[R3][R3][R3]ipro[R3]ip route-[R3]ip route-static 192.168.12.0 255.255.255.0 192.168.23.1[R3][R3]ipro[R3]ip route-[R3]ip route-static 192.168.1.0 255.255.255.0 192.168.12.1[R3][R3]dis[R3]displayipro[R3]displayip routing-tableRoute Flags: R - relay, D - download to fibRouting Tables: PublicDestinations : 12 Routes : 12Destination/Mask Proto Pre Cost Flags NextHopInterface127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0192.168.1.0/24 Static 60 0 RD 192.168.12.1 GigabitEthernet0/0/0192.168.2.0/24 Direct 0 0 D 192.168.2.254 GigabitEthernet0/0/1192.168.2.254/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/1192.168.2.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/1192.168.12.0/24 Static 60 0 RD 192.168.23.1 GigabitEthernet0/0/0192.168.23.0/24 Direct 0 0 D 192.168.23.2 GigabitEthernet0/0/0192.168.23.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0192.168.23.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0[R3][R3][R3]ping 192.168.1.254PING 192.168.1.254: 56 data bytes, press CTRL_C to breakReply from 192.168.1.254: bytes=56 Sequence=1 ttl=254 time=350 ms Reply from 192.168.1.254: bytes=56 Sequence=2 ttl=254 time=90 ms Reply from 192.168.1.254: bytes=56 Sequence=3 ttl=254 time=50 ms Reply from 192.168.1.254: bytes=56 Sequence=4 ttl=254 time=40 ms Reply from 192.168.1.254: bytes=56 Sequence=5 ttl=254 time=40 ms--- 192.168.1.254 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 40/114/350 ms[R3]ping 192.168.1.1PING 192.168.1.1: 56 data bytes, press CTRL_C to breakRequest time outReply from 192.168.1.1: bytes=56 Sequence=2 ttl=126 time=40 msReply from 192.168.1.1: bytes=56 Sequence=3 ttl=126 time=60 msReply from 192.168.1.1: bytes=56 Sequence=4 ttl=126 time=30 msReply from 192.168.1.1: bytes=56 Sequence=5 ttl=126 time=40 ms--- 192.168.1.1 ping statistics ---5 packet(s) transmitted4 packet(s) received20.00% packet lossround-trip min/avg/max = 30/42/60 ms[R3]save^Error: Unrecognized command found at '^' position.[R3]q<R3><R3>saveThe current configuration will be written to the device.Are you sure to continue? (y/n)[n]:yIt will take several minutes to save configuration file, please wait..........Configuration file had been saved successfullyNote: The configuration file will take effect after being activated <R3>Please check whether system data has been changed, and save data in timeConfiguration console time out, please press any key to log onPC1测试PC2测试。
《实验七--静态路由协议配置》参考答案(H3C)最新
《实验七--静态路由协议配置》参考答案(H3C)最新D2. 删除静态路由协议配置命令[Router]undo ip route-static ip-address {mask | masklen} {interface-type interface-name | nexthop-address}[ preference value ] [ reject | blackhole ]#华为、H3C设备Router(config)#no ip route network [mask] {address | interface}[distance] [permanent] #CISCO设备五、实验步骤1.构建网络拓朴图根据需要添加网络设备、添加设备之间的连线,如图7-1所示。
2. 配置主机IP地址3. 配置路由器端口地址(1) 配置路由器A的端口IP地址<H3C>sys[H3C]sys RouterA[RouterA]display int[RouterA]int g0/0[RouterA-GigabitEthernet0/0]ip address 192.168.1.254 24[RouterA-GigabitEthernet0/0]int g0/1[RouterA-GigabitEthernet0/1]ip add 192.168.10.1 30 [RouterA-GigabitEthernet0/1]quit(2) 配置路由器B的端口IP地址<H3C>sys[H3C]sys RouterB[RouterB]int g0/0[RouterB-GigabitEthernet0/0]ip add 192.168.10.2 30 [RouterB-GigabitEthernet0/0]int g0/1[RouterB-GigabitEthernet0/1]ip add 192.168.20.1 30 [RouterB-GigabitEthernet0/1]int g0/2[RouterB-GigabitEthernet0/2]ip add 192.168.2.254 24 [RouterB-GigabitEthernet0/2]quit(3) 配置路由器C的端口IP地址<H3C>sys[H3C]sys RouterC[RouterC]int g0/0[RouterC-GigabitEthernet0/0]ip add 192.168.20.2 30 [RouterC-GigabitEthernet0/0]int g0/1[RouterC-GigabitEthernet0/1]ip add 192.168.3.254 244. 配置静态路由协议(1) 配置路由器A的静态路由协议#删除动态路由协议RIP< RouterA>sysSystem View: return to User View with Ctrl+Z.[RouterA]disp ip rout //查看路由表,如果有路由,删除路由后再进行实验//删除RIP路由协议,如果没有RIP路由协议,以下三个步骤可省略[RouterA]undo ripUndo RIP process? [Y/N]:y[RouterA]disp rip #或disp ip rout#配置静态路由协议[RouterA]ip route-static 192.168.2.0 24 192.168.10.2[RouterA]ip route-static 192.168.20.0 30 192.168.10.2[RouterA]ip route-static 192.168.3.0 24 192.168.10.2[RouterA]save(2) 配置路由器B的静态路由协议#删除动态路由协议RIP<RouterB>sysSystem View: return to User View with Ctrl+Z.[RouterB]disp ip rout //查看路由表,如果有路由,删除路由后再进行实验//删除RIP路由协议,如果没有RIP路由协议,以下三个步骤可省略[RouterB]undo ripUndo RIP process? [Y/N]:y[RouterB]disp rip #或disp ip rout#配置静态路由协议[RouterB]ip route-static 192.168.1.0 24 192.168.10.1[RouterB]ip route-static 192.168.3.0 24 192.168.20.2[RouterB]save(3) 配置路由器C的静态路由协议#删除动态路由协议RIP<RouterC>sysSystem View: return to User View with Ctrl+Z.[RouterC]disp ip rout //查看路由表,如果有路由,删除路由后再进行实验//删除RIP路由协议,如果没有RIP路由协议,以下三个步骤可省略[RouterC]undo ripUndo RIP process? [Y/N]:y[RouterC]disp rip #或disp ip rout#配置静态路由协议[RouterC]ip route-static 192.168.1.0 24 192.168.20.1[RouterC]ip route-static 192.168.2.0 24 192.168.20.1[RouterC]ip route-static 192.168.10.0 24 192.168.20.1[RouterC]save[RouterC]disp ip rout #或display ip routing-table,查看路由表5. 测试验证(1) 查看路由表(2) 测试网络连通性对路由器和计算机都可以使用ping命令测试网络连通性。
静态路由--练习
Router A:router>enrouter#conf tEnter configuration commands, one per line. End with CNTL/Z. router(config)#int f0/0router(config-if)#ip address 10.65.1.2 255.255.0.0router(config-if)#no shutrouter(config-if)#int f0/1router(config-if)#ip address 10.66.1.2 255.255.0.0router(config-if)#no shutrouter(config-if)#int s0/1router(config-if)#ip address 10.68.1.2 255.255.0.0router(config-if)#clock rate 64000router(config-if)#no shutrouter(config-if)#int s0/0router(config-if)#ip address 10.67.1.2 255.255.0.0router(config-if)#exitrouter(config)#ip routingrouter(config)#ip route 10.69.0.0 255.255.0.0 10.68.1.1router(config)#ip routingrouter(config)#ip route 10.70.0.0 255.255.0.0 10.68.1.1router(config)#ip routingrouter(config)#endrouter#show ip routeCodes: C - connected, S - static, I - IGRP,B - BGPR - RIP, O - OSPF, D - EIGRP, i - IS-ISC 10.65.0.0 is directly connected, FastEthernet0/0C 10.66.0.0 is directly connected, FastEthernet0/1C 10.68.0.0 is directly connected, Serial0/1S 10.69.0.0 [1/2] via 10.68.1.1 Serial0/1S 10.70.0.0 [1/2] via 10.68.1.1 Serial0/1Router B :router>enrouter#conf tEnter configuration commands, one per line. End with CNTL/Z. router(config)#int f0/0router(config-if)#ip address 10.69.1.2 255.255.0.0router(config-if)#no shutrouter(config-if)#int f0/1router(config-if)#ip address 10.70.1.2 255.255.0.0router(config-if)#no shutrouter(config-if)#int s0/0router(config-if)#ip address 10.78.1.2 255.255.0.0router(config-if)#clock rate 64000router(config-if)#no shutrouter(config-if)#int s0/1router(config-if)#ip address 10.71.1.2 255.255.0.0router(config-if)#exitrouter(config)#ip routingrouter(config)#ip route 10.65.0.0 255.255.0.0 10.78.1.1router(config)#ip routingrouter(config)#ip route 10.66.0.0 255.255.0.0 10.78.1.1router(config)#ip routingrouter(config)#endrouter#show ip routeCodes: C - connected, S - static, I - IGRP,B - BGPR - RIP, O - OSPF, D - EIGRP, i - IS-ISC 10.69.0.0 is directly connected, FastEthernet0/0C 10.70.0.0 is directly connected, FastEthernet0/1C 10.78.0.0 is directly connected, Serial0/0S 10.65.0.0 [1/2] via 10.78.1.1 Serial0/0S 10.66.0.0 [1/2] via 10.78.1.1 Serial0/0Router C :router>enrouter#conf tEnter configuration commands, one per line. End with CNTL/Z. router(config)#int s0/0router(config-if)#ip address 10.68.1.1 255.255.0.0router(config-if)#no shutrouter(config-if)#int s0/1router(config-if)#ip address 10.78.1.1 255.255.0.0router(config-if)#no shutrouter(config-if)#clock rate 64000router(config-if)#exitrouter(config)#ip routingrouter(config)#ip route 10.65.0.0 255.255.0.0 10.68.1.2router(config)#ip routingrouter(config)#ip route 10.66.0.0 255.255.0.0 10.68.1.2router(config)#ip routingrouter(config)#ip route 10.69.0.0 255.255.0.0 10.78.1.2router(config)#ip routingrouter(config)#ip route 10.70.0.0 255.255.0.0 10.78.1.2router(config)#ip routingrouter(config)#endrouter#show ip routeCodes: C - connected, S - static, I - IGRP,B - BGPR - RIP, O - OSPF, D - EIGRP, i - IS-ISC 10.68.0.0 is directly connected, Serial0/0C 10.78.0.0 is directly connected, Serial0/1S 10.65.0.0 [1/1] via 10.68.1.2 Serial0/0S 10.66.0.0 [1/1] via 10.68.1.2 Serial0/0S 10.69.0.0 [1/1] via 10.78.1.2 Serial0/1S 10.70.0.0 [1/1] via 10.78.1.2 Serial0/1PCA login: rootPassword: linux[root@PCA root]# ifconfig eth0 10.65.1.1 netmask 255.255.0.0 [root@PCA root]# ifconfigeth0 inet addr: 10.65.1.1 mask: 255.255.0.0 loopback inet addr: 127.0.0.1 mask: 255.0.0.0[root@PCA root]# route add default gw 10.65.1.2[root@PCA root]# ping 10.65.1.164 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.207 ms64 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.180 ms64 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.176 ms64 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.186 ms4packets transmitted, 4 received, 0% loss, time 2000ms[root@PCA root]# ping 10.66.1.164 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.180 ms 64 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.176 ms 64 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.186 ms 4packets transmitted, 4 received, 0% loss, time 2000ms[root@PCA root]# ping 10.69.1.164 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.180 ms 64 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.176 ms 64 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.186 ms 4packets transmitted, 4 received, 0% loss, time 2000ms[root@PCA root]# ping 10.70.1.164 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.180 ms 64 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.176 ms 64 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.186 ms 4packets transmitted, 4 received, 0% loss, time 2000msPCB login: rootPassword: linux[root@PCB root]# ifconfig eth0 10.66.1.1 netmask 255.255.0.0 [root@PCB root]# ifconfigeth0 inet addr: 10.66.1.1 mask: 255.255.0.0 loopback inet addr: 127.0.0.1 mask: 255.0.0.0[root@PCB root]# route add default gw 10.66.1.2[root@PCB root]# routedefault gateway: 10.66.1.2[root@PCB root]# ping 10.65.1.164 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.180 ms 64 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.176 ms 64 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.186 ms 4packets transmitted, 4 received, 0% loss, time 2000ms[root@PCB root]# ping 10.66.1.164 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.207 ms64 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.180 ms 64 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.176 ms 64 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.186 ms 4packets transmitted, 4 received, 0% loss, time 2000ms[root@PCB root]# ping 10.69.1.164 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.180 ms 64 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.176 ms 64 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.186 ms 4packets transmitted, 4 received, 0% loss, time 2000ms[root@PCB root]# ping 10.70.1.164 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.180 ms 64 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.176 ms 64 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.186 ms 4packets transmitted, 4 received, 0% loss, time 2000msPCC login: rootPassword: linux[root@PCC root]# ifconfig eth0 10.69.1.1 netmask 255.255.0.0 [root@PCC root]# ifconfigeth0 inet addr: 10.69.1.1 mask: 255.255.0.0 loopback inet addr: 127.0.0.1 mask: 255.0.0.0[root@PCC root]# route add default gw 10.69.1.2[root@PCC root]# routedefault gateway: 10.69.1.2[root@PCC root]# ping 10.65.1.164 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.180 ms 64 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.176 ms 64 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.186 ms 4packets transmitted, 4 received, 0% loss, time 2000ms[root@PCC root]# ping 10.66.1.164 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.180 ms 64 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.176 ms 64 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.186 ms 4packets transmitted, 4 received, 0% loss, time 2000ms[root@PCC root]# ping 10.69.1.164 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.180 ms 64 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.176 ms 64 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.186 ms 4packets transmitted, 4 received, 0% loss, time 2000ms[root@PCC root]# ping 10.70.1.164 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.180 ms 64 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.176 ms 64 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.186 ms 4packets transmitted, 4 received, 0% loss, time 2000msPCD login: rootPassword: linux[root@PCD root]# ifconfig eth0 10.70.1.1 netmask 255.255.0.0 [root@PCD root]# ifconfigeth0 inet addr: 10.70.1.1 mask: 255.255.0.0 loopback inet addr: 127.0.0.1 mask: 255.0.0.0[root@PCD root]# route add default gw 10.70.1.2[root@PCD root]# routedefault gateway: 10.70.1.2[root@PCD root]# ping 10.65.1.164 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.180 ms 64 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.176 ms 64 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.186 ms 4packets transmitted, 4 received, 0% loss, time 2000ms[root@PCD root]# ping 10.66.1.164 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.180 ms 64 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.176 ms 64 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.186 ms 4packets transmitted, 4 received, 0% loss, time 2000ms[root@PCD root]# ping 10.69.1.164 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.207 ms64 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.180 ms 64 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.176 ms 64 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.186 ms 4packets transmitted, 4 received, 0% loss, time 2000ms[root@PCD root]# ping 10.70.1.164 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.180 ms 64 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.176 ms 64 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.186 ms 4packets transmitted, 4 received, 0% loss, time 2000ms。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
实验报告• 思考网络实施并整理成文档。
实验拓扑及场景地址表希腊字母表设备借口IP地址子网掩码默认网关classBRANCH(config)#banner motd #Enter TEXTmessage.End with the character‘#’Welcome to Router BRANCH! #BRANCH(config)#line console 0BRANCH(config-line)#loginBRANCH(config-line)#password ciscoBRANCH(config)#line vty 0 4BRANCH(config-line)#loginBRANCH(config-line)#password ciscoBRANCH(config)#line console 0BRANCH(config-line)#logging synchronousHQ上的配置:略ISP上的配置:略任务5 :配置并激活串行地址和以太网地址。
步骤 1 :配置 BRANCH 、 HQ 和 ISP 路由器上的接口。
使用拓扑图下方表格中的 IP 地址配置 BRANCH 、 HQ 和 ISP 路由器上的接口。
配置完成后,务必将运行配置保存到路由器的 NVRAM 中。
BRANCH上的配置:BRANCH(config)#inter f0/0BRANCH(config-if)#ip add 192.168.2.193 255.255.255.192BRANCH(config-if)#no shutBRANCH(config)#inter s0/0BRANCH(config)#clock rate 56000BRANCH(config-if)#ip add 192.168.2.129 255.255.255.192BRANCH(config-if)#no shutHQ上的配置:略ISP上的配置:略步骤 2 :配置以太网接口。
使用拓扑图下方表格中的 IP 地址配置 PC1 、 PC2 和 Web 服务器上的以太网接口。
PC1PC2WEB任务6 :检查与下一跳设备的连通性。
现在,终端设备之间应该无法连通。
但是,您可以测试两台路由器之间以及终端设备与其默认网关之间的连通性。
步骤 1 :检查 BRANCH 和 HQ 的连通性。
确认 BRANCH 可通过与 HQ 连接的 WAN 链路 ping 通 HQ ,并且 HQ 可通过与 ISP 共享的 WAN 链路 ping 通 ISP 。
BRANCH与HQ互pingHQ与ISP互ping步骤 2 :检查 PC1 、 PC2 和 Web 服务器的连通性。
确认 PC1 、 PC2 和 Web 服务器可 ping 通各自的默认网关。
PC1 ping 192.168.2.193PC2 ping 192.168.2.65WEB ping 209.165.200.224任务7 :配置BRANCH 上的静态路由。
步骤 1 :思考 BRANCH 所需的静态路由类型。
BRANCH 路由表中目前有哪些网络?以斜杠记法列出这些网络。
192.168.2.192/26___________________192.168.2.128/26___________________BRANCH 路由表中目前缺少哪些网络?以斜杠记法列出这些网络。
192.168.2.64/26_____________________209.165.201.0/30____________________209.165.200.224/27__________________可以创建一条总结路由来涵盖所有缺少的网络吗?不能__________连接到BRANCH 的LAN 可通过多少条WAN 路由向外传出流量? __1_______步骤2 为BRANCH 配置指向HQ 的默认静态路由。
由于 BRANCH 是末节路由器,因此我们应该为其配置指向 HQ 的默认静态路由。
写下用来配置默认静态路由的命令(使用适当的输出接口)。
BRANCH(config)#ip route 0.0.0.0 0.0.0.0 s0/0步骤3 查看BRANCH 的路由表,验证新添加的静态路由条目。
您应该可以看到BRANCH 上设有 Gateway of Last Resort(最后的生路)。
先不要执行测试,您认为 PC1 现在是否能成功ping 通PC2? _不能原因是什么?__因为HQ还没有配置到PC1的路由任务8 :配置HQ 上的静态路由。
步骤 1 :思考 HQ 所需的静态路由类型。
HQ 路由表中目前有哪些网络?以斜杠记法列出这些网络。
192.168.2.128/26______________192.168.2.64/26_______________209.165.201.0/30______________HQ 路由表中目前缺少哪些网络?以斜杠记法列出这些网络。
192.168.2.192/26_______________209.165.200.224/27_____________可以创建一条总结路由来涵盖所有缺少的网络吗?不能__________在本实验的集中星型拓扑结构中, HQ 的位置非常特殊,在此它是一台中心路由器。
从 BRANCH LAN 发往 Internet 的流量必须经过 HQ 。
HQ 必须能够将没有找到相应路由的所有流量发送到 ISP 。
您需要在 HQ 上配置何种路由来解决这个问题?配置指向ISP的默认静态路由HQ 也是从Internet 发往BRANCH LAN 的流量需要经过的中间设备。
因此HQ 必须具备路由到该LAN 的能力。
您需要在 HQ 上配置何种路由来解决这个问题?静态路由步骤2:为HQ 配置静态路由。
为 HQ 配置到达BRANCH LAN 的静态路由(使用HQ 的Serial 0/0接口作为输出接口)。
写下您所使用的命令。
HQ(config)#ip route 192.168.2.192 255.255.255.192 s0/0步骤3:为HQ 配置默认静态路由。
为 HQ 路由器配置指向ISP 的默认静态路由(使用下一跳IP 地址)。
写下您所使用的命令。
_HQ(config)#ip route 0.0.0.0 0.0.0.0 209.165.201.1_步骤4:查看HQ 的路由表,验证新添加的静态路由条目。
先不要执行测试,您认为 PC1 现在是否能成功ping 通PC2?_能_________原因是什么?因为HQ配置了通往PC1的路由,BRANCH配置了通往PC2的路由先不要执行测试,您认为 PC1 或 PC2 现在是否能成功 ping 通 Web 服务器?不能__________ 原因是什么?因为ISP还没配置到达PC1和PC2所在网段的路由任务9 :配置ISP 上的静态路由。
在现实环境中实施此拓扑结构时,您不必配置 ISP 路由器。
您的服务提供商会主动满足您的连接需要。
但是服务提供商的管理员也是人,因此也会犯错。
所以,您必须了解 ISP 方面可能出现的一些导致断网的错误。
步骤 1 :思考 ISP 所需的静态路由类型。
ISP 路由表中目前有哪些网络?以斜杠记法列出这些网络。
209.165.201.0/30____________________209.165.200.224/27__________________ISP 路由表中目前缺少哪些网络?以斜杠记法列出这些网络。
192.168.2.128/26______________192.168.2.64/26_______________192.168.2.192/30______________可以创建一条总结路由来涵盖所有缺少的网络吗?可以__________步骤 2 :为 ISP 配置总结静态路由。
使用下一跳 IP 地址为 ISP 配置总结静态路由,使其包含路由表中缺少的所有子网。
写下您所使用的命令。
Router(config)#ip route 192.168.2.0 255.255.255.0 209.165.201.2注意:总结路由还包含子网零路由,以便将来扩展。
步骤 3 :查看 R3 的路由表,验证新添加的静态路由条目。
任务10 :检查配置。
回答下列问题,以验证网络是否按预期运行:在 PC2 上是否能 ping 通 PC1? _能_________在 PC2 上是否能 ping 通 Web 服务器?_能_________在 PC1 上是否能 ping 通 Web 服务器?_能_________以上问题的回答都应该为能。
如果以上 ping 操作有任何一个不成功,请检查物理连接和配置。
要回顾基本故障排除技术,请参见实验 1.5.1 “ 网络布线和基本路由器配置” 。
BRANCH 的路由表中目前有哪些路由?HQ 的路由表中目前有哪些路由?ISP 的路由表中目前有哪些路由?任务11 :思考如果 BRANCH 上未配置默认静态路由,那么需要多少条单独的静态路由 BRANCH LAN 中的主机才能与拓扑图中的所有网络通信?3__________如果 R3 上未配置总结静态路由,那么需要多少条单独的静态路由 R3 LAN 中的主机才能与拓扑图中的所有网络通信?_3_________任务12 :记录路由器配置在每台路由器上,截取以下命令的输出并保存到文本文件 (.txt) ,以供将来参考。
• 运行配置• 路由表• 接口总结任务13 :清理实验设施清除配置并重新加载路由器。
断开连接并将电缆收好。
对于平时连接到其它网络(例如学校LAN 或Internet )的PC 主机,请将连线恢复正常并还原TCP/IP 设置。
实验总结。