PC配个网关
两个路由器上静态理由互指,,OK 搞定
既然这么简单,你就搞的详细一点
RA:ip route 172.16.1.0 255.255.255.0 2.2.2.2
interface FastEthernet0/0
ip address 1.1.1.1 255.255.255.0
duplex auto
speed auto
interface FastEthernet0/1
ip address 2.2.2.1 255.255.255.0
duplex auto
speed auto
RB:
interface FastEthernet0/0
ip address 2.2.2.2 255.255.255.0
duplex auto
speed auto
interface Loopback0
ip address 172.16.1.18 255.255.255.0
!
ip route 1.1.1.0 255.255.255.0 2.2.2.1
结果:
PC>ping 172.16.1.18
Pinging 172.16.1.18 with 32 bytes of data:
Reply from 172.16.1.18: bytes=32 time=0ms TTL=254
Reply from 172.16.1.18: bytes=32 time=0ms TTL=254
Reply from 172.16.1.18: bytes=32 time=0ms TTL=254
Reply from 172.16.1.18: bytes=32 time=1ms TTL=254
Ping statistics for 172.16.1.18:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms