路由器ppp协议配置和认证:
Router 0 的配置:
--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!
Router>en
Router>enable
Router#conf
Router#configure
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int
Router(config)#interface f
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip add
Router(config-if)#ip address 2.2.2.1 255.0.0.0
Router(config-if)#no shut
Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#int
Router(config)#interface s
Router(config)#interface serial 0/0
Router(config-if)#ip add
Router(config-if)#ip address 1.1.1.1 255.0.0.0
Router(config-if)#nos hut
Router(config-if)#no shut
Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0, changed state to down
Router(config-if)#
Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0, changed state to up
Router(config-if)#exit
Router(config)#ip rout
Router(config)#ip route 3.3.3.0 255.0.0.0 s
Router(config)#ip route 3.3.3.0 255.0.0.0 serial 0/0
Router(config)#nos hut
Router(config)#no shut
Router(config)#end
%SYS-5-CONFIG_I: Configured from console by console
Router#show ip rou
Router#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP i - IS-IS, 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 not set
C 2.0.0.0/8 is directly connected, FastEthernet0/0
Router#ping 3.3.3.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.2, timeout is 2 seconds: .....
Success rate is 0 percent (0/5)
Router#conf
Router#configure
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int
Router(config)#interface s
Router(config)#interface serial 0/0
Router(config-if)#en
Router(config-if)#encapsulation ?
frame-relay Frame Relay networks
hdlc Serial HDLC synchronous
ppp Point-to-Point protocol
Router(config-if)#encapsulation ppp ?
Router(config-if)#encapsulation ppp
Router(config-if)#?
bandwidth Set bandwidth informational parameter
cdp CDP interface subcommands
clock Configure serial interface clock
delay Specify interface throughput delay
description Interface specific description
encapsulation Set encapsulation type for an interface
exit Exit from interface configuration mode
frame-relay Set frame relay parameters
ip Interface Internet Protocol config commands
keepalive Enable keepalive
no Negate a command or set its defaults
ppp Point-to-Point Protocol
shutdown Shutdown the selected interface
Router(config-if)#no shut
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#int
Router(config)#interface s
Router(config)#interface serial 0/0
Router(config-if)#cl
Router(config-if)#clock ?
rate Configure serial interface clock speed
Router(config-if)#clock r
Router(config-if)#clock rate 64000
Router(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to upnoshut