当前位置:文档之家› Cisco路由器的ADSL modem配置详解

Cisco路由器的ADSL modem配置详解

Cisco路由器的ADSL modem配置详解你还在为Cisco路由器的ADSL modem配置详解而烦恼么?不用担心,接下来是小编为大家收集的Cisco路由器的ADSL modem配置详解,欢迎大家阅读:Cisco路由器的ADSL modem配置详解具体的方法路由器接入ADSL配置详解1、Cisco路由器连接ADSL modem的PPPoE配置:说明:此案例为北京电信adsl PPPoE接入,需要使用一个普通adsl modem和一台cisco 2500路由器(双以太口),IOS 12.2(15)T,能够实现局域网共享上网.此案例配置共分7步:第一步:配置vpdn vpdn e1、Cisco路由器连接ADSL modem的PPPoE配置:说明:此案例为北京电信adsl PPPoE接入,需要使用一个普通adsl modem和一台cisco 2500路由器(双以太口),IOS 12.2(15)T,能够实现局域网共享上网.此案例配置共分7步:第一步:配置vpdnvpdn enable(启用路由器的虚拟专用拨号网络---d)vpdn-group office(建立一个vpdn组,)request-dialin(初始化一个d tunnel,建立一个请求拨入的vpdn子组,)protocol pppoe(vpdn子组使用pppoe建立会话隧道)第二步: 配置路由器连接adsl modem的接口interface Ethernet1no ip addresspppoe enable允许以太接口运行pppoepppoe-client dial-pool-number 1将以太接口的pppoe 拨号客户端加入拨号池1第三步:配置逻辑拨号接口:interface Dialer1ip address negotiated从adsl服务商动态协商得到ip地址ip nat outside为该接口启用NATencapsulation ppp为该接口封装ppp协议dialer pool 1该接口使用1号拨号池进行拨号dialer-group 1该命令对于pppoe是意义不大的ppp authentication pap callin启用ppp pap验证ppp pap sent-username xxxxxxx password 0 yyyyyyy 使用已经申请的用户名和口令第四步:配置内部网络接口interface Ethernet0(内部网络接口)ip address 10.1.1.1 255.255.255.0ip nat inside为该接口启用NAT第五步:配置路由器为内部网络主机提供dhcp服务ip dhcp excluded-address 10.1.1.1ip dhcp pool ABCimport all(导入dns和wins server)network 10.1.1.0 255.255.255.0default-router 10.1.1.1第六步:配置NAT:access-list 1 permit 10.1.1.0 0.0.0.255cc第七步:配置缺省路由ip route 0.0.0.0 0.0.0.0 Dialer12、Cisco路由器连接ADSL WIC卡之PPPoE配置解:!vpdn enableno vpdn logging <=由于ADSL的PPPoE应用是通过虚拟拨号来实现的所以在路由器中需要使用VPDN的功能!vpdn-group pppoe <=为PPPoE启动了VPDN的进程request-dialinprotocol pppoe <=设置拨号协议为PPPoE!interface FastEthernet0 <=设置公司内部网络地址ip address 192.168.0.1 255.255.255.0ip nat inside <=为启用NAT转换,设置Fast ethernet 端口为内部网络,从内部网络收到的数据的原地址转换为公网地址!interface ATM0/0 <=设置ADSL端口no ip address <=请不要设置地址no atm ilmi-keepalivebundle-enabledsl operating-mode autohold-queue 224 ininterface ATM0/0.1 point-to-point <=ADSL的通讯依靠VC,所以必须设定点到点VCpvc 8/81 <=设置PVC的相关参数,即VCI和VPI的值,如果不清楚请向局端查询pppoe-client dial-pool-number 1 <=PPPoE拨号进程使用了常规的拨号进程,这里引用了dialer-pool 1!interface Dialer1 <=建立一个虚拟拨号端口ip address negotiated <=由于局端提供动态地址,所以必须设定地址为协商获得ip mtu 1492 <=修改mtu值以适用于ADSL网络ip nat outside <=为启用NAT转换,设置该端口为外部网络encapsulation ppp <=使用PPP的帧格式dialer pool 1ppp authentication pap callin <=设置拨号的验证方式为papppp pap sent vip pass vip <=发送用户名和密码ip nat inside source list 1 interface Dialer1 overload <=设置了NAT的转换方式,使用了dialer 1端口的动态地址!ip classlessip route 0.0.0.0 0.0.0.0 dialer1 <=将所有不可路由的数据报转发给ADSL线路,设定缺省路由no ip http server!access-list 1 permit 192.168.0.0 0.0.0.255-------------------------------------Cisco路由器连接ADSL modem的PPPoE配置:hostname bjsite!ip subnet-zerono ip domain-lookup!vpdn enableno vpdn logging!vpdn-group 1request-dialinprotocol pppoe!interface Ethernet0/0ip address 192.168.0.1 255.255.255.0 ip nat insideno ip mroute-cache!!!!interface Ethernet0/1no ip addresspppoe enablepppoe-client dial-pool-number 1 !interface Dialer1ip address negotiatedip nat outsideip mtu 1492encapsulation pppno ip mroute-cachedialer pool 1dialer-group 1ppp authentication papppp pap sent-username dg48907653@163.gd password xxxxxxxx!ip classlessno ip http server!dialer-list 1 protocol ip permitip nat inside source list 1 interface Dialer1 overload ip route 0.0.0.0 0.0.0.0 dialer1access-list 1 permit 192.168.0.0 0.0.0.255!line con 0exec-timeout 0 0transport input noneline vty 0 4login!endCisco路由器连接ADSL WIC卡之PPPoE配置:vpdn-group pppoerequest-dialin!--- we are the PPPoE client requesting to establish !--- a session with the aggregation unit (6400 NRP). protocol pppoe!!--- internal Ethernet network.!interface FastEthernet0ip address 10.92.1.182 255.255.255.0 ip nat inside!--- DSL interface.!interface ATM0no ip addressno atm ilmi-keepalivebundle-enabledsl operating-mode autohold-queue 224 in!--- All defaults.!--- PPPoE runs on top of AAL5SNAP, but the!--- encap aal5snap command is not used.!interface ATM0.1 point-to-pointpvc 1/1pppoe-client dial-pool-number 1!--- pvc 1/1 is an example value that must be changed !--- to match the value used by the ISP.!!--- The PPPoE client code ties into a dialer interface upon!--- which a virtual-access interface is cloned.!interface Dialer1ip address negotiatedip mtu 1492!--- Ethernet MTU default = 1500 (1492 + PPPoE headers = 1500)ip nat outsideencapsulation pppdialer pool 1!--- Ties to atm interface.ppp authentication chap callinppp chap hostname <username> ppp chap password <password>!!--- The ISP will instruct you regarding!--- the type of authentication to use.!--- To change from PPP CHAP to PPP PAP, !--- replace the following three lines:!--- ppp authentication chap callin!--- ppp chap hostname <username>!--- ppp chap password <password>!--- with the following two lines:!--- ppp authentication pap callin!--- ppp pap sent-username <username> password <password>!--- For NAT we are going to overload on the Dialer1!--- interface and add a default route out!--- since dialer ip address can change.ip nat inside source list 1 interface Dialer1 overloadip classlessip route 0.0.0.0 0.0.0.0 dialer1no ip http server!access-list 1 permit 10.92.1.0 0.0.0.255 ------------------------------------------- 用cisco路由器做PPPoE Server端配置enconf thostname Adsl_walkbirdusername walkbird password walkbird vpdn enablevpdn-group pppoeaccept-dialinprotocol pppoevirtual-template 1exitexitinterface ethernet 0/0pppoe enableno shutdowninterface virtual-template 1mtu 1492 //PPP头部最大传输单元ip unnumbered loopback //借用地址peer default ip address pool pppoe_ip_poolencapsulation pppppp authentication papexitip local pool pppoe_ip_pool 11.11.11.10 11.11.11.100 interface lookback0ip address 1.1.1.1 255.255.255.0no shutdownexit三、实验测试sh ip routesh ip int briefdebug pppoe eventsh ip int dialer 1看了“Cisco路由器的ADSL modem配置详解”还想看:1.了解Cisco路由器的ADSL modem实现上网设置2.d link路由器怎么设置3.怎么设置cisco 2500路由器ADSL接入4.思科路由器接入ADSL怎么配置5.思科路由器连接ADSL怎么配置PPPoE。

相关主题