步骤2.路由器B端口参数的配置。 Red-Giant>enable Red-Giant#configure terminal Red-Giant(config)#hostname Rb Rb( config)# interface serial1/2!进行s1/2的端口模式 Rb( config-if)# ip address1.1.1.2255.255.255.0!配置端口的IP地址 Rb( config-if)# bandwidth512配置端口的带宽速率为512KB Rb(config-if)#no shutdown 开启该端口,使端口转发数据 查看路由器端口配置的参数。 Ra# show interface serial1/2!查看 RA serial l/2接口的状态 serial112isUP, line protocol is UP!接口的状态,是否为UP hardware is PQ2 SCC HDLC CONTROLLER serial nternet address is 1.1.1.1/24 !接口IP地址的配置 MTU1500 bytes,BW512Kbit!查看接口的带宽为512KB col is HDlC, loopback not set Keepalive interval is 10 sec, set Carrier delay is 2 sec Queueing strategy: WFQ 5 minutes input rate 17 bits/sec,.0 packets/sec 5 minutes output rate 17 bits/ sec, 0 packets/sec 511 packets input, 11242 bytes, 0 no buffer Received 51l broadcasts, 0 runts, o giants 0 input errors, 0 CRC,0 frame, 0 overrun, 0 abort 511 packets output, 11242 bytes,0 underruns 0 output errors, 0 collisions, l interface resets 1 carrier transitions V35 DCE cable 该接口为DCE端 DCP=up dsr= Ra#show ip interface serial 1/2 !查看该端口的IP协议相关属性 IP interface state is: U !接口状态 IP interface type is: POINTOPOINT IP interface mtu is: 1500 IP addr 1.1.1.1/24( primary) 接口IP地址信息 IP address negotiate is: OFF Forward direct-boardcast is: ON ICMP mask reply is: ON Send icmp redirect i dhCP relay is: OFF
步骤 2.路由器 B 端口参数的配置。 Red-Giant>enable Red-Giant#configure terminal Red-Giant(config)#hostname Rb Rb(config)#interface serial 1/2 !进行 s1/2 的端口模式 Rb(config-if)#ip address 1.1.1.2 255.255.255.O !配置端口的 IP 地址 Rb(config-if)#bandwidth 512 !配置端口的带宽速率为 512KB Rb(config-if)#no shutdown !开启该端口,使端口转发数据 查看路由器端口配置的参数。 Ra#show interface serial 1/2 !查看 RA serial l/2 接口的状态 serial 112 is UP,line protocol is UP !接口的状态,是否为 UP hardware is PQ2 SCC HDLC CONTROLLER serial Internet address is 1.1.1.1/24 !接口 IP 地址的配置 MTU 1500 bytes,BW 512 Kbit !查看接口的带宽为 512KB Encapsulation protocol is HDLC,loopback not set Keepalive interval is lO sec,set Carrier delay is 2 sec RXload is 1,Txload is 1 Queueing strategy:WFQ 5 minutes input rate 17 bits/sec,.O packets/sec 5 minutes output rate 17 bits/sec,O packets/sec 511 packets input,11242 bytes,0 no buffer Received 511 broadcasts,O runts,O giants 0 input errors,O CRC,O frame,O overrun,0 abort 511 packets output,11242 bytes,O underruns O output errors,0 collisions,1 interface resets 1 carrier transitions V35 DCE cable !该接口为 DCE 端 DCP=up DSR=up DTR=up RTS=up CTS=up Ra#show ip interface serial 1/2 !查看该端口的 IP 协议相关属性 serial 1/2 IP interface state is:UP !接口状态 IP interface type is:POINTOPOINT IP interface MTU is:1500 IP address is: 1.1.1.1/24(primary) 接口 IP 地址信息 IP address negotiate is: OFF Forward direct-boardcast is:ON ICMP mask reply is:ON Send ICMP redirect is:ON Send ICMP unreachabled is: ON DHCP relay is:OFF
Fast switch is: ON Route horizontal-split is: ON Help addre ess s Outgoing access list is not set Inbound access list is not set Rb#show interface serial 1/2 查看路由器 B serial/2接口的状态 serial 1/2 is UP, line protocol is UP 接口的状态,是否为UP Hardware is PQ2 SCC HDLC CONTROLLER serial Interface address is: 1.1. 1.2/24 !接口IP地址的配置 Mru 1500 bytes, BW 512 Kbit !接口的带宽为512K Encapsulation protocol is HDLC, loopback not set Keepalive interval is 10 sec, set Carrier delay is 2 sec RXload is 1, Txload is 1 Queueing strategy: WFQ 5 minutes input rate 17 bits/sec, 0 packets/sec 5 minutes output rate 17 bits/sec, 0 packets/sec 511 packets input, 11242 bytes, 0 no buffer Received 51l broadcasts, O runts, o giants o input errors, 0 CRC,0 frame, 0 overrun, 0 abort 511 packets output, 11242 bytes, 0 underrun 0 output errors, 0 collisions, 1 interface resets I carrier transitions V35 DtE cable !该接口为DTE端 DCD-up dsr=up dtrup rts=up cts=up Rb#show ip interface serial 1/ !査看该端口的IP协议相关属性 sera P interface state is: UP !接口状态 IP interface type is: POINTOPOINT iP interface mtu is: 1500 IP address is:1.1.1.2/24 (primary)!接口IP地址信息 IP address negotiate is: FF Forward direct-boardcast is: ON ICMP mask reply is: ON Send icmp redirect Send t cmp unreachabled is: ON DHCP relay is: OFF Fast switch is: ON Route horizontal-split is Help address is: 0. 0
Fast switch is:ON Route horizontal-split is: ON Help address is:0.0.0.O Proxy ARP is:ON Outgoing access list is not set· Inbound access list is not set. Rb#show interface serial 1/2 查看路由器 B seriall/2 接口的状态 serial 1/2 is UP,line protocol is UP 接口的状态,是否为 UP Hardware is PQ2 SCC HDLC CONTROLLER serial Interface address is:1.1.1.2/24 !接口 IP 地址的配置 MTU 1500 bytes,BW 512 Kbit !接口的带宽为 512K Encapsulation protocol is HDLC, loopback not set Keepalive interval is 1O sec,set Carrier delay is 2 sec RXload is 1,Txload is 1 Queueing strategy:WFQ 5 minutes input rate 17 bits/sec, O packets/sec 5 minutes output rate 17 bits/sec, O packets/sec 511 packets input, 11242 bytes, 0 no buffer Received 511 broadcasts,O runts,O giants O input errors,O CRC,0 frame,O overrun,0 abort 511 packets output, 11242 bytes, O underruns O output errors,O collisions,1 interface resets 1 carrier transitions V35 DTE cable !该接口为 DTE 端 DCD=up DSR=up DTR=up RTS=up CTS=up Rb#show ip interface serial 1/2 !查看该端口的 IP 协议相关属性 serial 1/2 IP interface state is:UP !接口状态 IP interface type is:POINTOPOINT IP interface MTU is: 1500 IP address is: 1.1.1.2/24(primary) !接口 IP 地址信息 IP address negotiate is: 0FF Forward direct—boardcast is: ON ICMP mask reply is:0N Send ICMP redirect is: ON Send 工 CMP unreachabled is: ON DHCP relay is:OFF Fast switch is:ON Route horizontal—split is: ON Help address is: 0.0.O.0
Proxy arP is: ON Outgoing access list is not set Inbound access list is not set 步骤4.验证配置 Ra#ping1.1.1.2!在 RA ping对端 BIserial1/2接口的IP Sending 5, 100-byte ICMP Echoes to 1.1 2, timeout is 2 seconds <Press Ctrl+c to break> Success rate is 100 percent (5/5), round-trip min/avg/max=1/1/1 ms 【注意事项】 1、路由器端口默认情况下是关闭的,需要 no shutdown开启端口 2、 serial接口正常的端口速率最大是2.048M(2000K)。 3、 show interface和 show ip interface之间的区别。 4.4查看路由器的系统和配置信息 【实验名称】 查看路由器的系统和配置信息。 【实验目的】 查看路由器系统和配置信息,掌握当前路由器的工作状态 【背景描述】 你是某公司新网管,第一天上班时,你必须掌握公司路由器的当前工作情况,通过查 看路由器的系统信息和配置信息,了解公司的设备和网络环境 【技术原理】 查看路由器的系统和配置信息命令要在特权模式下执行。 Show version查看路由器的版本信息,可以查看到交换机的硬件版本信息和软件版本 信息,用于进行交换机操作系统升级时的依据。 Show ip route查看路由表信息。 Show running- config查看路由器当前生效的配置信息。 【实现功能】 查看路由器的各项参数。 【实验设备】 R1762(1台)、主机(1台)、直连线(1条) 【实验拓扑】 RouterA F1/0 console PCA
Proxy ARP is: ON 0utgoing access list is not set. Inbound access list is not set. 步骤 4.验证配置。 Ra#ping 1.1.1.2 !在 RA ping 对端 RBserial 1/2 接口的 IP Sending 5, 100-byte ICMP Echoes to 1.1.1.2, timeout is 2 seconds: <Press Ctrl+C to break> Success rate is 100 percent (5/5), round-trip min/avg/max=1/l/1 ms 【注意事项】 1、路由器端口默认情况下是关闭的,需要 no shutdown 开启端口。 2、serial 接口正常的端口速率最大是 2.048M(2000K)。 3、show interface 和 show ip interface 之间的区别。 4.4 查看路由器的系统和配置信息 【实验名称】 查看路由器的系统和配置信息。 【实验目的】 查看路由器系统和配置信息,掌握当前路由器的工作状态。 【背景描述】 你是某公司新网管,第一天上班时,你必须掌握公司路由器的当前工作情况,通过查 看路由器的系统信息和配置信息,了解公司的设备和网络环境。 【技术原理】 查看路由器的系统和配置信息命令要在特权模式下执行。 Show version 查看路由器的版本信息,可以查看到交换机的硬件版本信息和软件版本 信息,用于进行交换机操作系统升级时的依据。 Show ip route 查看路由表信息。 Show running-config 查看路由器当前生效的配置信息。 【实现功能】 ’ 查看路由器的各项参数。 【实验设备】 R1762(1 台)、主机(1 台)、直连线(1 条) 【实验拓扑】
图14 【实验步骤】 步骤1.路由器端口的基本配置。 Red-Giant>enable Red-Giant#configure terminal Red-Giant(config)#hostname RouterA RouterA(config)#interface fastethernet 1/0 RouterA(config-if)#ip address 192. 168. 1. 1 255. 255. 255.0 RouterA(config-if)#n0 shut down 步骤2.查看交换机各项信息 RouterA#show version 查看路由器的版本信息 Red-Giant Operating System Software RGNoS(tm)RELEASE SOFTWARE, Version 8. 32(building 53) 操作系统版本号 Copyright(c)2004 by Red-Giant Network co.. Ltd Compiled Oct 21 2005 14: 10: 19 by sc Red-Giant uptime is o days 0 hours 1 1 minutes System returned to ROM power-on System image file is flash In !操作系统文件名称 Red-Giant r1700 series R1762 Motorola power PC processor with 65536K bytes of memory. Processor board Id 00000001, with hardware revision 00000001 card information in the system class id type id hardware ver firmware version slot o main board M824817621.1 FNM card FNM 2FE2HS ROutera嚣 show ip route!查看路由器路由表信息 Codes: C-connected, s-static, R-RIP 0-OSPF, IA-OSPF inter area NI -OSPF NSSA external type 1, N2-OSPF NSSA external type 2 El- OSPF external type 1, E2-OSPF external type 2 * candidate default Gateway of last resort is no set C 192. 168. 1.0/24 is directly connected, FastEthernet 1/0 C 192. 168. 1. 1/32 is local host 路由器F1/0的直连网段路由 RouterA#show running-config !查看交换机当前生效的配置信息 building configuration. Current configuration: 505 bytes ersion 8. 32(building 53)
图 14 【实验步骤】 步骤 1.路由器端口的基本配置。 Red-Giant>enable Red-Giant#configure terminal Red-Giant(config)#hostname RouterA RouterA(config)#interface fastethernet 1/0 RouterA(config—if)#ip address 192.168.1.1 255.255.255.O RouterA(config—if)#n0 shutdown 步骤 2.查看交换机各项信息。 RouterA#show version !查看路由器的版本信息 Red-Giant Operating System Software RGNOS(tm)RELEASE SOFTWARE,Version 8.32(building 53) !操作系统版本号 Copyright(c)2004 by Red-Giant Network co..Ltd Compiled Oct 21 2005 14:10:19 by sc Red-Giant uptime is 0 days O hours 1 1 minutes System returned to ROM power-on System image file is “flash:/rgnos.Bin” !操作系统文件名称 Red-Giant R1700 series R1762 Motorola Power PC processor with 65536K bytes of memory. Processor board ID 00000001,with hardware revision 00000001 card information in the system 一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一 slot class id type id hardware ver firmware version slot O main board MB M8248 1762 1.11 1.OO slot 1 FNM card FNM 2FE2HS 1.00 1.00 ROuterA 嚣 show ip route !查看路由器路由表信息 Codes: C-connected,S-static, R-RIP 0 - OSPF,IA-OSPF inter area Nl - OSPF NSSA external type 1,N2 - OSPF NSSA external type 2 E1 - OSPF external type 1,E2 - OSPF external type 2 * - candidate default Gateway of last resort is no set C 192.168.1.O/24 is directly connected,FastEthernet 1/0 C 192.168.1.1/32 is local host. 路由器 F1/0 的直连网段路由 RouterA#show running-config !查看交换机当前生效的配置信息 building configuration… Current configuration:505 bytes ! version 8.32(building 53)
hostname routerA 主机名 interface serial 1/2 interface serial 1/3 clock rate 64000 interface FastEthernet I/0 ip address192.168.1.1255.255.255.0!F1/0接口的IP地址 duple interface FastEthernet 1/1 duplex auto speed auto interface Null 0 line con o line aux o line Vty 0 4 end 【注意事项】 1、 show running-config是查看当前生效的配置信息。 show startup-con是查看保 存在NRAM里的配置文件信息。 2、路由器的配置信息全部加载在RAM里生效。路由器在启动过程中是将NRAM 的配置文件加载到RAM里生效的 第5章三层交换机基本配置 实验名称 三层交换机端口配置。 [实验目的] 配置开启三层交换机的三层功能,实现路由作用 [背景描述] 公司现有1台三层交换机,要求你进行测试,该交换机的三层功能是否工作正常 [技术原理 三层交换机是在二层交换的基础上实现了三层的路由功能。三层交换机基于“一次路 由,多次交换”的特性,在局域网环境中转发性能远远高于路由器。而且三层交换机同时 具备二层的功能,能够和二层的交换机进行很好的数据转发。三层交换机的以太网接口要 比一般的路由器多很多,更加适合多个局域网段之间的互联。 三层交换机的所有端口在默认情况下都属于二层端口,不具备路由功能。不能给物理 端口直接配置IP地址。但可以开启物理端口的三层路由功能
hostname RouterA 主机名 ! interface serial 1/2 interface serial 1/3 clock rate 64000 ! interface FastEthernet I/O ip address 192.168.1.1 255.255.255.O !F1/O 接口的 IP 地址 duplex auto speed auto interface FastEthernet 1/1 duplex auto speed auto interface Null 0 line con O line aux 0 line Vty O 4 1ogin end 【注意事项】 1、show running-config 是查看当前生效的配置信息。show startup-con 是查看保 存在 NVRAM 里的配置文件信息。 2、路由器的配置信息全部加载在 RAM 里生效。路由器在启动过程中是将 NVRAM 的配置文件加载到 RAM 里生效的。 第 5 章三层交换机基本配置 [实验名称] 三层交换机端口配置。 [实验目的] 配置开启三层交换机的三层功能,实现路由作用。 [背景描述] 公司现有 l 台三层交换机,要求你进行测试,该交换机的三层功能是否工作正常 [技术原理] 三层交换机是在二层交换的基础上实现了三层的路由功能。三层交换机基于“一次路 由,多次交换”的特性,在局域网环境中转发性能远远高于路由器。而且三层交换机同时 具备二层的功能,能够和二层的交换机进行很好的数据转发。三层交换机的以太网接口要 比一般的路由器多很多,更加适合多个局域网段之间的互联。 三层交换机的所有端口在默认情况下都属于二层端口,不具备路由功能。不能给物理 端口直接配置 IP 地址。但可以开启物理端口的三层路由功能