IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 大数据 -> RIP综合实验 -> 正文阅读

[大数据]RIP综合实验

按照如图分配网段,划分合理的IP地址:

?

  1. 配置IP:(例如r2)

[r2]int g 0/0/0

[r2-GigabitEthernet0/0/0]ip add

[r2-GigabitEthernet0/0/0]ip address 12.0.0.2 24

Jan ?7 2022 21:07:34-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP

on the interface GigabitEthernet0/0/0 has entered the UP state.

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

[r2-GigabitEthernet0/0/1]ip add

[r2-GigabitEthernet0/0/1]ip address 23.0.0.1 24

Jan ?7 2022 21:07:44-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP

on the interface GigabitEthernet0/0/1 has entered the UP state.

[r2-GigabitEthernet0/0/1]int l0

[r2-LoopBack0]ip add

[r2-LoopBack0]ip address 2.2.2.2 24——环回配置IP

检查配置是否正确:

<r2>ping 12.0.0.1

??PING 12.0.0.1: 56 ?data bytes, press CTRL_C to break

????Reply from 12.0.0.1: bytes=56 Sequence=1 ttl=255 time=50 ms

????Reply from 12.0.0.1: bytes=56 Sequence=2 ttl=255 time=20 ms

????Reply from 12.0.0.1: bytes=56 Sequence=3 ttl=255 time=10 ms

????Reply from 12.0.0.1: bytes=56 Sequence=4 ttl=255 time=20 ms

????Reply from 12.0.0.1: bytes=56 Sequence=5 ttl=255 time=20 ms

??--- 12.0.0.1 ping statistics ---

????5 packet(s) transmitted

????5 packet(s) received

????0.00% packet loss

????round-trip min/avg/max = 10/24/50 ms

  1. rip宣告:

[r2]rip

[r2-rip-1]v 2

[r2-rip-1]net

[r2-rip-1]network 2.0.0.0

[r2-rip-1]net

[r2-rip-1]network 12.0.0.0

[r2-rip-1]net

[r2-rip-1]network 23.0.0.0

  1. 修改cost值;

[r3]int g 0/0/1

[r3-GigabitEthernet0/0/1]rip m

[r3-GigabitEthernet0/0/1]rip metricin 2000 10

  1. 做汇总,减少路由条目

interface GigabitEthernet0/0/1

?rip summary-address 172.16.0.0 255.255.252.0

  1. 做缺省

[r5]rip

[r5-rip-1]de

[r5-rip-1]default-route

[r5-rip-1]

[r5-rip-1]default-route or

[r5-rip-1]default-route originate?

  1. 做过滤:

[r6]acl 2000

[r6-acl-basic-2000]ru

[r6-acl-basic-2000]rule p

[r6-acl-basic-2000]rule d

[r6-acl-basic-2000]rule deny s

[r6-acl-basic-2000]rule deny source 172.16.0.0 0

[r6-acl-basic-2000]ru

[r6-acl-basic-2000]rule s

[r6-acl-basic-2000]rule d

[r6-acl-basic-2000]rule deny s

[r6-acl-basic-2000]rule deny source 1.1.1.0 0

[r6-acl-basic-2000]ru

[r6-acl-basic-2000]rule p

[r6-acl-basic-2000]rule permit s

[r6-acl-basic-2000]rule permit source a

[r6-acl-basic-2000]rule permit source any?

[r6]rip 1

[r6-rip-1]fi

[r6-rip-1]filter-policy 2000 im

[r6-rip-1]filter-policy 2000 import

  1. 端口映射

[r2]int g 0/0/0

[r2-GigabitEthernet0/0/0]rip a

[r2-GigabitEthernet0/0/0]rip authentication-mode md5 u

[r2-GigabitEthernet0/0/0]rip authentication-mode md5 usual c

