| 设备名 | 地址 | 网关 |
|---|---|---|
| Client1 | 192.168.11.1 | 192.168.11.254 |
| PC2 | 192.168.14.1 | 192.168.14.254 |
| Server1 | 192.168.23.1 | 192.168.23.254 |
| Server2 | 192.168.23.2 | 192.168.23.254 |
| R3|g0/0/1 | 192.168.23.254/24 | |
| R3|s0/0/0 | 192.168.0.6/30 | |
| R3|s0/0/1 | 192.168.0.13/30 | |
| R3|s0/0/2 | 200.10.10.1/30 | |
| R1|s0/0/0 | 192.168.0.5/30 | |
| R1|s0/0/2 | 192.168.0.9/30 | |
| R1|g0/0/1 | 192.168.11.254/24 | |
| R2|s0/0/1 | 192.168.0.14/30 | |
| R2|s0/0/2 | 192.168.0.10/30 | |
| R2|g0/0/1 | 192.168.14.254/24 | |
| R4|s0/0/2 | 200.10.10.2/30 |
| 源设备名称 | 设备端口 | 端口描述 | 目标设备名称 |
|---|---|---|---|
| Client1 | e0/0/1 | 无 | R1 |
| PC2 | e0/0/1 | 无 | R2 |
| R1 | g0/0/1 | 无 | Client1 |
| R1 | s0/0/2 | 无 | R2 |
| R1 | s0/0/0 | 无 | R3 |
| R2 | g0/0/1 | 无 | PC2 |
| R2 | s0/0/2 | 无 | R1 |
| R2 | s0/0/1 | 无 | R3 |
| R3 | s0/0/0 | 无 | R1 |
| R3 | s0/0/1 | 无 | R2 |
| R3 | g0/0/1 | 无 | LSW1 |
| R3 | s0/0/2 | 无 | R4 |
| Server2 | e0/0/0 | 无 | LSW1 |
| Server1 | e0/0/0 | 无 | LSW1 |
| LSW1 | e0/0/1 | 无 | Server1 |
| LSW1 | e0/0/2 | 无 | Server2 |
| LSW1 | g0/0/1 | 无 | R2 |
| R4 | s0/0/2 | 无 | R2 |
注意LSW1只是作为集线器,不用配置ip
注意R4是作为Internet提供商,通常是叫ISP
1、配置PC机、Server机、Client1机的ip
2、配置R4的各个端口的ip。双击R4
xxxxxxxxxxsysun in ensys ISPint s0/0/2ip add 200.10.10.2 30
3、配置R1的各个端口的ip。双击R1
xxxxxxxxxxsysun in ensys R1int g0/0/1ip add 192.168.11.254 24int s0/0/0ip add 192.168.0.5 30int s0/0/2ip add 192.168.0.9 30
4、配置R2的各个端口的ip。双击R2
xxxxxxxxxxsysun in ensys R2int g0/0/1ip add 192.168.14.254 24int s0/0/1ip add 192.168.0.14 30int s0/0/2ip add 192.168.0.10 30
5、配置R3的各个端口的ip。双击R3
xxxxxxxxxxsysun in ensys R3int g0/0/1ip add 192.168.23.254 24int s0/0/0ip add 192.168.0.6 30int s0/0/1ip add 192.168.0.13 30int s0/0/2ip add 200.10.10.1 30
6、配置R1的rip协议,由于ip进行了子网划分,所以用rip2协议来配置路由。双击R1 分析:R1的g0/0/1端口的网络地址经过上节课学习,可算出是192.168.11.0,同理算出其它端口如下 R1的s0/0/2端口的网络地址是192.168.0.0 R1的s0/0/0端口的网络地址是192.168.0.0
xxxxxxxxxxripversion 2network 192.168.11.0network 192.168.0.0
7、同理配置R2的rip协议。双击R2 分析:R2的g0/0/1端口的网络地址是192.168.14.0 R2的s0/0/1端口的网络地址是192.168.0.0 R2的s0/0/2端口的网络地址是192.168.0.0
xxxxxxxxxxripversion 2network 192.168.14.0network 192.168.0.0
8、同理配置R3的rip协议。双击R3 分析:R3的g0/0/1端口的网络地址是192.168.23.0 R3的s0/0/0端口的网络地址是192.168.0.0 R3的s0/0/1端口的网络地址是192.168.0.0 R3的s0/0/2端口的网络地址是200.10.10.0
xxxxxxxxxxripversion 2network 192.168.23.0network 192.168.0.0network 200.10.10.0
8、同理配置R4的rip协议。双击R4 分析:R4的s0/0/2端口的网络地址是200.10.10.0
xxxxxxxxxxripversion 2network 200.10.10.0
9、查询一下对路由进行的配置
xxxxxxxxxxdis ip routing
10、拓展知识。配置Server1服务器,双击Server1,点击服务器信息,点击左侧的HttpServer, 点击文件根目录右侧的三个小点,随便选择一个自己电脑上的html文件,然后点击右上角的启动, 再双击Client1,点击服务器信息,点击左侧的HttpClient,在地址右侧的输入框输入如下 http://192.168.23.1/default.html 点击右侧的获取,就能拿到我们刚刚在Server1选中的文件,可以把拿到的文件保存到桌面
完成第9步骤之后,就能验证如下,例如拿PC2举例,双击PC2
xxxxxxxxxxping 192.168.11.1ping 192.168.23.1ping 200.10.10.2