本文共 10729 字,大约阅读时间需要 35 分钟。
autostart = False debug = 0 model = 7200 ghostios = True ghostsize = 128
[192.168.0.201] port = 7200 udp = 10000 workingdir = d:\Dynagen\workingdir\ADSL\
`7200` image = D:\Dynagen\IOS\c7200-adventerprisek9.124-9.T.bin ram = 256 rom = 8 nvram = 256 disk0 = 128 disk1 = 128 cnfg = None confreg = 0x2102 npe = npe-400 midplane = vxr mmap = True idlepc = 0x6027d1d0 exec_area = 64
`router r1` model = 7200 console = 2001 slot0 = PA-C7200-IO-2FE slot1 = PA-A1 F0/0 = r4 F0/0 A1/0 = A1 1 F0/1 = S1 3
`router r2` model = 7200 console = 2002 slot0 = PA-C7200-IO-2FE slot1 = PA-A1 F0/0 = S1 1 A1/0 = A1 2 F0/1 = S1 4
[192.168.0.202] port = 7200 udp = 10000 workingdir = d:\Dynagen\workingdir\ADSL\
`7200` image = D:\Dynagen\IOS\c7200-adventerprisek9.124-9.T.bin ram = 256 rom = 8 nvram = 256 disk0 = 128 disk1 = 128 cnfg = None confreg = 0x2102 npe = npe-400 midplane = vxr mmap = True idlepc = 0x6027d1d0 exec_area = 64
`router r3` model = 7200 console = 2003 slot0 = PA-C7200-IO-2FE F0/0 = S1 2 F0/1 = S1 5
`router r4` model = 7200 console = 2004 slot0 = PA-C7200-IO-2FE F0/1 = S1 6
`ATMSW A1` 1:1:100 = 2:2:200
`ethsw S1` 1 = access 1 2 = access 1 3 = access 2 4 = access 2 5 = access 2 6 = access 2 7 = access 2 NIO_gen_eth:\Device\NPF_{DBEF0266-9DEF-4087-BDF5-7333989C73AB}
R1:
interface FastEthernet0/0 no ip address no ip route-cache duplex auto speed auto bridge-group 1 ! interface ATM1/0 no ip address no ip route-cache atm ilmi-keepalive bridge-group 1 pvc 1/100 encapsulation aal5snap !
R2:
interface FastEthernet0/0 no ip address no ip route-cache duplex auto speed auto bridge-group 1 ! interface ATM1/0 no ip address no ip route-cache atm ilmi-keepalive bridge-group 1 pvc 2/200 encapsulation aal5snap !
R4:
username sys privilege 15 password 0 sys
bba-group pppoe global virtual-template 1 ! interface Loopback0 ip address 10.0.0.1 255.255.255.0 ! interface FastEthernet0/0 no ip address duplex auto speed auto pppoe enable ! interface Virtual-Template1 ip unnumbered Loopback0 peer default ip address pool sys ppp authentication pap callout ! ip local pool sys 10.0.0.10 10.0.0.20
R3:
interface FastEthernet0/0 no ip address duplex auto speed auto pppoe enable pppoe-client dial-pool-number 1 ! interface Dialer1 ip address negotiated encapsulation ppp dialer pool 1 dialer-group 1 ppp authentication chap pap callin ppp pap sent-username sys password 0 sys !
ip route 0.0.0.0 0.0.0.0 Dialer1
Jan 21 10:25:35.339: %DIALER-6-BIND: Interface Vi1 bound to profile Di1 Jan 21 10:25:35.495: %LINK-3-UPDOWN: Interface Virtual-Access1, changed state to up R3# Jan 21 10:25:39.083: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access1, changed state to upR3#sh ip int bri Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES NVRAM up up FastEthernet0/1 192.168.0.213 YES NVRAM up up Virtual-Access1 unassigned YES unset up up Dialer1 10.0.0.10 YES IPCP up up
R3#sh ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
10.0.0.0/32 is subnetted, 2 subnets C 10.0.0.10 is directly connected, Dialer1 C 10.0.0.1 is directly connected, Dialer1 C 192.168.0.0/24 is directly connected, FastEthernet0/1 S* 0.0.0.0/0 is directly connected, Dialer1
R3#ping 10.0.0.1
Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 160/183/212 ms
R3#debug dialer events
R3#debug ppp negotiation
Jan 21 10:58:59.475: %LINK-3-UPDOWN: Interface Dialer1, changed state to up Jan 21 10:59:02.875: %DIALER-6-BIND: Interface Vi1 bound to profile Di1 Jan 21 10:59:02.883: Vi1 PPP: Phase is DOWN, Setup Jan 21 10:59:02.887: Vi1 PPP: Using dialer call direction Jan 21 10:59:02.891: Vi1 PPP: Treating connection as a callout Jan 21 10:59:02.891: Vi1 PPP: Session handle[C000000D] Session id[0] Jan 21 10:59:02.895: Vi1 PPP: Phase is ESTABLISHING, Active Open Jan 21 10:59:02.895: Vi1 PPP: No remote authentication for call-out Jan 21 10:59:02.899: Vi1 LCP: O CONFREQ [Closed] id 1 len 10 Jan 21 10:59:02.899: Vi1 LCP: MagicNumber 0x0235CBFE (0x05060235CBFE) Jan 21 10:59:02.911: %LINK-3-UPDOWN: Interface Virtual-Access1, changed state to up Jan 21 10:59:02.915: Vi1 DDR: Dialer statechange to up Jan 21 10:59:03.199: Vi1 LCP: I CONFACK [REQsent] id 1 len 10 Jan 21 10:59:03.199: Vi1 LCP: MagicNumber 0x0235CBFE (0x05060235CBFE) Jan 21 10:59:04.839: Vi1 LCP: I CONFREQ [ACKrcvd] id 2 len 18 Jan 21 10:59:04.839: Vi1 LCP: MRU 1492 (0x010405D4) Jan 21 10:59:04.839: Vi1 LCP: AuthProto PAP (0x0304C023) Jan 21 10:59:04.839: Vi1 LCP: MagicNumber 0x033600FD (0x0506033600FD) Jan 21 10:59:04.839: Vi1 LCP: O CONFNAK [ACKrcvd] id 2 len 8 Jan 21 10:59:04.839: Vi1 LCP: MRU 1500 (0x010405DC) Jan 21 10:59:04.871: Vi1 LCP: Timeout: State ACKrcvd Jan 21 10:59:04.871: Vi1 LCP: O CONFREQ [ACKrcvd] id 2 len 10 Jan 21 10:59:04.871: Vi1 LCP: MagicNumber 0x0235CBFE (0x05060235CBFE) Jan 21 10:59:04.991: Vi1 LCP: I CONFREQ [REQsent] id 3 len 18 Jan 21 10:59:04.995: Vi1 LCP: MRU 1500 (0x010405DC) Jan 21 10:59:04.995: Vi1 LCP: AuthProto PAP (0x0304C023) Jan 21 10:59:04.995: Vi1 LCP: MagicNumber 0x033600FD (0x0506033600FD) Jan 21 10:59:04.995: Vi1 LCP: O CONFACK [REQsent] id 3 len 18 Jan 21 10:59:04.995: Vi1 LCP: MRU 1500 (0x010405DC) Jan 21 10:59:04.995: Vi1 LCP: AuthProto PAP (0x0304C023) Jan 21 10:59:04.995: Vi1 LCP: MagicNumber 0x033600FD (0x0506033600FD) Jan 21 10:59:05.015: Vi1 LCP: I CONFACK [ACKsent] id 2 len 10 Jan 21 10:59:05.019: Vi1 LCP: MagicNumber 0x0235CBFE (0x05060235CBFE) Jan 21 10:59:05.019: Vi1 LCP: State is Open Jan 21 10:59:05.023: Vi1 PPP: Phase is AUTHENTICATING, by the peer Jan 21 10:59:05.023: Vi1 PAP: Using hostname from interface PAP Jan 21 10:59:05.027: Vi1 PAP: Using password from interface PAP Jan 21 10:59:05.027: Vi1 PAP: O AUTH-REQ id 1 len 12 from "sys" Jan 21 10:59:05.395: Vi1 PAP: I AUTH-ACK id 1 len 5 Jan 21 10:59:05.399: Vi1 PPP: Phase is FORWARDING, Attempting Forward Jan 21 10:59:05.403: Vi1 PPP: Phase is ESTABLISHING, Finish LCP Jan 21 10:59:05.403: Vi1 PPP: Phase is UP Jan 21 10:59:05.407: Vi1 IPCP: O CONFREQ [Closed] id 1 len 10 Jan 21 10:59:05.407: Vi1 IPCP: Address 0.0.0.0 (0x030600000000) Jan 21 10:59:05.411: Vi1 CDPCP: O CONFREQ [Closed] id 1 len 4 Jan 21 10:59:05.415: Vi1 PPP: Process pending ncp packets Jan 21 10:59:05.419: Vi1 IPCP: I CONFREQ [REQsent] id 1 len 10 Jan 21 10:59:05.423: Vi1 IPCP: Address 10.0.0.1 (0x03060A000001) Jan 21 10:59:05.423: Vi1 IPCP: O CONFACK [REQsent] id 1 len 10 Jan 21 10:59:05.427: Vi1 IPCP: Address 10.0.0.1 (0x03060A000001) Jan 21 10:59:05.531: Vi1 IPCP: I CONFNAK [ACKsent] id 1 len 10 Jan 21 10:59:05.535: Vi1 IPCP: Address 10.0.0.10 (0x03060A00000A) Jan 21 10:59:05.535: Vi1 IPCP: O CONFREQ [ACKsent] id 2 len 10 Jan 21 10:59:05.539: Vi1 IPCP: Address 10.0.0.10 (0x03060A00000A) Jan 21 10:59:05.575: Vi1 LCP: I PROTREJ [Open] id 4 len 10 protocol CDPCP (0x820701010004) Jan 21 10:59:05.579: Vi1 CDPCP: State is Closed Jan 21 10:59:05.579: Vi1 CDPCP: State is Listen Jan 21 10:59:05.723: Vi1 IPCP: I CONFACK [ACKsent] id 2 len 10 Jan 21 10:59:05.727: Vi1 IPCP: Address 10.0.0.10 (0x03060A00000A) Jan 21 10:59:05.727: Vi1 IPCP: State is Open Jan 21 10:59:05.731: Di1 IPCP: Install negotiated IP interface address 10.0.0.10 Jan 21 10:59:05.743: Di1 IPCP: Install route to 10.0.0.1 Jan 21 10:59:05.743: Vi1 DDR: dialer protocol up Jan 21 10:59:05.747: Vi1 IPCP: Add link info for cef entry 10.0.0.1 Jan 21 10:59:06.403: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access1, changed state to up
R4:
ppp authentication pap callout
R3:
ppp authentication pap callin ppp pap sent-username sys password 0 sys
R4:
ppp authentication chap callout
R3:
ppp authentication chap callin ppp chap hostname sys ppp chap password 0 sys
Jan 21 16:29:47.578: Vi1 PPP: Phase is AUTHENTICATING, by the peer Jan 21 16:29:47.706: Vi1 CHAP: I CHALLENGE id 1 len 23 from "R4" Jan 21 16:29:47.718: Vi1 CHAP: Using hostname from interface CHAP Jan 21 16:29:47.718: Vi1 CHAP: Using password from interface CHAP Jan 21 16:29:47.718: Vi1 CHAP: O RESPONSE id 1 len 24 from "sys" Jan 21 16:29:47.898: Vi1 CHAP: I SUCCESS id 1 len 4 Jan 21 16:29:47.902: Vi1 PPP: Phase is FORWARDING, Attempting Forward Jan 21 16:29:47.906: Vi1 PPP: Phase is ESTABLISHING, Finish LCP Jan 21 16:29:47.906: Vi1 PPP: Phase is UP