思科模拟 实验十五:路由器的基本配置命令 | 您所在的位置:网站首页 › 路易吉洋馆3攻略8楼宝石 › 思科模拟 实验十五:路由器的基本配置命令 |
一、实验目的 掌握路由器的基本配置命令 二、实验描述 主要实验内容如下: 1.配置路由器的名字 2.配置路由器的enable、secret、console、vty的密码 3.接口IP地址的配置及时钟 三、实验拓扑 四、实验设备 1.R2811 1台 2.PC 1台 五、实验步骤 第1步:配置主机名 Router>enable Router#config terminal Route(config)#hostname R1 第2步:配置路由器的密码 R1(config)#enable password jsj1 R1(config)#enalbe secret jsj2 R1(config)#line console 0 R1(config-line)#password jsj3 R1(config-line)#login R1(config-line)#exit R1(config)#line vty 0 4 R1(config-line)#password jsj4 R1(config-line)#login R1(config-line)#exit R1(config)#service password-encryption 第3步:配置banner信息 R1(config)#banner motd # Enter TEXT message. End with the character '#'. Welcome to jsj414 R1 -Authorized users only.# 验证配置: Press RETURN to get started! Welcome to jsj414 R1 -Authorized users only. User Access Verification Password: 第4步:配置接口IP,接口描述及串口时钟 R1(config)#int s1/0 R1(config-if)#ip add 11.1.1.1 255.255.255.0 R1(config-if)#description s1/0 is DCE R1(config-if)#clock rate 64000 R1(config-if)#no shutdown 验证配置: R1#show interfaces serial 1/0 Serial1/0 is down, line protocol is down (disabled) Hardware is HD64570 Description: s1/0 is DCE Internet address is 11.1.1.1/24 MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input never, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/0/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 no buffer Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 packets output, 0 bytes, 0 underruns 0 output errors, 0 collisions, 2 interface resets 0 output buffer failures, 0 output buffers swapped out 0 carrier transitions DCD=down DSR=down DTR=down RTS=down CTS=down 第5步:配置一个环回接口 R1(config)#int loopback 0 R1(config-if)#ip add 11.2.2.2 255.255.255.0 第6步:保存配置文件 R1#copy running-config startup-config (或R1#write memory) Destination filename [startup-config]? Building configuration... [OK] 第7步:常用的show命令 R1#show ip interface brief R1#show interfaces R1#show running-config R1#show startup-config R1#show veision |
CopyRight 2018-2019 实验室设备网 版权所有 |