H3C WAP712C 想当路由器用,pppoe能获取公网地址,但不能上网怎么办?有没有详细点的宽带拨号上网的教程步骤
(0)
最佳答案
本案例介绍如何通过命令行给WAP722S配置pppoe拨号上网。
假设WAP722S以太网口连接上层,可以直连运营商:
上联地址 |
网关 |
DNS |
pppoe拨号获取 |
---------- |
114.114.114.114 |
内网网段 |
内网网关 |
DNS |
192.168.0.0/24 |
192.168.0.50/24 |
114.114.114.114 |
AP发射无线信号,让无线终端连接wifi:psktest,并获取192.168.0.0/24网段上网,网关是vlan1口地址192.168.0.50,DNS服务器地址为114.114.114.114,vlan2作为外网拨号口获得上层设备下发的ip。
外网ip vlan2:dialer口拨号获取
内网ip vlan1:192.168.0.50/24
# 创建vlan2,将物理GigabitEthernet 1/0/1口加入vlan2,配置外网ip地址。
注意:该GigabitEthernet 1/0/1不接电脑,否则会导致电脑无法继续登录管理设备
[H3C]vlan 2
[H3C-vlan2]port GigabitEthernet 1/0/1
[H3C-vlan2]quit
# pppoe创建dialer拨号口,用户名:admin,密码:12345678
提示:标红字体为帐号,蓝色字体为密码
[H3C] dialer-rule 1 ip permit
[H3C]interface Dialer 1
[H3C-Dialer1]link-protocol ppp
[H3C-Dialer1]ppp chap user admin
[H3C-Dialer1]ppp chap password simple 12345678
[H3C-Dialer1]ppp pap local-user admin password simple 12345678
[H3C-Dialer1]ppp ipcp dns request
[H3C-Dialer1]ppp ipcp dns admit-any
[H3C-Dialer1]ip address ppp-negotiate
[H3C-Dialer1]dialer user username
[H3C-Dialer1]mtu 1492
[H3C-Dialer1]tcp mss 1024
[H3C-Dialer1]dialer-group 1
[H3C-Dialer1]dialer bundle 1
[H3C-Dialer1]quit
# 配置将拨号口绑定到外网虚拟三层接口
[H3C]interface Vlan-interface2
[H3C-Vlan-interface2]pppoe-client dial-bundle-number 1
[H3C-Vlan-interface2]quit
目的地址和掩码都是0.0.0.0,出接口是拨号口Dialer1
[H3C]ip route-static 0.0.0.0 0.0.0.0 Dialer1
[H3C]interface Dialer 1
[H3C-Dialer1]nat outbound
[H3C-Dialer1]quit
名字是1,分配192.168.0.0/24网段,分配网关和DNS服务器地址,网关是192.168.0.50,DNS服务器地址是114.114.114.114,实现给内网无线客户端下发ip和dns。
[H3C]dhcp enable
[H3C]dhcp server ip-pool 1
[H3C-dhcp-pool-1] network 192.168.0.0 24
[H3C-dhcp-pool-1] gateway-list 192.168.0.50
[H3C-dhcp-pool-1] dns-list 114.114.114.114
[H3C-dhcp-pool-1] quit
# 开启端口安全功能,创建Bss口设置无线密码12345678和无线客户端所在VLAN1。
[H3C]port-security enable
[H3C]interface wlan-bss 1
[H3C-WLAN-BSS1]port-security port-mode psk
[H3C-WLAN-BSS1]port-security preshared-key pass-phrase simple 12345678
[H3C-WLAN-BSS1]port-security tx-key-type 11key
[H3C-WLAN-BSS1]port access vlan 1
[H3C-WLAN-BSS1]quit
[H3C]interface wlan-bss 2
[H3C-WLAN-BSS2]port-security port-mode psk
[H3C-WLAN-BSS2]port-security preshared-key pass-phrase simple 12345678
[H3C-WLAN-BSS2]port-security tx-key-type 11key
[H3C-WLAN-BSS2]port access vlan 1
[H3C-WLAN-BSS2]quit
# 设置无线服务模板,设置SSID为psktest并启用。
[H3C]wlan service-template 1 crypto
[H3C-wlan-st-1]ssid psktest
[H3C-wlan-st-1]security-ie rsn
[H3C-wlan-st-1]cipher-suite ccmp
[H3C-wlan-st-1]authentication-method open-system
[H3C-wlan-st-1]service-template enable
[H3C-wlan-st-1]quit
# 进入无线radio口绑定服务模板。
[H3C]interface wlan-radio1/0/1
[H3C-WLAN-Radio1/0/1]service-template 1 interface wlan-bss 1
[H3C]interface wlan-radio1/0/2
[H3C-WLAN-Radio1/0/2]service-template 1 interface wlan-bss 2
[H3C-WLAN-Radio1/0/2]quit
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论