首页/网络/网络设备配置速查/PPPoE 拨号出口的 Easy IP(动态地址复用)
NAT 与出口31 条

PPPoE 拨号出口的 Easy IP(动态地址复用)

宽带拨号拿到动态公网地址后,用 Easy IP 让内网整体复用拨号口地址上网;三厂都是 NAT 引用出接口 + 拨号口的组合,关键是选对出接口。

网络设备配置速查网络更新于 2026-10-12
场景PPPoE/动态地址宽带出口
适用三厂路由器拨号场景
命令族NAT 出接口引用 Dialer 接口(等价 Easy IP)

华为 VRP

华为 VRP
acl number 2000
 rule 5 permit source 192.168.1.0 0.0.0.255
interface Dialer1
 nat outbound 2000          # 引用拨号接口即复用其动态地址
display nat outbound

思科 IOS

思科 IOS
access-list 1 permit 192.168.1.0 0.0.0.255
interface Dialer1
 ip nat outside
!
ip nat inside source list 1 interface Dialer1 overload
show ip nat translations

H3C Comware

H3C Comware
acl basic 2000
 rule 0 permit source 192.168.1.0 0.0.0.255
interface Dialer1
 nat outbound 2000
display nat outbound
差异:思科必须显式把内外接口标成 ip nat inside/outside;华为/H3C 只在出接口配 nat outbound。地址池方式在拨号场景不可靠——重拨换地址就会断流,Easy IP 才是常态做法。

易错点

  • 把 nat outbound 配在物理 WAN 口而不是 Dialer 接口上,拨号场景取不到地址会导致 NAT 完全不生效

数据来源与参考

  • 华为 VRP NAT 出接口地址转换(Easy IP)
  • Cisco IOS NAT overload 配置
  • H3C Comware Easy IP 配置

相关工具

​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