NAT和DHCP


涉及的命令

  • NAT

动态NAT清除:clear ip nat translation *

进入路由器环回接口:int loo 0

静态NAT清除:

(config)#No ip nat inside source static x.x.x.x x.x.x.x

(config-if)#No ip nat inside

(config-if)#No ip nat outside

  • DHCP

R1(config-router)# no auto-summary ;关闭路由的汇总功能

R2(config-router)# default-information originat ;

在思科网络中,不同的路由可以互相引入或叫导入。。
比如OSPF可以把RIP路由、eigrp路由获得的路由信息 导入OSPF中。。

不同的路由协议间可以互相导入。。。
其中有一个问题:
redistribute 命令,可以导入其他动态路由协议、直连路由、静态路由,但无法导入默认路由。
想导入默认路由必须要使用:default-information originate

copy running-config startup-config ; 运行配置复制到启动配置

配置路由器为DHCP客户端 ;在 G0/1 接口配置了 ip address dhcp

笔者记:

DHCP服务器的默认网关为LAN的网关。

DHCP中继IP是DHCP服务路由器的交界口的IP地址

猜你喜欢

转载自www.cnblogs.com/Coeus-P/p/9141684.html
今日推荐