⚠️关键点:两条外网接口都要配置出方向 Easy‑IP NAT;PPPoE 拨号接口使用 Dialer 逻辑口,不要直接用物理口做下一跳H3C。
Web 路径:策略 → 链路负载均衡 → 出站链路负载均衡
PPPoE 拨号先在【网络‑接口】配置好 Dialer1 拨号,账号密码填好,确保拨号成功、获取 IP。
192.168.1.0/24;
负载分担模式:策略‑接口NAT‑IPv4‑动态NAT校验:
display llb link‑info查看两条链路状态是否 up。
system‑view
# 1.专线接口
interface GigabitEthernet1/0/1
port link‑mode route
ip address 202.xx.xx.10 255.255.255.248
security‑zone untrust
quit
# 2.PPPoE拨号配置
interface GigabitEthernet1/0/2
pppoe‑client dial‑bundle‑number 1
quit
dialer‑group 1 rule ip permit
interface Dialer 1
dialer bundle enable
dialer‑group 1
ip address ppp‑negotiate
ppp chap user "pppoe账号"
ppp chap password simple "pppoe密码"
security‑zone untrust
dialer timer idle 0
dialer timer autodial 60
quit
# 内网接口
interface GigabitEthernet1/0/0
port link‑mode route
ip address 192.168.1.1 255.255.255.0
security‑zone trust
quit
acl basic 2000
rule permit source 192.168.1.0 0.0.0.255
quit
interface GigabitEthernet1/0/1
nat outbound 2000
quit
interface Dialer 1
nat outbound 2000
quit
示例:服务器
192.168.1.100‑200走专线;其余普通终端走拨号;链路故障自动回退另一条链路。
acl advanced 3000
rule permit ip source 192.168.1.100 0.0.0.127
quit
acl advanced 3001
rule permit ip source 192.168.1.0 0.0.0.255
quit
policy‑based‑route to‑internet permit node 10
if‑match acl 3000
apply next‑hop 202.xx.xx.1 #专线网关
apply default‑output‑interface Dialer 1 #专线故障,自动切拨号
quit
policy‑based‑route to‑internet permit node 20
if‑match acl 3001
apply output‑interface Dialer 1
apply default‑next‑hop 202.xx.xx.1 #拨号故障切专线
quit
#在内网入接口应用转发策略路由
interface GigabitEthernet1/0/0
ip policy‑based‑route to‑internet
quit
#设备本机访问外网,配置本地策略路由(防火墙本身ping外网)
ip local policy‑based‑route to‑internet
security‑policy
rule name trust‑untrust
source‑zone trust
destination‑zone untrust
source‑ip‑object 192.168.1.0 0.0.0.255
action pass
quit
apply next‑hop x.x.x.x,拨号获取的网关是动态的;使用apply output‑interface Dialer 1指定出接口H3C。display dialer 1 status #查看PPPoE拨号状态
display nat session table #查看NAT会话,确认流量从哪个接口转发
display policy‑based‑route statistics #策略路由命中统计
display llb link‑info #链路负载均衡链路状态
display security‑policy statistics ip
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论