全国计算机考试四级网络工程师复习考点总结3——路由器配置命令_计算机网络复习总结

2020-02-28 其他工作总结 下载本文

全国计算机考试四级网络工程师复习考点总结3——路由器配置命令由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“计算机网络复习总结”。

1、进入特权模式 enable

router > enable

router #

2、进入全局配置模式 configure terminal

router > enable

router #configure terminal

router(conf)#

3、交换机命名 hostname routera 以routerA为例

router > enable

router #configure terminal

router(conf)#hostname routerA

routera(conf)#

4、配置使能口令 enable paword cisco 以cisco为例router > enable

router #configure terminal

router(conf)#hostname routerA

routerA(conf)# enable paword cisco5、配置使能密码 enable secret ciscolab 以cicsolab为例router > enable

router #configure terminal

router(conf)#hostname routerA

routerA(conf)# enable secret ciscolab6、进入路由器某一端口 interface fastehernet 0/17 以17端口为例router > enable

router #configure terminal

router(conf)#hostname routerA

routerA(conf)# interface fastehernet 0/17

routerA(conf-if)#

进入路由器的某一子端口 interface fastethernet 0/17.1 以17端口的1子端口为例router > enable

router #configure terminal

router(conf)#hostname routerA

routerA(conf)# interface fastehernet 0/17.17、设置端口ip地址信息

router > enable

router #configure terminal

router(conf)#hostname routerA

routerA(conf)# interface fastehernet 0/17 以17端口为例

routerA(conf-if)#ip addre 192.168.1.1 255.255.255.0 配置交换机端口ip和子网掩码

routerA(conf-if)#no shut 是配置处于运行中

routerA(conf-if)#exit8、查看命令 show

router > enable

router # show version 察看系统中的所有版本信息

show interface vlan 1 查看交换机有关ip 协议的配置信息

show running-configure 查看交换机当前起作用的配置信息

show interface fastethernet 0/1 察看交换机1接口具体配置和统计信息

show mac-addre-table 查看mac地址表

show mac-addre-table aging-time 查看mac地址表自动老化时间

show controllers serial + 编号 查看串口类型

show ip router 查看路由器的路由表

9、路由器telnet远程登录设置

router>enable

router #configure terminal

router(conf)#hostname routerA

routerA(conf)#enable paword cisco 以cisco为特权模式密码

routerA(conf)#interface fastethernet 0/1 以17端口为telnet远程登录端口routerA(conf-if)#ip addre 192.168.1.1 255.255.255.0

routerA(conf-if)#no shut

routerA(conf-if)#exit

routerA(conf)line vty 0 4 设置0-4 个用户可以telnet远程登陆

routerA(conf-line)#login

routerA(conf-line)#paword edge 以edge为远程登录的用户密码

10、配置串口参数

两台路由器通过串口连接需要一个做为DTE,一个做为DCE。DCE设备要向DTE设备提供时钟频率和带宽。

DCE配置:

router>enable

router #configure terminal

router(conf)#hostname routerA

routerA(conf)#interface serial 0/0

routerA(conf_if)#clock rate 64000 提供时钟频率为64000

routerA(conf_if)#bandwidth 64 提供带宽为6

4DTE配置:路由器串口配置ip地址

router>en

router #configure terminal

router(conf)#hostname routerB

routerB(conf)#interface serial 0/0

routerB(conf_if)#ip addre 192.168.1.1 255.255.255.011、静态路由的配置

配置路由器A的主机名和接口参数

router>enable

router#configure terminal

router(conf)#hostname routerA

routerA(conf)#interface fastethernet 0/1 路由器A的1端口为两路由器的连接端口routerA(conf-if)#ip addre 192.168.2.1 255.255.255.0

routerA(conf-if)#no shutdown

routerA(conf-if)#exit

routerA(conf)# interface fastethernet 0/0 路由器A的0端口为与主机的连接端口routerA(conf-if)#ip addre 192.168.1.2 255.255.255.0

routerA(conf-if)#no shutdown

配置路由器A的静态路由表

routerA(conf)#ip router 192.168.3.0 255.255.255.0 192.168.2.2在routerA上配置默认路由

routerA(conf)#ip route 0.0.0.0 0.0.0.0 192.168.2.2

routerA(conf)#ip clale

在routerA上配置动态路由(RIP)

routerA(conf)#router rip

routerA(conf)#network 192.168.1.0

routerA(conf)#network 192.168.2.012、动态路由的配置

router>enable

router#configure terminal

routerA(config)#route ospf 10配置ospf进程id

routerA(config-router)#network 192.168.0.0 0.0.0.255 area 013、访问控制列表配置

router(config-if)#ip acce-group 1 in访问列表的入

router(config-if)#ip acce-group 1 out访问列表的出

router(config)#acce-list 1 premit 192.168.10.0 0.0.0.255允许192.168.10.0的网段通过router(config)#acce-list 1 deny 192.168.10.0 2.0.0.255拒绝192.168.10.2的主机通过

router(config)#acce-list 1 premit anyany表示0.0.0.0 255.255.255.255 router(config)#acce-list 1 premit host 172.30.16.29host表示0.0.0.0

router(config)#acce-list 101 deny tcp 172.16.4.0 0.0.0.255 172.16.3.0 0.0.0.255 eq

21拒绝来自172.16.4.0去往172.16.3.0的FTP流量

router(config)#ip acce-list extended cisco创建名为cisco的命名访问控制列表 特别注意:

1、当目的网络不可达时,路由表的跳数显示为162、Bandwidth的带宽戴维为kbps3、encapsulation表示封装

4、pos接口的帧格式使用SDH:pos framing sdh5、配置ospf协议发布直连网段时会用的是反掩码

6、划分子网的时候需要子网掩码

《全国计算机考试四级网络工程师复习考点总结3——路由器配置命令.docx》
将本文的Word文档下载,方便收藏和打印
推荐度:
全国计算机考试四级网络工程师复习考点总结3——路由器配置命令
点击下载文档
相关专题 计算机网络复习总结 考试 命令 四级 计算机网络复习总结 考试 命令 四级
[其他工作总结]相关推荐
    [其他工作总结]热门文章
      下载全文