Loading... 拓扑图: ![拓扑图](https://pic.eeccx.com/view.php/eddc098f8cc23492f11da27180497ca1.png) 需求分析: 不同网段内部署三台路由器,每台路由器之间的网段以标出,路由器接口的ip地址根据网段自定义,用静态路由协议实现全互联互通,PC1和PC2能够互通,PC1和PC2的ip地址采用DHCP方式获得 --- 1. 设置各个PC机获取IP方式为dhcp ![PC1](https://pic.eeccx.com/view.php/48abf65eb9a6e47ac897ca2e8003427c.png) ![PC2](https://pic.eeccx.com/view.php/282e9c40eb14f5891d8525b115cdf371.png) 2. 设置三台路由器 R1: ```bash system-view undo info-center enable sysname R1 int g0/0/1 ip address 192.168.1.254 24 int g0/0/0 ip address 10.0.1.1 24 q dhcp enable int g0/0/1 dhcp select interface dhcp server dns-list 192.168.1.254 q ``` R2: ```bash system-view undo info-center enable sysname R2 int g0/0/0 ip address 10.0.1.2 24 int g0/0/1 ip address 172.23.100.2 24 q display ip interface brief ``` ![R2](https://pic.eeccx.com/view.php/094a6e9c09d8c558f261c2ffa2d5113b.png) R3: ```bash system-view undo info-center enable sysname R3 int g0/0/0 ip address 172.23.100.3 24 int g0/0/1 ip address 192.168.2.254 24 dhcp enable dhcp select interface dhcp server dns-list 192.168.2.254 ``` 3. 三台路由器上设置静态路由 R1: ```bash ip route-static 192.168.2.0 24 10.0.1.2 ip route-static 172.23.100.0 24 10.0.1.2 ``` R2: ```bash ip route-static 192.168.2.0 24 172.23.100.3 ip route-static 192.168.1.0 24 10.0.1.1 ``` R3: ```bash ip route-static 192.168.1.0 24 172.23.100.2 ip route-static 10.0.1.0 24 172.23.100.2 ``` 4. 查看三台路由器的路由表 ```bash dis ip routing-table ``` ![R1](https://pic.eeccx.com/view.php/5d076d0acc4679ab37ea9984139528bb.png) ![R2](https://pic.eeccx.com/view.php/dd81a1d9d9717d063333ef47c4242419.png) ![R3](https://pic.eeccx.com/view.php/9f3a4379d5f069b6a44e338ffce93f7b.png) 5. 验证两台PC是否获取IP以及互通 ![成功获取IP](https://pic.eeccx.com/view.php/38bb936ad41adeb2e8933c2b679b5b1e.png) 最后ping一下PC2的IP,查看 ![验证](https://pic.eeccx.com/view.php/49a29989c6654088a483cf95f9198ec0.png) --- 本实验基于华为ensp完成 路由器型号:AR1220 设备连线:auto 最后修改:2024 年 11 月 23 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 8 如果觉得我的文章对你有用,请随意赞赏
4 条评论
你的才华让人惊叹,请继续保持。http://www.gxxindongtai.com
看的我热血沸腾啊
博主真是太厉害了!!!
陈馨沤:文章真不错https://www.dfpump.cn/post/338.html