文章目录
局域网路由器配置
POS接口配置
路由协议配置
静态路由配置
DHCP配置
考点1:静态ip—ip route
局域网内部路由器 #ip route 目的地址(一般为0.0.0.0) 子网掩码(一般为0.0.0.0) 下一跳路由器地址
局域网外部路由器 #ip route 局域网ip地址 局域网子网掩码 下一跳路由器地址
考点2:CRC校验—crc 32/16
考点3:带宽—bandwidth
1 Gbps = 1000 Mbps = 1000000/106 Kbps
10
G
b
p
s
=
10000000
K
b
p
s
(
7
个
0
)
\color{red}{10~Gbps = 10000000~Kbps(7个0)}
10 Gbps=10000000 Kbps(7个0)
考点4:接口ip地址—ip address
POS:#ip address 接口ip地址 接口子网掩码
lookback:#ip address 接口ip地址 255.255.255.255(特定主机ip必须采用该子网掩码)
考点5:帧格式—pos framing sdh/sonet
考点6:帧格式—pos flag
sonet:#pos flag s1s0 0
sdh:#pos flag s1s0 2
考点7:lease
#lease 天 小时 分钟
考点8:OSPF—network/area 0 range
#network 局域网网络地址 局域网反子网掩码 area 区域号(一般为0)
#area 区域号(一般为0) range 局域网网络地址 局域网子网掩码
考点9:OSPF—router ospf
#router ospf 进程号(一般是63)
考点10:DHCP配置
创建地址池:#ip dhcp pool IP地址池名
配置地址池:#network 网络地址 子网掩码/前缀
排除地址:#ip dhcp excluded-address 排除地址/保留地址起始地址 排除地址结束地址
配置网关:#default-router 网关/路由器ip地址
配置DNS服务器:#dns-server address dns服务器ip地址列表
配置地址租期:lease 天 小时 分钟(或infin无限时间)
//POS接口配置
Router-R3#configuration terminal
Router-R3(config)#interface pos3/1
Router-R3(config-if)#description To CERNET
Router-R3(config-if)#bandwidth 10000000 //带宽
Router-R3(config-if)#ip address 201.204.83.2 255.255.255.252 //配置路由器ip地址
Router-R3(config-if)#crc 32/64 //CRC检验
Router-R3(config-if)#pos framing sdh/sonet //帧格式
Router-R3(config-if)#no ip directed-broadcast
Router-R3(config-if)#pos flag s1s0 0/2
Router-R3(config-if)#no shutdown
Router-R3(config-if)#exit
Router-R3(config)#
//路由协议配置
Router-R3(config)#router ospf 63
Router-R3(config-router)#redistribute connected metric-type 1 subnets
Router-R3(config-router)#network area 0
Router-R3(config-router)#default-information originate always
Router-R3(config-router)#area 0 range
Router-R3(config-router)#exit
Router-R3(config)#ip route 0.0.0.0 0.0.0.0 201.204.83.1 //静态路由配置