扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
路由器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 ?
<cr>
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
Router(config-if)#no shut
Router(config-if)#no shutdown
Router(config-if)#
Router(config-if)#
Router#conf
Router#configure
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface serial 0/0
Router(config-if)#ppp ?
authentication Set PPP link authentication method
pap Set PAP authentication parameters
Router(config-if)#ppp a
Router(config-if)#ppp authentication ch
Router(config-if)#ppp authentication chap
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to downRouter(config-if)#exit
Router(config)#ho
Router(config)#hostname 111
111(config)#enable password 112
111(config)#?
Configure commands:
access-list Add an access list entry
banner Define a login banner
boot Modify system boot parameters
cdp Global CDP configuration subcommands
clock Configure time-of-day clock
config-register Define the configuration register
crypto Encryption module
do To run exec commands in config mode
enable Modify enable password parameters
end Exit from configure mode
exit Exit from configure mode
hostname Set system's network name
interface Select an interface to configure
ip Global IP configuration subcommands
line Configure a terminal line
no Negate a command or set its defaults
router Enable a routing process
service Modify use of network based services
username Establish User Name Authentication
111(config)#username 221 p
111(config)#username 221 password 222
111(config)#
111(config)#
Router 1 配置:
--- 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
Router(config)#interface f
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip add
Router(config-if)#ip address 3.3.3.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 f
Router(config)#interface s
Router(config)#interface serial 0/0
Router(config-if)#ip add
Router(config-if)#ip address 2.2.2.2 255.0.0.0
Router(config-if)#no shut
Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0, changed state to up
Router(config-if)#exit
Router(config)#ip rou
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.2 255.0.0.0
Router(config-if)#nos hut
Router(config-if)#no shut
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#ip rou
Router(config)#ip route 1.1.1.0 255.0.0.0 s
Router(config)#ip route 2.2.2.0 255.0.0.0 serial 0/0
Router(config)#exit
%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 3.0.0.0/8 is directly connected, FastEthernet0/0
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)#no shut
Router(config-if)#no shutdown
Router(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
Router#
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)#ppp ?
authentication Set PPP link authentication method
pap Set PAP authentication parameters
Router(config-if)#ppp au
Router(config-if)#ppp authentication ?
chap Challenge Handshake Authentication Protocol <CHAP>
pap Password Authentication Protocol <PAP>
Router(config-if)#ppp authentication ch
Router(config-if)#ppp authentication chap
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#hos
Router(config)#hostname 221
221(config)#enable ?
password Assign the privileged level password
secret Assign the privileged level secret
221(config)#enable p
221(config)#enable password 222
221(config)#us
221(config)#username 111 ?
password Specify the password for the user
221(config)#username 111 pa
221(config)#username 111 password 112?
LINE
221(config)#username 111 password 112 ?
<cr>
221(config)#username 111 password 112
221(config)#
221(config)#
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者