LAB3:PPPoE(ADSL的服务:Route As PPPoE's client):
STEP1:VPDN(虚拟拨号专网):
these vpdn commands are not needed with cisco ios software release 12.2(13)
sh ru 查看:
vpdn enable ;
no vpdn logging ;
!
vpdn-group pppoe ;
request-dialin ;
protocol pppoe ;
STEP2:internal ethernet network:
in e0 →ip add 192.168.1.1 255.255.255.0 →ip nat inside ;
STEP3:xDSL inteface (ADSL卡上的接口):
in ATM0 →no ip address →no atm ilmi-keepalive →dsl operation mode auto →bundle-enable →hold-queue 224 in (allthing were defaulted,不需要配);
STEP4:ATM sub-interface:
in ATM0.1 point-to-point →pvc 1/1 (VPI/VCI) →pppoe-client dial-pool-number 1 (将虚拟ATM子接口放入pool中) →pvc 1/1 is an example value,that must be changed →to match the value used by the isp ;
STEP5:IF Dial:
the pppoe client code ties into a dialer interface upon which a virtual-access interface is clound.
in dialer 1 →ip address negotiated(与ISP协商IP地址) →ip mtu 1492 (ethernet mtu default=1500 ;1492+PPPOE headers=1500) →ip nat outside →encapsulation ppp →dialer pool 1(去dialer pool 1 中,调用刚放入的ATM的子接口);
STEP6:认证(CHAP OR PAP):
the isp instruets you about the type of authentication to use.
PAP:ppp authentication ppp callin →ppp pap send-username username password password
CHAP:ppp authentication chap callin →ppp chap hostname username →ppp chap password password ;
STEP7:NAT:
access-list 1 permit 192.168.1.* 0.0.0.255 →ip nat inside source list 1 interface dialer1 overload →ip route 0.0.0.0 0.0.0.0 dialer1 →end 。