hcip第二次

1.r5为ISP只能进行IP 地址配置其他地址均为共有IP地址

2.R1和R5之间使用PPP认证R5为主认证方

   R2与R5之间使用CHAP认证R5为主认证方

R3与R5之间用HDLC 封装

3.R1/R2/R3之间构成一个MGRE环境,R1为中心点,R4,R1 之间为点到点的GRE

4.整个私网网络基于RIP可达

5,所有pc设置私有ip为源IP可以访问R5环回

配置IP

 

73a12f08f5664871b10a1c79c43447e0.png

r16826f0f016c642ca8b1e248baff65b71.png 

r2

r2]int s 4/0/0

[r2-Serial4/0/0]ip ad 25.0.0.1 24

[r2-Serial4/0/0]int g 0/0/0

r2-GigabitEthernet0/0/0]ip ad 192.168.2.1 24

r3

r3]int s 4/0/0

[r3-Serial4/0/0]ip ad 35.0.0.1 24

r3-Serial4/0/0]int g 0/0/0

r3-GigabitEthernet0/0/0]ip ad 192.168.3.1 24\nr4

r4]int g 0/0/1

[r4-GigabitEthernet0/0/1]ip ad 45.0.0.1 24

[r4-GigabitEthernet0/0/1]int g 0/0/0

r4-GigabitEthernet0/0/0]ip ad 192.168.4.1 24

r5

[isp]int g 0/0/0

[isp-GigabitEthernet0/0/0]ip ad 45.0.0.2 24

isp-GigabitEthernet0/0/0]int s 3/0/0

isp-Serial3/0/0]ip ad 15.0.0.2 24

[isp-Serial3/0/0]int s 4/0/0

isp-Serial4 /0/0]ip ad 25.0.0.2 24

[isp-Serial4/0/0]int s 4/0/1

[isp-Serial4/0/1]ip ad 35.0.0.2 24

[isp-Serial4/0/1]int l 0

[isp-LoopBack0]ip ad 5.5.5.1 24

ISP1

SP\nisp]aaa

[isp-aaa]local www pass cip 123456

Info: Add a new user.

[isp-aaa]local www service ppp

isp-aaa]q

[isp]int s 3/0/0

isp-Serial3/0/0]ppp auth pap

[isp-Serial3/0/0]q

r1

r1-Serial4/0/0]ppp pap loc www pas c 123456

b3ca9216050640c69a741f1a0cdf022f.png 

 2

isp

[isp-Serial4/0/0]ppp auth chapr2

ppp chap user www

ppp chap password cipher 123456

3

isp

isp-Serial4/0/1]link hdlc

Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]

:y

Nov 15 2022 00:16:03-08:00 isp %%01IFNET/4/CHANGE_ENCAP(l)[4]:The user performed

 the configuration that will change the encapsulation protocol of the link and t

hen selected Y.

r3

5f2c77dbbb2843edaee1736090a0e70e.png

  r1

ip rout 0.0.0.0 0 15.0.0.2

r2

ip rout 0.0.0.0 0 25.0.0.2

r3

ip rout 0.0.0.0 0 35.0.0.2

r4

ip rout 0.0.0.0 0 45.0.0.2

r1

ip ad 192.168.5.1 24

tunnel gre p2mp

source 15.0.0.1

hrp network-id 100

nhrp entry mu dynsmic

r2

int g 0/0/0

ip ad 192.168.5.2 24

tunnel gre p2mpsource serial 4/0/0

nhrp net 100

nhrp entry 192.168.5.1 15.0.0.1 re

r3

int g 0/0/0

ip ad 192.168.5.2 24

tunnel gre p2mpsource serial 4/0/0

nhrp net 100

nhrp entry 192.168.5.1 15.0.0.1 re

r1

interface tunnel 0/0/1

ip address192.168.6.1 24

tunnel gre

sour 15.0.0.1

destination45.0.0.1

r4

int t 0/0/0

ip add 192.168.6.2 24

tunnel gre

source 45.0.0.1

destination 15.0.0.1

RIP 全网可达

r1

rip 1

v 2

net 192.168.1.0

net 192.168.5.0

net 192.168.6.0

r2

rip 1

v 2

net 192.168.2.0

net 192.168.5.0

r3

rip 1

v 2

net 192.168.3.0

net 192.168.5.0

r4

rip 1

v 2

net 192.168.4.0

net 192.168.6.0

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值