官方配置没有 快速配置上网选项 怎么拨号上网
拨号上网
(0)
最佳答案
您好,请知:
可参考如下PPPOE客户端的配置举例:
Router和Firewall之间通过各自的GigabitEthernet0/1接口相连,要求Router用PAP/CHAP方式认证Firewall。
图2-11 PPPoE Client典型配置组网图
(1) 方案一:PAP认证
· 配置Router作为PPPoE Server
# 增加一个PPPoE用户。
<Router> system-view
[Router] local-user user2
[Router-luser-user2] password simple hello
[Router-luser-user2] service-type ppp
[Router-luser-user2] quit
# 配置虚拟模板参数。
[Router] interface virtual-template 1
[Router-Virtual-Template1] ppp authentication-mode pap
[Router-Virtual-Template1] ip address 1.1.1.1 255.0.0.0
[Router-Virtual-Template1] remote address 1.1.1.2
[Router-Virtual-Template1] quit
# 配置PPPoE Server。
[Router] interface gigabitethernet 0/1
[Router-GigabitEthernet0/1] pppoe-server bind virtual-template 1
· 配置Firewall作为PPPoE Client
<Firewall> system-view
[Firewall] dialer-rule 1 ip permit
[Firewall] interface dialer 1
[Firewall-Dialer1] dialer user user2
[Firewall-Dialer1] dialer-group 1
[Firewall-Dialer1] dialer bundle 1
[Firewall-Dialer1] ip address ppp-negotiate
[Firewall-Dialer1] ppp pap local-user user2 password simple hello
[Firewall-Dialer1] quit
# 配置PPPoE会话。
[Firewall] interface gigabitethernet 0/1
[Firewall-GigabitEthernet0/1] pppoe-client dial-bundle-number 1
(2) 方案二:CHAP认证
· 配置Router作为PPPoE Server
# 增加一个PPPoE用户。
<Router> system-view
[Router] local-user user2
[Router-luser-user2] password simple hello
[Router-luser-user2] service-type ppp
[Router-luser-user2] quit
# 配置虚拟模板参数。
[Router] interface virtual-template 1
[Router-Virtual-Template1] ppp authentication-mode chap
[Router-Virtual-Template1] ppp chap user user1
[Router-Virtual-Template1] ip address 1.1.1.1 255.0.0.0
[Router-Virtual-Template1] remote address 1.1.1.2
[Router-Virtual-Template1] quit
# 配置PPPoE Server。
[Router] interface gigabitethernet 0/1
[Router-GigabitEthernet0/1] pppoe-server bind virtual-template 1
· 配置Firewall作为PPPoE Client
<Firewall> system-view
[Firewall] dialer-rule 1 ip permit
[Firewall] interface dialer 1
[Firewall-Dialer1] dialer user user2
[Firewall-Dialer1] dialer-group 1
[Firewall-Dialer1] dialer bundle 1
[Firewall-Dialer1] ip address ppp-negotiate
[Firewall-Dialer1] ppp chap user user2
[Firewall-Dialer1] quit
[Firewall] local-user user1
[Firewall-luser-user1] password simple hello
[Firewall-luser-user1] quit
# 配置PPPoE会话。
[Firewall] interface gigabitethernet 0/1
[Firewall-GigabitEthernet0/1] pppoe-client dial-bundle-number 1
防火墙上涉及到的物理端口需加入安全域并放通安全策略或域间策略。
(0)
1、拨号+动态分配地址配置,
2、连线:1/0/1 接宽带;1/0/2 接电脑,电脑即可自动获取ip,接交换机也行
sys
dialer-group 1 rule ip permit
int dialer 1
mtu 1492
dialer bundle enable
dialer-group 1
ip address ppp-negotiate
dialer timer idle 0
dialer timer autodial 60
ppp chap user zhangsan //zhangsan为拨号账户例子,请按实际填写
ppp chap password simple 123456 //123456为拨号密码,请按实际填写
ppp pap local-user zhangsan password simple 123456 //再次输入拨号账号和密码,请按实际填写
ppp ipcp dns admit-any
ppp ipcp dns request
nat outbound
qu
ip route-static 0.0.0.0 0.0.0.0 Dialer 1
int g1/0/1
des WAN
pppoe-client dial-bundle-number 1
tcp mss 1452
qu
int g1/0/2
des LAN
ip add 192.168.2.1 24
tcp mss 1452
qu
dhcp enable
dhcp server ip-pool lan1
network 192.168.2.0 mask 255.255.255.0
gateway-list 192.168.2.1
dns-list 119.29.29.29
qu
sa f
(1)
暂无评论
一个办法是升级版本到最新,最新版本支持pppoe
或者通过命令来配置:
假设通过2口连接光猫
dialer-group 1 rule ip permit
interface dialer 1
dialer bundle enable
dialer-group 1
ip address ppp-negotiate
ppp ipcp dns admit-any
ppp ipcp dns request
dialer timer idle 0
ppp chap password simple 拨号密码
ppp chap user 拨号账号
ppp pap Local-user 拨号账号 password simple 拨号密码
tcp mss 1024
nat outbound
quit
interface GigabitEthernet 1/0/2
pppoe-client dial-bundle-number 1
quit
ip route-static 0.0.0.0 0 dialer 1
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论