Inconsistent address/mask error with routing statement

JockVSJockJockVSJock Member Posts: 1,118
I have a basic lab in Packet Tracer where I'm trying to master ip routing statements, see attached screenshot. I continue to get the following error when I try to enter this in on the 2911_router001 (HQ), to set a route to router002.
2911_router001(config)#ip route 192.168.2.1 255.255.255.252 192.168.1.2 
%Inconsistent address and mask

This is the setup


2911_router001 (HQ)
s0/0/0 - 192.168.1.1
s0/0/1 - 192.168.3.1

2911_router002 (Branch 1)
s0/2/0 - 192.168.2.1
s0/0/0 - 192.168.1.2

2911_router003 (Branch 2)
s0/2/0 - 192.168.2.2
s0/0/1 - 192.168.3.2

If I put in static routes to reach router002 and router003 from router001
2911_router001(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.2 
2911_router001(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.2

This takes with no issues and I repeat this as well for the router002 and router003 and I am able to ping all serial interfaces.

I don't understand why I'm getting Inconsistent address and mask error. This isn't clear to me.



***Freedom of Speech, Just Watch What You Say*** Example, Beware of CompTIA Certs (Deleted From Google Cached)

"Its easier to deceive the masses then to convince the masses that they have been deceived."
-unknown

Comments

  • bryguybryguy Member Posts: 190
    >2911_router001(config)#ip route 192.168.2.1 255.255.255.252 192.168.1.2

    You want a network (196.168.2.0) not a host (192.168.2.1)

    2911_router001(config)#ip route 192.168.2.0 255.255.255.252 192.168.1.2
  • TechGuru80TechGuru80 Member Posts: 1,539 ■■■■■■□□□□
    As stated already, the device is looking for a network address not a specific host address. You can also use the interface command to send out a specific interface.

    Routing protocols would eliminate the need to have the static route configured.
  • JockVSJockJockVSJock Member Posts: 1,118
    bryguy wrote: »
    >2911_router001(config)#ip route 192.168.2.1 255.255.255.252 192.168.1.2

    You want a network (196.168.2.0) not a host (192.168.2.1)

    2911_router001(config)#ip route 192.168.2.0 255.255.255.252 192.168.1.2

    Jeez...bonehead move on my part.

    thanks
    ***Freedom of Speech, Just Watch What You Say*** Example, Beware of CompTIA Certs (Deleted From Google Cached)

    "Its easier to deceive the masses then to convince the masses that they have been deceived."
    -unknown
Sign In or Register to comment.