最后更新:2022-04-27 20:44:33 手机定位技术交流文章
静态路由

pc0:

pc1:

pc3:

路由器1:
interface GigabitEthernet0/1
ip address 172.16.3.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0/0
no ip address
clock rate 2000000
shutdown
!
interface Serial0/0/1
ip address 172.16.2.1 255.255.255.0
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 172.16.1.0 255.255.255.0 172.16.2.2
ip route 192.168.2.0 255.255.255.0 172.16.2.2
ip route 192.168.1.0 255.255.255.0 172.16.2.2
路由器2:
interface GigabitEthernet0/1
ip address 192.168.2.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0/0
ip address 192.168.1.1 255.255.255.0
!
ip route 172.16.1.0 255.255.255.0 192.168.1.2
ip route 172.16.3.0 255.255.255.0 192.168.1.2
ip route 172.16.2.0 255.255.255.0 192.168.1.2
路由器0:
interface GigabitEthernet0/1
ip address 172.16.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0/0
ip address 192.168.1.2 255.255.255.0
clock rate 2000000
!
interface Serial0/0/1
ip address 172.16.2.2 255.255.255.0
clock rate 2000000
ip route 172.16.3.0 255.255.255.0 172.16.2.1
ip route 192.168.2.0 255.255.255.0 192.168.1.1
验证:



动态路由
拓扑图同上
pcIP同上
路由器0:
router rip
version 2
network 172.16.0.0
network 192.168.1.0
no auto-summary
路由器1:
router rip
version 2
network 172.16.0.0
no auto-summary
路由器2:
router rip
version 2
network 192.168.1.0
network 192.168.2.0
no auto-summary
验证:



本文由 在线网速测试 整理编辑,转载请注明出处。