[r2-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 123456

[r2-GigabitEthernet0/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

[r2]int g 0/0/0

[r2-GigabitEthernet0/0/0]nat s

[r2-GigabitEthernet0/0/0]nat server p

[r2-GigabitEthernet0/0/0]nat server protocol ?tcp g

[r2-GigabitEthernet0/0/0]nat server protocol ?tcp global in

[r2-GigabitEthernet0/0/0]nat server protocol ?tcp global interface ?l

[r2-GigabitEthernet0/0/0]nat server protocol ?tcp global interface ?loopback ?0

[r2-GigabitEthernet0/0/0]nat server protocol tcp global interface loopback 0 23

in

[r2-GigabitEthernet0/0/0]nat server protocol tcp global interface loopback 0 23

inside 7.7.7.7 23

Warning:The port 23 is well-known port. If you continue it may cause function fa

ilure.

Are you sure to continue?[Y/N]:y

试登录:

<r1>telnet 2.2.2.2

??Press CTRL_] to quit telnet mode

??Trying 2.2.2.2 ...

??Connected to 2.2.2.2 ...

Login authentication

Username:

??Username timeout expired

Username:xian

Password:

??-----------------------------------------------------------------------------

????

??User last login information: ????

??-----------------------------------------------------------------------------

??Access Type: Telnet ?????

??IP-Address : 12.0.0.1 ????

??Time ??????: 2022-01-07 22:06:04-08:00 ????

??-----------------------------------------------------------------------------

<r7>

  1. 验证实验结果

<r2>ping 7.7.7.7

??PING 7.7.7.7: 56 ?data bytes, press CTRL_C to break

????Reply from 7.7.7.7: bytes=56 Sequence=1 ttl=252 time=50 ms

????Reply from 7.7.7.7: bytes=56 Sequence=2 ttl=252 time=50 ms

????Reply from 7.7.7.7: bytes=56 Sequence=3 ttl=252 time=50 ms

????Reply from 7.7.7.7: bytes=56 Sequence=4 ttl=252 time=40 ms

????Reply from 7.7.7.7: bytes=56 Sequence=5 ttl=252 time=40 ms

??--- 7.7.7.7 ping statistics ---

????5 packet(s) transmitted

????5 packet(s) received

????0.00% packet loss

????round-trip min/avg/max = 40/46/50 ms

<r2>ping 46.0.0.1

??PING 46.0.0.1: 56 ?data bytes, press CTRL_C to break

????Reply from 46.0.0.1: bytes=56 Sequence=1 ttl=254 time=20 ms

????Reply from 46.0.0.1: bytes=56 Sequence=2 ttl=254 time=30 ms

????Reply from 46.0.0.1: bytes=56 Sequence=3 ttl=254 time=30 ms

????Reply from 46.0.0.1: bytes=56 Sequence=4 ttl=254 time=30 ms

????Reply from 46.0.0.1: bytes=56 Sequence=5 ttl=254 time=40 ms

??--- 46.0.0.1 ping statistics ---

????5 packet(s) transmitted

????5 packet(s) received

????0.00% packet loss

????round-trip min/avg/max = 20/30/40 ms

<r2>ping 5.5.5.5

??PING 5.5.5.5: 56 ?data bytes, press CTRL_C to break

????Reply from 5.5.5.5: bytes=56 Sequence=1 ttl=253 time=30 ms

????Reply from 5.5.5.5: bytes=56 Sequence=2 ttl=253 time=30 ms

????Reply from 5.5.5.5: bytes=56 Sequence=3 ttl=253 time=30 ms

????Reply from 5.5.5.5: bytes=56 Sequence=4 ttl=253 time=30 ms

????Reply from 5.5.5.5: bytes=56 Sequence=5 ttl=253 time=40 ms

??--- 5.5.5.5 ping statistics ---

????5 packet(s) transmitted

????5 packet(s) received

????0.00% packet loss

????round-trip min/avg/max = 30/32/40 ms

实验完成。

  大数据 最新文章
实现Kafka至少消费一次
亚马逊云科技:还在苦于ETL?Zero ETL的时代
初探MapReduce
【SpringBoot框架篇】32.基于注解+redis实现
Elasticsearch:如何减少 Elasticsearch 集
Go redis操作
Redis面试题
专题五 Redis高并发场景
基于GBase8s和Calcite的多数据源查询
Redis——底层数据结构原理
上一篇文章      下一篇文章      查看所有文章
加:2022-01-08 14:05:51  更:2022-01-08 14:07:19 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/18 2:50:58-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码