IP规划就是这个样子的,然后就是第一台路由上面
ip route 192.168.2.0 255.255.255.0 Serial0/0/0
ip route 192.168.3.0 255.255.255.0 Serial0/0/0
ip route 192.168.4.0 255.255.255.0 Serial0/0/0
第二台路由上面:
ip route 192.168.4.0 255.255.255.0 Serial0/0/1
ip route 192.168.1.0 255.255.255.0 192.168.2.1
ip route 192.168.3.0 255.255.255.0 192.168.3.2
ip route 192.168.2.0 255.255.255.0 192.168.2.1
第三台路由:
ip route 192.168.3.0 255.255.255.0 Serial0/0/1
ip route 192.168.1.0 255.255.255.0 Serial0/0/1
ip route 192.168.2.0 255.255.255.0 Serial0/0/1
基本上就是这样的,就可以通了
Serial0/0/1这个是什么意思?
接口啊,在图上不是标的很清楚吗,一般在串口上 下一跳都 是精心写接口的,上面我的也不是太标准备,因为在实际中写接口要比写下一跳的地址好,
2023-06-12 广告
pc0:192.168.1.1,gw 192.168.1.254 pc1:172.16.1.1 ,gw 172.16.1.254
router0:inter f0/0 ->ip add 192.168.1.254(靠近pc0的接口)->no shutdown(开启接口),
inter s0/0->ip add 10.10.10.1 255.255.255.252 ->clock rate 64000->no shutdown->exit;
ip route 172.16.1.1 255.255.255.255 10.10.10.2(router1的左接口)(s0/0);
copy runningconfig setupconfig
router1:inter s0/0 ip add 10.10.10.2 255.255.255.252->no shutdown ;
inter s0/1 ip add 10.10.10.5 255.255.255.252 ->clock rate 64000->no shutdown->exit;
ip route 172.16.1.1 255.255.255.255 10.10.10.6(router2的左接口);或者写自己的出口s0/1;
ip route 192.168.1.1 255.255.255.255 10.10.10.5(router1的左接口);或者写自己的出口s0/0;
copy runningconfig setupconfig
router2:inter f0/0 ->ip add 172.16.1.254(靠近pc0的接口)->no shutdown(开启接口),
inter s0/0->ip add 10.10.10.6 255.255.255.252 ->no shutdown->exit;
ip route 192.168.1.1 255.255.255.255 10.10.10.5(router1的右接口)(或自己的s0/0);
copy runningconfig setupconfig
用pc0 ping 172.16.1.1
pc1 ping 192.168.1.1
在每台路由器上都要配置相关的路由信息。
Router0 : ip route *pc1 *mask next ip
Router1: ip route *pc1 *mask next ip, ip route *pc0*mask next ip
Router2: ip route *pc0 *mask next ip
能够详细一点吗?
ip route 172.16.1.0 255.255.255.0 172.16.3.1 这个类型的