发布网友 发布时间:2022-04-22 00:02
共1个回答
热心网友 时间:2024-03-01 02:07
是需要这个吗?
ADSL拨号 路由器配置 vpdn enable --------------------------------------------进入vpdn
vpdn-group 1 --------------------------------------------调用vpdn
request-dealin --------------------------------------------请求分配
protocol pppoe --------------------------------------------定义PPPOEinterface f0/0 --------------------------------------------进入f0/0端口
ip address 10.1.1.1 255.255.255.0 --------------------------------配ip地址
ip nat inside --------------------------------------------定义为转换的内接口
no shut --------------------------------------------启用端口interface f0/1 --------------------------------------------进入f0/1端口
no ip address --------------------------------------------不配ip地址
pppoe enable --------------------------------------------启用pppoe
pppoe-client dial-pool-number 1 ---------------------------------------pppoe客户的拨号池 号
no shut --------------------------------------------启用端口
interface dialer 1 --------------------------------------------进入拨号端口 1
ip address negotiated --------------------------------------------ip地址自动协商
ip mtu 1492 --------------------------------------------最大传输单元1492k
ip nat outside --------------------------------------------定义为转换的外接口
encapsulation ppp --------------------------------------------封装ppp协议
dialer pool 1 --------------------------------------------建立拨号池 1
dialer-group 1 --------------------------------------------调用拨号池
ppp authentication pap callin -------------------------------------ppp认证
ppp pap sent-username ********* password ****** -----------------------ppp认证上网的用户名,密码
ip classless --------------------------------------------************************
ip route 0.0.0.0 0.0.0.0 dialer 1 ------------------------------------路由所有网络到拨号池 1
ip route192.168.0.0 255.255.0.0 10.1.1.2--------------------------------
ip nat inside source list 1 interface dialer 1 overload ------------加载到Dialer 1
access-list 1 permit any --------------------------------------------允许所有网络通过
ADSL拨号 交换机配置
interface FastEthernet0/2 --------------------------------------------进入端口F0/2 no switchport -------------------------------------------- ip address 10.1.1.2 255.255.0.0----------------------------------------配置IP地址
ip route 0.0.0.0 0.0.0.0 10.1.1.1我自己做的一个文档,也是刚学。看能用的上不