设备信息如下,在接口配置界面没有看到相关的ADSL的拨号功能选项。
设备信息如下,在接口配置界面没有看到相关的ADSL的拨号功能选项。
(0)
最佳答案
将1/0/3设置为外网接口并设置拨号连接。
# 配置拨号访问组1以及对应的拨号访问控制条件。
<H3C>system-view
[H3C]dialer-group 1 rule ip permit
# 在Dialer1接口上使能共享DDR。
[H3C]interface dialer 1
[H3C-Dialer1]dialer bundle enable
# 将Dialer1接口与拨号访问组1关联。
[H3C-Dialer1]dialer-group 1
# 配置Dialer1接口通过协商获取IP地址。
[H3C-Dialer1]ip address ppp-negotiate
[H3C-Dialer1]ppp ipcp dns admit-any
[H3C-Dialer1]ppp ipcp dns request
# 配置PPPoE Client工作在永久在线模式。
[H3C-Dialer1]dialer timer idle 0
# 配置本地以CHAP方式认证时发送的CHAP用户名和密码和以PAP方式认证时发送的CHAP用户名和密码
[H3C-Dialer1]ppp chap password simple 123456
[H3C-Dialer1]ppp chap user hz123456
[H3C-Dialer1]ppp pap Local-user hz123456 password simple 123456
[H3C-Dialer1]tcp mss 1024
[H3C-Dialer1]quit
# 配置PPPoE会话与1/0/3端口绑定。
[H3C]interface GigabitEthernet 1/0/3
[H3C-GigabitEthernet1/0/3]pppoe-client dial-bundle-number 1
[H3C-GigabitEthernet1/0/3]quit
#配置内网接口为1/0/4接口并指定IP地址为192.168.10.1。
[H3C]interface GigabitEthernet 1/0/4
[H3C-GigabitEthernet1/0/4] ip address 192.168.10.1 255.255.255.0
[H3C-GigabitEthernet1/0/4] quit
#进入Dialer 1拨号接口配置NAT动态地址转换。
[H3C]interface dialer 1
[H3C-Dialer1]nat outbound
[H3C-Dialer1]quit
#配置默认路由,指向拨号的虚接口dialer 1。
[H3C]ip route-static 0.0.0.0 0 dialer 1
#将1/0/3、Dia1接口加入Untrust区域。
[H3C]security-zone name Untrust
[H3C-security-zone-Untrust]import interface GigabitEthernet 1/0/3
[H3C-security-zone-Untrust]import interface dialer 1
[H3C-security-zone-Untrust]quit
#将1/0/4内网接口加入Trust区域。
[H3C]security-zone name Trust
[H3C-security-zone-Trust]import interface GigabitEthernet 1/0/4
[H3C-security-zone-Trust]quit
#创建对象策略pass。
[H3C]object-policy ip pass
[H3C-object-policy-ip-pass] rule 0 pass
[H3C-object-policy-ip-pass]quit
创建Trust到Untrust域的域间策略调用pass策略。
[H3C]zone-pair security source Trust destination Untrust
[H3C-zone-pair-security-Trust-Untrust]object-policy apply ip pass
[H3C-zone-pair-security-Trust-Untrust]quit
#创建Trust到Local域的域间策略调用pass策略。
[H3C]zone-pair security source Trust destination Local
[H3C-zone-pair-security-Trust-Local]object-policy apply ip pass
[H3C-zone-pair-security-Trust-Local]quit
#创建Local到Trust域的域间策略调用pass策略。
[H3C]zone-pair security source Local destination Trust
[H3C-zone-pair-security-Local-Trust]object-policy apply ip pass
[H3C-zone-pair-security-Local-Trust]quit
#创建Local到Untrust域的域间策略调用pass策略。
[H3C]zone-pair security source Local destination Untrust
[H3C-zone-pair-security-Local-Untrust]object-policy apply ip pass
[H3C-zone-pair-security-Local-Untrust]quit
#开启DHCP服务并指定动态下发的地址以及网关等参数。
[H3C]dhcp enable
[H3C]dhcp server ip-pool 1
[H3C-dhcp-pool-1]network 192.168.10.0 mask 255.255.255.0
[H3C-dhcp-pool-1]gateway-list 192.168.10.1
[H3C-dhcp-pool-1]dns-list 114.114.114.114 8.8.8.8
[H3C-dhcp-pool-1]quit
注:DNS服务器地址优先设置当地运营商提供的DNS服务器地址,如果没有提供可以设置114.114.114.114或8.8.8.8等DNS服务器地址。
(0)
您好,我1/0/3口是专线IP,我这边是想配置一条拨号线路做备用,所以我想配置1/0/4口做pppoe拨号上网,后面在此接口下做一个NAT,动态转换所有AP,网络环境很简单,就是核心---防火墙。请问怎么配置?
内网也是做了DHCP的
<H3C>display current-configuration # version 5.20, Release 5142 # sysname H3C # clock timezone Beijing add 08:00:00 # ftp server enable # undo voice vlan mac-address 00e0-bb00-0000 # interzone policy default by-priority # nat address-group 10 42.48.104.140 42.48.104.140 level 1 nat address-group 20 10.67.225.248 10.67.225.248 level 1 nat address-group 30 183.214.125.70 183.214.125.70 level 1 # domain default enable system # telnet server enable # qos carl 16 source-ip-address subnet 192.168.16.1 24 per-address # undo alg dns undo alg rtsp undo alg h323 undo alg sip undo alg sqlnet undo alg pptp undo alg ils undo alg nbt undo alg msn undo alg qq undo alg tftp undo alg sccp undo alg gtp # session synchronization enable # password-recovery enable # acl number 2000 rule 10 permit source 192.168.0.0 0.0.255.255 rule 30 deny acl number 2010 rule 20 permit source 192.168.16.0 0.0.0.255 rule 30 deny # vlan 1 # domain system access-limit disable state active idle-cut disable self-service-url disable # pki domain default crl check disable # user-group system group-attribute allow-guest # local-user admin password cipher $c$3$rqvXc+8OWYOQX1HOJW2/hgfD8WiZPTnGpTeEcAGObf8= authorization-attribute level 3 service-type telnet service-type web # ssl server-policy default pki-domain default # interface NULL0 # interface GigabitEthernet0/0 port link-mode route nat server protocol tcp global 10.77.57.22 50001 inside 192.168.16.17 50001 ip address 192.168.0.1 255.255.255.0 # interface GigabitEthernet0/1 port link-mode route nat outbound 2000 address-group 10 shutdown ip address 42.48.104.140 255.255.255.192 # interface GigabitEthernet0/2 port link-mode route ip address 192.168.97.1 255.255.255.0 qos car inbound carl 16 cir 2048 cbs 128000 ebs 0 green pass red discard qos car outbound carl 16 cir 2048 cbs 128000 ebs 0 green pass red discard # interface GigabitEthernet0/3 port link-mode route nat outbound 2000 address-group 30 nat server protocol tcp global 183.214.125.70 34567 inside 192.168.24.11 34567 nat server protocol tcp global 183.214.125.70 8011 inside 192.168.24.11 www nat server protocol tcp global 183.214.125.70 34568 inside 192.168.24.12 34568 nat server protocol tcp global 183.214.125.70 8012 inside 192.168.24.12 www nat server protocol tcp global 183.214.125.70 34569 inside 192.168.24.13 34569 nat server protocol tcp global 183.214.125.70 8013 inside 192.168.24.13 www nat server protocol tcp global 183.214.125.70 34570 inside 192.168.24.14 34570 nat server protocol tcp global 183.214.125.70 8014 inside 192.168.24.14 www nat server protocol tcp global 183.214.125.70 34571 inside 192.168.24.15 34571 nat server protocol tcp global 183.214.125.70 8015 inside 192.168.24.15 www ip address 183.214.125.70 255.255.255.252 # interface GigabitEthernet0/4 port link-mode route # interface GigabitEthernet0/5 port link-mode route # vd Root id 1 # zone name Management id 0 priority 100 import interface GigabitEthernet0/0 zone name Local id 1 priority 100 zone name Trust id 2 priority 85 import interface GigabitEthernet0/2 zone name DMZ id 3 priority 50 zone name Untrust id 4 priority 5 import interface GigabitEthernet0/1 import interface GigabitEthernet0/3 import interface GigabitEthernet0/4 import interface GigabitEthernet0/5 switchto vd Root zone name Management id 0 ip virtual-reassembly zone name Local id 1 ip virtual-reassembly zone name Trust id 2 ip virtual-reassembly zone name DMZ id 3 ip virtual-reassembly zone name Untrust id 4 ip virtual-reassembly interzone source Management destination Management rule 0 permit source-ip any_address destination-ip any_address service any_service rule enable interzone source Management destination Local rule 0 permit source-ip any_address destination-ip any_address service any_service rule enable interzone source Untrust destination Trust rule 0 permit source-ip any_address destination-ip any_address service any_service rule enable # ip route-static 0.0.0.0 0.0.0.0 GigabitEthernet0/3 183.214.125.69 ip route-static 53.90.146.0 255.255.255.0 GigabitEthernet0/3 10.67.225.249 ip route-static 53.90.154.0 255.255.255.0 GigabitEthernet0/3 10.67.225.249 ip route-static 192.168.0.0 255.255.0.0 GigabitEthernet0/2 192.168.97.2 # ip https ssl-server-policy default ip https enable # load xml-configuration # load tr069-configuration # user-interface con 0 user-interface vty 0 4 authentication-mode scheme # return
如果其他端口已配置外网固定IP,新增一个端口配置PPPOE, 1、配置拨号并和需要的端口绑定 2、配置拨号的nat转换 3、默认路由增加一条 4、将拨号端口加入untrust 5、其他的策略,参考固定IP的相关策略即可
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
如果其他端口已配置外网固定IP,新增一个端口配置PPPOE, 1、配置拨号并和需要的端口绑定 2、配置拨号的nat转换 3、默认路由增加一条 4、将拨号端口加入untrust 5、其他的策略,参考固定IP的相关策略即可