电脑
安装有PacketTracer7
新建拓扑
ip地址规划:ip规划:pc0:192.168.10.2/24pc1:192.168.20.2/24pc2:192.168.30.2/24router0 gig0/0:10.1.1.1/24router0 gig0/1:192.168.10.1/24router1 gig0/0:10.1.1.2/24router1 gig0/1:10.1.2.1/24router1 gig0/1:192.168.20.1/24router2 gig0/0:10.1.2.1/24router2 gig0/1:192.168.30.1/24
配置个路由器接口ip:router0:configure terminalinterface gigabitEthernet 0/1ip address 192.168.10.1 255.255.255.0no shutdownexit interface gigabitEthernet 0/0ip address 10.1.1.1 255.255.255.0no shutdownexit do show ip interface brief router1:configure terminalinterface gigabitEthernet 0/1ip address 10.1.2.1 255.255.255.0no shutdownexit interface gigabitEthernet 0/0ip address 10.1.1.2 255.255.255.0no shutdownexit interface gigabitEthernet 0/2ip address 192.168.20.1 255.255.255.0no shutdownexitdo show ip interface brief router2:configure terminalinterface gigabitEthernet 0/0ip address 10.1.2.2 255.255.255.0no shutdownexitdo show ip interface brief
配置路由器上的rip协议:router0:config trouter ripversion 2network 192.168.10.0network 10.1.1.0do show ip protocols router1:config trouter ripversion 2network 10.1.2.0network 10.1.1.0network 192.168.20.0do show ip protocols router2:config trouter ripversion 2network 10.1.2.0network 192.168.30.0do show ip protocols
验证是否联通:ping 192.168.20.2 ping 192.168.30.2
这里rip版本一定要是version 2