导读 | eNSP是图形化网络仿真平台,该平台通过对真实网络设备的仿真模拟。静态路由是用户手动配置的路由信息,当网络拓扑改变时需要手动修改配置,比较适合小型网络。 |
配置R1
[R1]INT GigabitEthernet 0/0/0 [R1-GigabitEthernet0/0/0]IP ADD 172.16.1.254 24 May 20 2020 17:17:01-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state. [R1-GigabitEthernet0/0/0]INT G 0/0/1 [R1-GigabitEthernet0/0/1]IP ADD 10.0.11.1 24 May 20 2020 17:17:22-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state.
配置R2
[R2]int g0/0/0 [R2-GigabitEthernet0/0/0]ip add 10.0.11.2 24 May 20 2020 17:22:15-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 g0/0/1 [R2-GigabitEthernet0/0/1]ip add 10.0.12.2 24 [R2-GigabitEthernet0/0/1] May 20 2020 17:22:27-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state.
配置R3
[R3]int g0/0/0 [R3-GigabitEthernet0/0/0]ip add 10.0.12.3 24 May 20 2020 17:25:12-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state. [R3-GigabitEthernet0/0/0]int g0/0/1 [R3-GigabitEthernet0/0/1]ip add 172.16.2.254 24 May 20 2020 17:25:26-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state.
配置pc
R1,R2,R3配置静态路由
[R1]ip route-static 172.16.2.0 255.255.255.0 10.0.11.2 [R2]ip route-static 172.16.2.0 255.255.255.0 10.0.12.3 [R2]ip route-static 172.16.1.0 255.255.255.0 10.0.11.1 [R3]ip route-static 172.16.1.0 255.255.255.0 10.0.12.2
测试pc1 ping pc2
PC>ping 172.16.2.1 Ping 172.16.2.1: 32 data bytes, Press Ctrl_C to break From 172.16.2.1: bytes=32 seq=1 ttl=125 time=31 ms From 172.16.2.1: bytes=32 seq=2 ttl=125 time=15 ms From 172.16.2.1: bytes=32 seq=3 ttl=125 time=31 ms From 172.16.2.1: bytes=32 seq=4 ttl=125 time=16 ms From 172.16.2.1: bytes=32 seq=5 ttl=125 time=32 ms --- 172.16.2.1 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 15/25/32 ms
静态路由配置完成。
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/123449.html