Static routing

Hello,
I want to configure static routing between 2 routers
For Router 1, I set: ip route 192.168.10.1 255.255.255.0 192.168.1.254
but it didn’t work!
192.168.10.1: @ of remote PC
255.255.255.0: mask
192.168.1.254: @ of the serial interface on Router1's side

Router1(config)#ip route 192.168.10.1 255.255.255.0 192.168.1.254
%Inconsistent address and mask

Can you identify the problem?
Thank you in advance

Configuration: Windows 7 / Chrome 26.0.1410.43

5 answers

  1. you must use ip route with the network address + the subnet mask
    you can check this blog it can help you: www.info-sys14.blogspot.com
    1
    1. it should be ip route 192.168.10.0 255.255.255.0 192.168.2.254

      you need to put the serial interface address of router 2 if you are on router 1.
      1
      1. show me the addressing you chose, we cannot guess it
        0
        1. Hi,
          the error message you are getting means this:
          you have a route to a host address with a subnet mask
          If you want to enter a route to a specific IP address (host route), you must use a mask of 255.255.255.255 or enter a route to the subnet with the corresponding subnet mask.

          @obli: There is no problem with the next-hop address, this is a static route, not a default gateway for a host, and in addition, this is not even a default route.
          1
          1. Your network is in 192.168.10.xxx with a /24 mask, while your gateway is in 192.168.1.xxx.

            Your gateway must be in the same address range!
            0