思科路由拨号上网设置方法
发布时间:2019-08-20 03:45:12 阅读:1161
注意:ISP和客户端相连的端口需要启用PPPOE、PPPOE enable、no ip address
ISP路由器配置如下:
vpdn enable
vpdn-group 1
accept-dialin
protocol pppoe
virtual-template 1 (调用虚拟模板1,类似环回口)
interfere F0/0
no ip add
pppoe enable
interface virtual-template 1
ip unnumbered loopback 0(借用还回口地址)
peer default ip address pool cisco
en ppp
ppp authentication pap(chap)
ip local pool cisco 202.1.1.2 202.1.1.10
username test password test
客户路由器配置步骤:
vpdn enable
vpdn-group 1
request-dialin
protocol pppoe
1.配置一个出口
interface E0/1
no ip address
pppoe enable
pppoe-client dial-pool-number 1
2.定义一个虚拟拨号口
interface dialer0
ip address negotiated
en ppp
dial pool 1
dial-group 1
ip mtu 1492
ppp authentication pap callin
ppp pap sent-username test password test
3.配置PAT
interface e0/0
ip nat inside
int dialer0
ip nat outside
access-list 1 permit 192.168.1.0 0.0.0.255
ip nat inside source list 1 interface dialer0 overload
4.配置DHCP
ip dhcp pool ADSL
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
5.配置静态路由
ip route 0.0.0.0 0.0.0.0 dialer0
ISP路由器配置如下:
vpdn enable
vpdn-group 1
accept-dialin
protocol pppoe
virtual-template 1 (调用虚拟模板1,类似环回口)
interfere F0/0
no ip add
pppoe enable
interface virtual-template 1
ip unnumbered loopback 0(借用还回口地址)
peer default ip address pool cisco
en ppp
ppp authentication pap(chap)
ip local pool cisco 202.1.1.2 202.1.1.10
username test password test
客户路由器配置步骤:
vpdn enable
vpdn-group 1
request-dialin
protocol pppoe
1.配置一个出口
interface E0/1
no ip address
pppoe enable
pppoe-client dial-pool-number 1
2.定义一个虚拟拨号口
interface dialer0
ip address negotiated
en ppp
dial pool 1
dial-group 1
ip mtu 1492
ppp authentication pap callin
ppp pap sent-username test password test
3.配置PAT
interface e0/0
ip nat inside
int dialer0
ip nat outside
access-list 1 permit 192.168.1.0 0.0.0.255
ip nat inside source list 1 interface dialer0 overload
4.配置DHCP
ip dhcp pool ADSL
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
5.配置静态路由
ip route 0.0.0.0 0.0.0.0 dialer0