思科2811路由器的配置命令!
发布网友
发布时间:2022-04-20 17:46
我来回答
共1个回答
热心网友
时间:2023-07-24 01:59
vpdn enable
vpdn-group 1
request-dialin
protocol pppoe、l2tp协议也行
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
ppp chap hostname test
ppp chap 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
检查一下拨号配置是否成功:
R0#show int dialer 1 //查看虚拟拨号口1的状态