当前位置:网站首页>静态扩展配置
静态扩展配置
2022-07-23 05:47:00 【.98℃】
目录
1.要求:

2.拓扑划分:

3.分析:
- 根据拓扑结构合理划分IP地址,为后面手工汇总提供支持,以及要避免黑洞
- 需要编写缺省路由,从而达到不直接编写5.5.5.0/24的路由也能访问
- r4和r5之间的两条线需要配置浮动静态
4.配置:
1.环回地址的配置,直连接口的IP划分
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.209 28
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip add 192.168.1.225 28
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.1.210 28
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]ip add 192.168.1.194 28
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 192.168.1.17 28
[r3-GigabitEthernet0/0/0]int g0/0/1
[r3-GigabitEthernet0/0/1]ip add 192.168.1.193 28
[r4-GigabitEthernet0/0/0]int g0/0/2
[r4-GigabitEthernet0/0/2]ip add 192.168.1.81 28
[r4-GigabitEthernet0/0/1]int g4/0/0
[r4-GigabitEthernet4/0/0]ip add 192.168.1.65 28
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip add 192.168.1.226 28
[r4-GigabitEthernet0/0/2]int g0/0/1
[r4-GigabitEthernet0/0/1]ip add 192.168.1.18 28
[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]ip add 192.168.1.66 28
[r5-GigabitEthernet0/0/0]int g0/0/1
[r5-GigabitEthernet0/0/1]ip add 192.168.1.82 28
2.静态路由设置以及r3和r5之间的浮动
[r1]ip route-static 192.168.1.64 26 192.168.1.210
[r1]ip route-static 192.168.1.192 28 192.168.1.210
[r1]ip route-static 192.168.1.128 27 192.168.1.210
[r1]ip route-static 192.168.1.0 26 192.168.1.226
[r2]ip route-static 192.168.1.160 27 192.168.1.209
[r2]ip route-static 192.168.1.224 28 192.168.1.209
[r2]ip route-static 192.168.1.0 25 192.168.1.193
[r3]ip route-static 192.168.1.128 26 192.168.1.194
[r3]ip route-static 192.168.1.208 28 192.168.1.194
[r3]ip route-static 192.168.1.224 28 192.168.1.18
[r3]ip route-static 192.168.1.32 27 192.168.1.18
[r4]ip route-static 192.168.1.128 25 192.168.1.225
[r4]ip route-static 192.168.1.64 26 192.168.1.17
[r5]ip route-static 192.168.1.16 26 192.168.1.65
[r5]ip route-static 192.168.1.16 26 192.168.1.81 preference 100
[r5]ip route-static 192.168.1.96 27 192.168.1.65
[r5]ip route-static 192.168.1.96 27 192.168.1.65 preference 100
[r5]ip route-static 192.168.1.128 25 192.168.1.65
[r5]ip route-static 192.168.1.128 25 192.168.1.81 preference 1003.缺省配置
[r1]ip route-static 0.0.0.0 0.0.0.0 192.168.1.226
[r2]ip route-static 0.0.0.0 0.0.0.0 192.168.1.193
[r3]ip route-static 0.0.0.0 0.0.0.0 192.168.1.66
[r3]ip route-static 0.0.0.0 0.0.0.0 192.168.1.82 preference 100
[r4]ip route-static 0.0.0.0 0.0.0.0 192.168.1.174.配置必要的空接口
[r3]ip route-static 192.168.1.64 26 NULL 0
[r4]ip route-s 192.168.1.0 26 NULL 0
[r4]ip route-s 192.168.1.128 25 NULL 0
[r4]ip route-s 192.168.1.32 27 NULL 0
5.测试





边栏推荐
- Learning diary - (routing and switching technology) dynamic routing (RIP protocol) and static routing
- 超好用的抓包工具tcpdump
- 路由与接口技术——直连网络总结
- Leetcode problem solution summary
- zabbix监控详细安装到部署
- STP 配置实例学习记录
- OSPF comprehensive experiment
- C#输入一个字母,判断其大小写
- Depth first find all simple paths from vertex u to vertex v in the graph
- 静态路由原理与配置
猜你喜欢

学习日记——(路由与交换技术)OSPF协议

超好用的抓包工具tcpdump

Hcip ---- relevant knowledge points of GRE protocol, mGRE environment and OSPF Protocol

手动配置DHCP服务

Quick solution: xshell can't drag into folders or software packages

Learning diary - (routing and switching technology) ACL access control list
![Build FRPC client in NAS [super brainless]](/img/02/bc150ab6cec73b9142d0e3c3532417.png)
Build FRPC client in NAS [super brainless]

DHCP原理与配置

Manually configure DHCP service

Eth trunk configuration instance learning record
随机推荐
0 double pointer leetcode844. Compare strings with backspace
C randomly generate a score to judge its grade (excellent, good, medium, poor, failed)
jenkins部署
linx的链接、一级目录、重定向、cp与mv
Summary of basic SQL operations
0 backtracking / dynamic programming medium leetcode526. Beautiful arrangement
helm安装rancher
Static route configuration instance learning record
0 dynamic programming leetcodde313. super ugly number
Simple use of psutil monitoring
Take go language as an example to explain [performance analysis] by analogizing detective reasoning
HCIA----07 ACL-Net
Hcip - HDLC and PPP protocols
C language can also write Plants vs. Zombies
学习日记——(路由与交换技术)OSPF协议
FTP实验及概述
ACL 配置实例学习记录
How to solve too many if statements
Secret key remote login server to realize secret free login
Prefix and leetcode2100. Suitable for bank robbery days