电信、联通双线上网配置

本文档详细介绍了如何配置电信与联通双线路的网络连接,包括接口设置、区域划分、NAT策略、端口映射、路由配置以及会话链路状态检查的关闭,确保设备能够同时使用两条线路进行稳定上网。

1:配置接口

interface GigabitEthernet0/0/1
 description DianXin
 ip address 222.177.xxx.xxx 255.255.255.224

interface GigabitEthernet0/0/2
 description LianTong
 ip address 113.204.xxx.xxx 255.255.255.240

interface GigabitEthernet0/0/3
 description lan
 ip address 1.1.1.1 255.255.255.248

 

2:配置zone,双线不能在同一个zone

trust
 priority is 85
 interface of the zone is (2):
    GigabitEthernet0/0/0
    GigabitEthernet0/0/3

untrust
 priority is 5
 interface of the zone is (1):
    GigabitEthernet0/0/1 //电信

untrust1
 priority is 6
 interface of the zone is (1):
    GigabitEthernet0/0/2  //联通


3:配置nat池和源nat配置

nat address-group 1 dianxin 222.177.xxx.xxx 222.177.xxx.xxx
nat address-group 2 liantong 113.204.xxx.xxx 113.204.xxx.xxx

nat-policy interzone trust untrust outbound
 policy 1
 action source-nat
 address-group dianxin

nat-policy interzone trust untrust1 outbound
 policy 1
 action source-nat
 address-group liantong

4:配置端口映射

nat server 0 protocol tcp global 113.204.xxx.xxx www inside 192.168.100.6 www no-reverse

nat server 45 protocol tcp global 222.177.xxx.xxx 6000 inside 192.168.100.3 6000 no-reverse

5:配置一条电信默认路由和多条网通静态路由

ip route-static 0.0.0.0 0.0.0.0 222.177.xxx.xxx
ip route-static 1.1.1.8 255.255.255.248 1.1.1.2
ip route-static 58.16.0.0 255.255.0.0 113.204.65.81
ip route-static 58.17.0.0 255.255.128.0 113.204.65.81
ip route-static 58.17.128.0 255.255.128.0 113.204.65.81
ip route-static 58.18.0.0 255.255.0.0 113.204.65.81
ip route-static 58.19.0.0 255.255.0.0 113.204.65.81
ip route-static 58.20.0.0 255.255.0.0 113.204.65.81
ip route-static 58.21.0.0 255.255.0.0 113.204.65.81

静态路由表下载地址:
http://www.h3c.com.cn/Service/Software_Download/Router/Catalog/ER/ER_WAN/200911/655278_30005_0.htm

6:关闭会话链路状态检查

undo firewall session link-state check

7:包过滤默认允许所有

firewall packet-filter default permit all

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值