怎样配置拨号网络连接
- 提问者网友:太高姿态
- 2021-05-16 08:01
- 五星知识达人网友:迷人又混蛋
- 2021-05-16 09:13
服务端的配置:
vpdn enable
vpdn-group group_name
accept-dialin /允许拨号接入
protocol pppoe
virtual-template template_number /调用虚拟模板
username username password 0 password
interface loopback 0
ip address address mask
interface fastethernet 0/0
pppoe enable /和客户端连接的接口启用PPPOE
interface virtual-tempate template_number /创建被调用的模板
ip unnumbered loopback 0
peer default ip address pool pool_name /调用本地地址池
encapsulation ppp /封装成PPP协议
ppp authentation chap /启用chap验证
ip local pool pool_name start_address end_address
如果用路由器当客户端,配置如下:
vpdn enable
vpdn-group group_name
request-dialin
protocol pppoe
!
!
interface fastethernet 0/0
pppoe enable
pppoe-client dial-pool-number 1
!
!
interface dialer 0
ip address negotiated
encapsulation ppp
dialer pool pool_number
ppp chap hostname username
ppp chap password 0 password
!
!
ip route 0.0.0.0 0.0.0.0 dialer 0