ppp&hdlc的综合配置
精选 转载路由器的配置如下:
rta:
Press Enter to Start
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host rta
rta(config)#int s0 //hdlc的配置
rta(config-if)#clock rate 64000
rta(config-if)#ip add 1.1.1 .1 255.255.255.252
rta(config-if)#encapsulation hdlc
rta(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
%LINK-3-UPDOWN: Interface Serial0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
%LINK-3-UPDOWN: Interface Serial0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
rta(config-if)#end
rta#ping 1.1.1 .2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1 .2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
rta#conf t
Enter configuration commands, one per line. End with CNTL/Z.
rta(config)#int s1 //无认证的配置
rta(config-if)#ip add 1.1.1 .5 255.255.255.252
rta(config-if)#clock rate 148000
rta(config-if)#encapsulation ppp
rta(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial1, changed state to up
%LINK-3-UPDOWN: Interface Serial1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down
%LINK-3-UPDOWN: Interface Serial1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to up
rta(config-if)#end
rta#ping 1.1.1 .6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1 .6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
rta#conf t
Enter configuration commands, one per line. End with CNTL/Z.
rta(config)#username rtd password 123
rta(config)#int s2 //ppp with chap认证的配置
rta(config-if)#ip add 1.1.1 .9 255.255.255.252
rta(config-if)#clock rate 64000
rta(config-if)#encapsulation ppp
rta(config-if)#ppp authentication chap
rta(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial2, changed state to up
%LINK-3-UPDOWN: Interface Serial2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2, changed state to down
%LINK-3-UPDOWN: Interface Serial2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2, changed state to up
rta(config-if)#end
rta#ping 1.1.1 .10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1 .10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
rtb:
Press Enter to Start
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host rtb
rtb(config)#int s0
rtb(config-if)#ip add 1.1.1 .2 255.255.255.252
rtb(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
rtb(config-if)#end
rtb#ping 1.1.1 .1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1 .1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
rtc:
Press Enter to Start
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host rtc
rtc(config)#username rtd password cisco
rtc(config)#int s1 ///ppp with pap认证的配置
rtc(config-if)#ip add 1.1.1 .13 255.255.255.252
rtc(config-if)#clock rate 148000
rtc(config-if)#encapsulation ppp
rtc(config-if)#ppp authentication pap
rtc(config-if)#ppp pap sent-username rtc password cisco
rtc(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial1, changed state to up
%LINK-3-UPDOWN: Interface Serial1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down
%LINK-3-UPDOWN: Interface Serial1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to up
rtc(config-if)#end
rtc#ping 1.1.1 .14
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1 .14, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
rtc#conf t
Enter configuration commands, one per line. End with CNTL/Z.
rtc(config)#int s0
rtc(config-if)#ip add 1.1.1 .6 255.255.255.252
rtc(config-if)#encapsulation ppp
rtc(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
rtc(config-if)#end
rtc#ping 1.1.1 .5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1 .5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
rtd:
Press Enter to Start
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host rtd
rtd(config)#username rtc password cisco
rtd(config)#int s0
rtd(config-if)#ip add 1.1.1 .14 255.255.255.252
rtd(config-if)#encapsulation ppp
rtd(config-if)#ppp authentication pap
rtd(config-if)#ppp pap sent-username rtd password cisco
rtd(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
rtd(config-if)#
rtd(config-if)#end
rtd#ping 1.1.1 .13
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1 .13, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
rtd#
rtd#conf t
Enter configuration commands, one per line. End with CNTL/Z.
rtd(config)#username rta password 123
rtd(config)#int s1
rtd(config-if)#ip add 1.1.1 .10 255.255.255.252
rtd(config-if)#encapsulation ppp
rtd(config-if)#ppp authentication chap
rtd(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial1, changed state to up
rtd(config-if)#end
rtd#ping 1.1.1 .9
注:其中包括了测试通不通的脚本,在配置好一个接口最好就测试一下,免得到最后再一起测试的时候没法应用你给路由器的配置,也就是还没有生效。在配置的时候千万要注意username和password要一致。
上一篇: 路由器的安全
下一篇:IBGP 的水平分割规则
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
ppp&hdlc的综合配置
在配置好一个接口最好就测试一下,
职场 ppp 休闲 chap&pap hdlc -
HDLC和PPP链路的配置技术 Cisco
配置要求: 1:在R1和R2之间的链路使用HDLC封装技术; 2:在R2的R3之间的链路使用PP
HDLC链路的配置技术 PPP链路的配置技术 Cisco 封装 R3 -
Ethernet II、PPP、HDLC 协议分析以太网 IP协议
-
网络基础篇之HDLC、PPP(原理)
主要讲解HDLC、PPP、PPPoE等协议
字段 ip地址 网络