「NAT和PAT」

定义内外网接口(config)#int 接口(config-if)#ip nat {inside|outside}静态NAT(config)#ip nat inside source static ip地址 静态PAT(config)#ip nat inside source static ip地址

使用ACL捕获流量(config)#access-list n permit ip地址 反掩码(config)#ip nat pool netmask 掩码TCP负载均衡(轮询转换)

(config)#ip nat pool netmask 掩码 type rotary动态NAT(config)#ip nat inside source list n pool 动态PAT(config)#ip nat inside source list n pool overload

查看转换项#show ip nat translations

「广域网PPP协议」

在串行口上的两台路由器都封装ppp协议(config)#int sx/x(config-if)#encapsulation ppp(config-if)#no shut

启用PAP认证,未加密认证方(config)#username password (config-if)#ppp authentication pap请求认证方(config-if)#ppp pap sent-username password


启用CHAP认证,安全加密认证方(config)#username password (config-if)#ppp authentication chap请求认证方(config)#username password (config-if)#ppp authentication chap

「帧中继」

无广播的多路访问网络(NBMA)

配置帧中继交换机关闭路由器路由功能(config)#no ip routing启用帧中继(config)#frame-relay switching进入串行接口R8(config)#int sx/x封装frame-relay协议R8(config-if)#encapsulation frame-relay指定lmi-type类型(config-if)#frame-relay lmi-type cisco指定intf-type接口类型为DCE(config-if)#frame-relay intf-type dce配置时钟频率(config-if)#clock rate n配置DLCI(config-if)#frame-relay route int

配置路由器,封装frame-relay协议(config-if)#encapsulation frame-relay静态指定映射(config-if)#frame-relay map ip 清除动态学到的Frame Relay #clear frame-relay-inarp查看映射#show frame-relay map调试#debug frame-relay lmi

点到多点(解决水平分割问题,划分子接口)

适用于全互联和部分互联(config)#int sx/x(config-if)#encapsulation frame-relay(config)#int sx/x.x multipoint关闭反向arp,禁止自学习DLCI号和IP对应,而采取静态Map(config-subif)#no frame-relay inverse-arp静态映射DLCI号和IP(config-subif)#frame-relay map ip broadcast如在R1上对R3 DLCI号103 IP地址192.168.1.3

最近更新