子网划分,第一步应该考虑几个协议,根据协议划分网段
172.16.0.0/16
172.16.000 00000.0/19 172.16.0.0/19----A0
(p2p网路中都是里面包含两个网段,所以把它划分到-30就可以)
172.16.0.0/24------用户网段一般是24位
172.16.0.0/30 ----给p2p(预留,真是的环境中是有的)
172.16.0.4/30 ----给p2p
172.16.0.8/30 ----给p2p
...
172.16.1.0/24--------给MA
172.16.0.0/29
172.16.0.8/29
172.16.0.16/29
172.16.0.32/29
172.16.0.64/29
172.16.2.0/24----给用户
172.16.3.0/24
172.16.4.0/24
...
172.16.31.0/24
p2p:172.16.0.0/24
ma:172.16.0.0/29----里面有8-2=6个IP地址
172.16.001 00000.0/19 172.16.32.0/19----A1
p2p:172.16.32.0/24
172.16.32.0/30
172.16.32.4/30
172.16.32.8/30
172.16.32.12/30
172.16.32.16/30
ma:172.16.33.0/24
172.16.33.0/29
172.16.33.8/29
172.16.33.16/29
172.16.33.24/29
......
其他给用户
172.16.010 00000.0/19 172.16.64.0/19----A2
p2p:172.16.65.0/24
172.16.65.0/30
172.16.65.4/30
172.16.65.8/30
ma:172.16.66.0/24
172.16.66.0/29
172.16.66.4/29
172.16.66.8/29
......
172.16.011 00000.0/19 172.16.96.0/19----A3
p2p:172.16.97.0/24
ma:172.16.98.0/24
其他给用户
172.16.100 00000.0/19 172.16.128.0/19----A4
p2p:172.16.128.0/24
ma:172.16.129.0/24
其他用户
172.16.101 00000.0/19 172.16.160.0/19----RIP
(给两个网段就可以了)
借一位: 172.16.160.0/29
172.16.176.0/29
备用:
172.16.110 00000.0/19 172.16.192.0/19
172.16.111 00000.0/19 172.16.224.0/19
配置IP
先配置mgre环境,配置完成后配置指向中心的缺省路由
r3
[r3-Serial4/0/0]ip ad 34.0.0.1 24
[r3-Serial4/0/0]
Jan 17 2022 21:24:02-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
IPCP on the interface Serial4/0/0 has entered the UP state.
[r3-Serial4/0/0]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r3>sy
Enter system view, return user view with Ctrl+Z.
[r3]ip ro
[r3]ip route
[r3]ip route-static 0.0.0.0 0 34.0.0.2
isp
[isp]int s 4/0/0
[isp-Serial4/0/0]ip ad 34.0.0.2 24
[isp-Serial4/0/0]
Jan 17 2022 21:24:03-08:00 isp %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PP
P IPCP on the interface Serial4/0/0 has entered the UP state.
[isp-Serial4/0/0]int s4/0/1
[isp-Serial4/0/1]ip ad 45.0.0.2 24
[isp-Serial4/0/1]
Jan 17 2022 21:27:28-08:00 isp %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PP