必胜高考网 > 计算机类 > 计算机等级 > 资讯 >

2015年计算机四级网工考试:路由器配置命令(2)

时间: 家辉2 资讯

  21、配置高速同步串行接口

  Router (config) # interface s1/1

  Router (config-if) # description To-shenzhen

  Router (config-if) # bandwidth 2048

  Router (config-if) # ip address 212.112.41.81 255.255.255.252

  Router (config-if) # encapsulation hdlc

  Router (config-if) # no ip directed-broadcast

  Router (config-if) # no ip proxy-arp

  22、配置POS接口

  Router (config) # interface POS3/0

  Router (config-if) # description To TianJingDaXue

  Router (config-if) # bandwidth 2500,000

  Router (config-if) # ip address 212.12.37.18 255.255.255.252

  Router (config-if) # crc 32

  Router (config-if) # pos framing sdh

  Router (config-if) # no ip directed-broadcast

  Router (config-if) # pos flag s1 s0 2

  23、loopback 接口的配置

  Router (config) # int loopback 0

  Router (config-if) # ip address 192.167.167.6 255.255.255.255

  Router (config-if) # no ip route-cache

  Router (config-if) # no ip mroute-cache

  24、配置静态路由

  Router (config) # ip route 195.65.96.0 255.255.240.0 222.112.37.1(静态路由的配置)

  25、进入RIP配置模式

  Router (config) # router rip

  26、设置参与RIP协议的网络地址

  Router (config-router) # network 159.105.0.0

  27、配置RIP的被动接口

  Router (config-router) # passive-interface ethernet 0

  28、配置RIP的路由过滤

  Router (config) # access-list 12 deny any

  Router (config) # router rip

  Router (config-router) # distribute-list 12 in ethernet0

  29、配置RIP的管理距离

  Router (config-router) # distance 50

  30、配置RIP的邻居路由器

  Router (config-router) # neighbor 202.112.7.2

  31、配置单个IP地址参与OSPF

  Router (config) # router ospf 63

  Router (config-router) # network 131.107.25.1 0.0.0.0 area 0

  32、网络地址参与OSPF

  Router (config-router) # network 133.181.0.0 0.0.255.255 area 0

  33、定义参与OSPF的子网地址

  Router (config-router) # area 0 range 212.37.123.0 255.255.255.0

  34、配置被动接口(包括路由器和第三层交换机的配置)

  Router (config-router) # passive-interface Ethernet 0

  Router (config-router) # passive-interface vlan37

  35、配置路由过滤

  Router (config) # access-list 12 deny any

  Router (config) # router ospf 63

  Router (config-router) # distribute-list 12 in serial 0

  36、配置管理距离

  Router (config-router) # distance 10

  37、配置OSPF引入外部路由的花费值

  Router (config-router) # redistribute metric 100

  38、配置引入外部路由时缺省的标记值

  Router (config-router) # redistribute tag 10

  39、配置引入外部路由时缺省的外部路由类型

  Router (config-router) # redistribute connected metric-type 1 subnets

  40、配置IP地址池的名称

  Router (config) # ip dhcp pool ttt/234

56746