感谢话不提!

电脑A:192.168.2.2    255.255.255.0    192.168.2.1
电脑B: 192.168.3.2    255.255.255.0    192.168.3.1
routeA:f00--192.168.2.1/24      f01---192.168.4.1/24
routeB: f00--192.168.3.1 /24     f01--192.168.4.2/24

路由器A的配置
router>enable
router#config t
router(config)#int f0/0
router(config-if)#ip address 192.168.2.1 255.255.255.0
router(config-if)#no shutdown
router(config-if)#int f0/1
router(config-if)#ip address 192.168.4.1 255.255.255.0
router(config-if)#no shutdown
router(config-if)#exit
(以上是配置端口IP地址和掩码)
router(config)#ip route 192.168.3.0 255.255.255.0 192.168.4.2
给路由 A 设置静态跳转,若遇到访问计算机 B (也就是 192.168.3.0 )这个网段的数据包,给他规定了往路由 B 的0 /1 端口(也就是 192.168.4.2 )跳转,再在跳转后到达的路由查询路由表,查询计算机 B (也就是 192.168.3.0 )的这个网段再转发数据包!
router(config)#ip routing
router(config)#exit
router#show ip route

Codes: C - connected, S - static, I - IGRP,B - BGP 
            R - RIP, O - OSPF, D - EIGRP,  i - IS-IS

C   192.168.2.0 is directly connected,  FastEthernet0/0
C   192.168.4.0 is directly connected,  FastEthernet0/1
S   192.168.2.0     [1/1]   via  192.168.4.2  FastEthernet0/1


路由器B的配置
router>enable
router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
router(config)#int f0/0
router(config-if)#ip address 192.168.3.1 255.255.255.0
router(config-if)#no shutdown
router(config-if)#int f0/1
router(config-if)#ip address 192.168.4.2 255.255.255.0
router(config-if)#no shutdown
router(config-if)#exit
(以上是配置端口IP地址和掩码)
router(config)#ip route 192.168.2.0 255.255.255.0 192.168.4.1
(给路由 B 设置静态跳转,若遇到访问计算机 A (也就是 192.168.2.0 )这个网段的数据包,给他规定了往路由 A 的0 /1 端口(也就是 192.168.4.1 )跳转,再在跳转后到达的路由查询路由表,查询计算机 A (也就是 192.168.2.0 )的这个网段再转发数据包!)
router(config)#ip routing
router(config)#exit
router#show ip route

Codes: C - connected, S - static, I - IGRP,B - BGP 
            R - RIP, O - OSPF, D - EIGRP,  i - IS-IS

C   192.168.3.0 is directly connected,  FastEthernet0/0
C   192.168.4.0 is directly connected,  FastEthernet0/1
S   192.168.3.0     [1/2]   via  192.168.4.1  FastEthernet0/1