虚 拟 通 道

 一、配置isp

[isp]int g0/0/0
[isp-GigabitEthernet0/0/0]ip address 2.2.2.1 24
[isp-GigabitEthernet0/0/0]int lo0
[isp-LoopBack0]ip add 5.5.5.1 24
[isp-LoopBack0]q
[isp]int s 4/0/0
[isp-Serial4/0/0]ip add 1.1.1.2 24
[isp-Serial4/0/0]int s 4/0/1
[isp-Serial4/0/1]ip add 4.4.4.1 24
[isp-Serial4/0/1]int s 3/0/0
[isp-Serial3/0/0]ip add 3.3.3.1 24
 

  二、R1和R5之间使用ppp的pap认证,R5为主认证方 

[r1-aaa]local-user admin password cipher 123456
[r1-aaa]local-user admin service-type ppp
[r1-aaa]q
[r1]int s 4/0/0
[r1-Serial4/0/0]ppp authentication-mode pap
[isp-Serial4/0/0]ppp pap local-user admin password cipher 123456

重启接口

[isp-Serial4/0/0]shutdown 
[isp-Serial4/0/0]undo shutdown 
[isp-Serial4/0/0]display this
[V200R003C00]
#
interface Serial4/0/0
 link-protocol ppp
 ppp pap local-user admin password cipher %$%$eE@"Qv)rRE#J/PI_'F/M,"Pb%$%$
 ip address 1.1.1.2 255.255.255.0 
#
return

三、R2和R5之间使用ppp的chap认证,R5为主认证方

[r2-Serial4/0/0]ppp chap user admin
[r2-Serial4/0/0]ppp chap password cipher 123456
[isp]int s4/0/1
[isp-Serial4/0/1]ppp authentication-mode chap

重启接口

 
[isp-Serial4/0/1]shutdown 
[isp-Serial4/0/1]undo shutdown 

四、R3和R5使用HDLC封装 

[r3-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Sep 19 2022 17:04:36-08:00 r3 %%01IFNET/4/CHANGE_ENCAP(l)[2]:The user performed 
the configuration that will change the encapsulation protocol of the link and th
en selected Y. 
[isp-Serial3/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Sep 19 2022 17:05:43-08:00 isp %%01IFNET/4/CHANGE_ENCAP(l)[3]:The user performed
 the configuration that will change the encapsulation protocol of the link and t
hen selected Y. 

 五、R1、R4之间为点到点的GRE 

[r1]int t 0/0/0
[r1-Tunnel0/0/0]ip add 192.168.3.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre
[r1-Tunnel0/0/0]shutdown
[r1-Tunnel0/0/0]source 1.1.1.1
[r1-Tunnel0/0/0]destination 2.2.2.2
[r4]int t0/0/0
[r4-Tunnel0/0/0]ip add 192.168.3.2 24
[r4-Tunnel0/0/0]tu	
[r4-Tunnel0/0/0]tunnel-protocol gre
[r4-Tunnel0/0/0]so	
[r4-Tunnel0/0/0]source 2.2.2.2
[r4-Tunnel0/0/0]de	
[r4-Tunnel0/0/0]description 1.1.1.1

六、R1/R2/R4构建一个MGRE环境,R1为中心站点

[r1-Tunnel0/0/0]int t0/0/1
[r1-Tunnel0/0/1]ip add 192.168.6.1 24
[r1-Tunnel0/0/1]tu	
[r1-Tunnel0/0/1]tunnel-protocol gre p2mp
[r1-Tunnel0/0/1]so	
[r1-Tunnel0/0/1]source 1.1.1.1
Sep 19 2022 17:21:43-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/1 has entered the UP state. 
[r1-Tunnel0/0/1]
[r1-Tunnel0/0/1]nhrp ne	
[r1-Tunnel0/0/1]nhrp network-id 100
[r2]int t 0/0/1
[r2-Tunnel0/0/1]ip add 192.168.6.3 24
[r2-Tunnel0/0/1]tu	
[r2-Tunnel0/0/1]tunnel-protocol gre p2mp
[r2-Tunnel0/0/1]so	
[r2-Tunnel0/0/1]source s 4/0/0
[r2-Tunnel0/0/1]nhrp ne	
[r2-Tunnel0/0/1]nhrp network-id 100
[r2-Tunnel0/0/1]nhrp e	
[r2-Tunnel0/0/1]nhrp entry 192.168.6.1 1.1.1.1 r	
[r2-Tunnel0/0/1]nhrp entry 192.168.6.1 1.1.1.1 register 
[r3]int Tunnel 0/0/1
[r3-Tunnel0/0/1]ip add 192.168.6.2 24
[r3-Tunnel0/0/1]tunnel-protocol gre p2mp
[r3-Tunnel0/0/1]source Serial 4/0/0
Sep 19 2022 17:29:33-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/1 has entered the UP state. 
[r3-Tunnel0/0/1]
[r3-Tunnel0/0/1]nhrp network-id 100
[r3-Tunnel0/0/1]nhrp entry 192.168.6.1 1.1.1.1 register 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值