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
取消
评论