Перейти к содержимому

Inconsistent address and mask в чем ошибка

  • автор:

Ошибка Inconsistent address and mask

Делаю статическую маршрутизацию, нужно показать роутеру пути в другие сети.
пишу:

ip route 192.168.2.1 255.255.255.0 200.5.5.1

192.168.2.1(адрес сети, в которую нужно попасть)
255.255.255.0 (маска)
200.5.5.1 (адрес на порте принимающего роутера)

выдает ошибку, Inconsistent address and mask, как исправить, вроде ввожу все правильно, может что то не ввел до этого?
благодарен любой помощи.

Лучшие ответы ( 1 )
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
Ответы с готовыми решениями:

%Inconsistent address and mask
Всем привет! Прошу помощи с заданием на статические маршруты Прописываю суммарный статический.

Bad mask /24 for address 10.0.35.0
Выполняю лабораторку на Xgu.Застрял на настройки маршрутизации между VLAN. Там в верху картинки.

Ошибка access violation at address in module borlndmm.dll write of address
Всем здравствуйте. Не могу побороть ошибку "access violation at address in module borlndmm.dll.

Ошибка: Access violation at address 00474918 in module read of address
когда добовляю вот этот код в программу Application.CreateHandle; Application.ShowMainForm.

Ошибка: Access violarion at address 00a97326 in module `dcc70.dll`. Read of address ff978957
Access violarion at address 00a97326 in module `dcc70.dll`. Read of address ff978957. При запуске.

%Inconsistent address and mask

Typically you don’t want the router connections end to end to be the same interface, just asking for trouble. If I were you the S0/0/0 interface your using at the end of the route use the iP address of that interface instead and then press enter. See if it gives you and error then.

Additionally routing 192.168.1.1 would be an address not a routable subnet like 192.168.1.0, which would be.

As for you’re routes so you know, you want your next hop to be were you last part of the ip route to be.

For instance say on R2 on S0/0/0 is 192.168.5.1 and one R1 on S0/0/0 is 192.168.5.2. So say you want to get to 172.16.3.0 subnet from router 2 your ip route would be : «ip route 172.16.3.0 255.255.255.0 192.168.5.2». Placing that route on R2 would get you to subnet 172.16.3.0 via R1 serial interface at S0/0/0. Lastly any routes returning routes from R1 to R2 would be needed to make the back-n-fourth of data between routers.

Hope this helps. There is way more to it. But this should help you grasp it, I hope. :=)

DCD Member Posts: 473 ■■■■□□□□□□

First off give your router a hostname so we know which router your working on. If you are on Router 0 there are two way fix your problem. Either use a network ID or /32 address. You need to identify your objective with you static routes.

zhadyra Registered Users Posts: 4 ■□□□□□□□□□

Thankq for everyone I solved

Sign In or Register to comment.

Welcome

We’re proud to offer IT and security pros like you access to one of the largest IT and security certification forums on the web.

Quick Links

Categories
  • All Categories
  • 395 Welcome Center
  • 85 Announcements
  • 10 Forum Rules of Engagement
  • 221 Introduce Yourself
  • 59 TechExams Support
  • 88.7K Certification Preparation
  • 131 Check Point: CCSA & CCSE
  • 33K Cisco
  • 21.6K CCNA & CCENT
  • 370 CCDA & CCDP
  • 9K CCNP
  • 7 Cisco CyberOps
  • 1.7K CCIE
  • 542 Cloud Certifications
  • 200 Amazon Web Services (AWS)
  • 40 Azure
  • 120 CCSP
  • 79 Cloud+ & Cloud Essentials
  • 15.5K CompTIA
  • 5K A+
  • 245 CASP+
  • 114 CySA+
  • 974 Linux+
  • 4.4K Network+
  • 35 PenTest+
  • 266 Project+
  • 3.9K Security+
  • 335 Server+
  • 252 Other CompTIA Certifications
  • 1.2K EC-Council
  • 586 CHFI
  • 627 CEH
  • 1.4K GIAC
  • 47 IAPP
  • 1K ISACA
  • 29 CRISC
  • 284 CISA
  • 707 CISM
  • 4.3K (ISC)²
  • 666 CISSP
  • 35 CSSLP
  • 3.6K SSCP
  • 926 Juniper
  • 737 LPI, Red Hat & Linux Foundation
  • 18.6K Microsoft
  • 150 MCSA 2016 / MCSE 2016
  • 161 Windows 10 exams
  • 139 Windows 8 exams
  • 1.4K Windows 7 exams
  • 1.6K MCSA / MCSE on Windows 2012 General
  • 2.3K MCTS / MCITP on Windows 2008 General
  • 828 Exchange Server & Office Communications Server Exams
  • 537 Other Microsoft Electives
  • 349 MCSA/MCSE: Security
  • 300 Microsoft Developers Certifications
  • 485 SQL Server exams
  • 161 Offensive Security: OSCP & OSCE
  • 2K Other Security Certifications
  • 346 Virtualization Certifications
  • 231 Citrix Certifications
  • 105 VMware
  • 1.9K Other Certifications
  • 15 Business Analyst Certifications
  • 391 CWNP Certifications
  • 873 ITIL Certifications
  • 220 Project Management Certifications
  • 85 Apple Mac OS X Certifications
  • 62 Novell Certification
  • 81 Oracle Certifications
  • 52 Sun Microsystems Java Certification
  • 114 Storage Certifications
  • 6.7K General Certification
  • 18K Education & Development
  • 65 Colleges & Schools
  • 93 Educational Resources
  • 17.7K IT Jobs / Degrees
  • 76 Professional Development
  • 394 Cybersecurity
  • 19 Auditing & Compliance
  • 16 Cloud Security & IoT
  • 15 Cryptography & PKI
  • 38 Cybersecurity Management
  • 5 Data Science & Machine Learning
  • 9 Forensics
  • 8 ICS/SCADA Security
  • 35 Incident Response
  • 8 Linux Security
  • 11 OWASP
  • 33 Pentesting
  • 44 Security Awareness & Training
  • 53 Security News & Breaches
  • 11 Windows Security
  • 20.2K General
  • 35 Conferences & Events
  • 22 Computer Gaming
  • 7 Data Center
  • 87 Classifieds
  • 53 For Sale
  • 6 Wanted (ISO)
  • 16 Help Wanted
  • 17 Just for Fun
  • 19 Networking
  • 17.5K Off-Topic
  • 21 Scripting
  • Show Us Your Tech!
  • 26 Troubleshooting
  • 2.4K Virtualization

© 2023 Infosec, part of Cengage Group Trademarks | Privacy Policy

Contact US

*Tek-Tips’s functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

%Inconsistent address and mask

%Inconsistent address and mask

%Inconsistent address and mask

WanderingSailor (IS/IT—Management)
2 Mar 04 12:23

I have the following entries in my config file:

205.10.85.0 255.255.255.240 tunnel0
205.10.85.32 255.255.255.240 tunnel1
205.10.85.48 255.255.255.240 tunnel2
205.10.85.64 255.255.255.240 tunnel3
205.10.85.90 255.255.255.240 tunnel4
205.10.85.96 255.255.255.240 tunnel5
205.10.85.112 255.255.255.240 tunnel6
205.10.85.128 255.255.255.240 tunnel7

Another network person requested that the address for tunnel7 be changed to:

205.14.81.114 225.255.255.240 tunnel7

And when I type this in, I get the error,
‘%inconsistent address and mask’

I have attempted to explain to him that I cannot use this address as it falls in the range of allowable hosts for the 205.14.81.112 subnet, but he says it can be done. Without changing any other subnets/masks, anyone know how?

RE: %Inconsistent address and mask

IPKONFIG (Instructor) 2 Mar 04 14:18

I agree that the address falls into the 205.14.81.112 subnet. Your valid hosts should be .113 — .126

Can you post your config?

«I can picture a world without war. A world without hate. A world without fear. And I can picture us attacking that world, because they’d never expect it.»
— Jack Handey, Deep Thoughts

RE: %Inconsistent address and mask

rburke (Programmer) 2 Mar 04 17:25

Did you remove the config line:

«205.10.85.128 255.255.255.240 tunnel7»

before adding the new line in?
That could cause the problem.

RE: %Inconsistent address and mask

NetEng631 (TechnicalUser) 3 Mar 04 14:05

This is basic subnetting. So few people know it.

I woild make him prove it to you in binary that it will work. Then make him do it on the router. I bet he will not. If he does you will learn something new. He is breaking a basic rule of IP networking. You can always play dumb and make them prove it.

RE: %Inconsistent address and mask

IPKONFIG (Instructor) 3 Mar 04 14:34

205.14.81.144/28 is a host address. .112 is the network, and .127 is the broadcast for that subnet. Those are the facts.

«I can picture a world without war. A world without hate. A world without fear. And I can picture us attacking that world, because they’d never expect it.»
— Jack Handey, Deep Thoughts

RE: %Inconsistent address and mask

bierhunter (IS/IT—Management) 3 Mar 04 22:09

Is this supposed to be 205.10.85.x or 205.14.81.x ?

205.14.81.114 /28 does not fall within the above specified 205.10.85.112 /28 subnet.

Although, as stated correctly above, it is a host address and not a network address; so it is still an invalid entry.

Just trying to figure things out.

RE: %Inconsistent address and mask

chicocouk (MIS) 4 Mar 04 06:23

Despite the typos ;), I agree that everyone’s correct.

.114 is a host address, you must use the network address of .112 on a /28 bit mask.

Your other network person is wrong.

CCNA, MCSE, Cisco Firewall specialist, VPN specialist, wannabe CCSP 😉

RE: %Inconsistent address and mask

WanderingSailor (IS/IT—Management)
5 Mar 04 02:25

Thanks everyone, for your input. It was a typo on my part, it could have ben either way, but the third octet was supposed to be the same.

Anyhow, he was wrong and I (and you) were correct. He realized it after coming to my workspace and seeing it for himself.

Thanks for the feedback.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Copyright © 1998-2023 engineering.com, Inc. All rights reserved.
Unauthorized reproduction or linking forbidden without expressed written permission. Registration on or use of this site constitutes acceptance of our Privacy Policy and Terms

Cisco CLI Error: % Inconsistent address and mask

This error message may appear while attempting to configure a Static Route on a Layer 3 device running Cisco IOS.

What does this error mean?

This error indicates that the network address specified in the command is not a valid network address for the subnet mask specified.

The basic format of the ip route command as follows:

ip route 192.168.1.0 255.255.255.0 10.0.0.1
network address subnet mask next hop

The network address parameter must be a valid network address when combined with the subnet mask parameter. When entering the ip route command on a Cisco router, if we see the error message «% Inconsistent address and mask» it indicates to us that the combination of the network address parameter and the subnet mask parameter is incorrect.

Example 1 (Mistake or typo when entering the network address):

Segment 2
172.20.100.96/30
172.20.100.97 172.20.100.98
Router1 Console
Router1(config)#ip route 10.8.1.1 255.255.255.0 172.20.100.98
% Inconsistent address and mask
Router1(config)#

The example above shows 2 routers and 3 network segments. In order to route traffic to Segment 3, Router1 requires a route to the network 10.8.1.0/24 .

To add the required static route on Router1 above we entered it as follows:

ip route 10.8.1. 1 255.255.255.0 172.20.100.98
network address subnet mask next hop

However, 10.8.1. 1 is not a network address when combined with the Subnet Mask 255.255.255.0 (/24). 10.8.1. 1 is the first host address from the network 10.8.1. 0 255.255.255.0. The correct value for the network address paramter would be 10.8.1. 0 .

The correct ip route command would be:

ip route 10.8.1. 0 255.255.255.0 172.20.100.98
network address subnet mask next hop

With the correct network address paramer, the router accepts the command:

Router1 Console
Router1(config)#ip route 10.8.1. 1 255.255.255.0 172.20.100.98
% Inconsistent address and mask
Router1(config)#ip route 10.8.1. 0 255.255.255.0 172.20.100.98
Router1(config)#

Example 2 (Mistake or typo when entering the subnet mask):

Segment 2
172.20.100.96/30
172.20.100.97 172.20.100.98
Router1 Console
Router1(config)#ip route 10.8.1.0 255.255.254.0 172.20.100.98
% Inconsistent address and mask
Router1(config)#
Considering the same scenario as previously, this time we try to enter the static route as follows:

ip route 10.8.1.0 255.255.25 4 .0 172.20.100.98
network address subnet mask next hop

The IP address 10.8.1.0 is not a network address when combined with the subnet mask 255.255.25 4 .0. 10.8.1.0 is the 256th host address in the network 10.8. 0 .0 255.255.25 4 .0 (/2 3 )

10.8.0.0 255.255.25 4 .0 defines the range of IP address 10.8.0.0 — 10.8.1.255. The network address is 10.8.0.0 and the broadcast address is 10.8.1.255. (10.8.1.0 is a host address within this range.)

The correct subnet mask for this scenario is 255.255.25 5 .0. The correct command would be:

ip route 10.8.1.0 255.255.25 5 .0 172.20.100.98
network address subnet mask next hop

With the correct subnet mask paramer, the router accepts the command:

Router1 Console
Router1(config)#ip route 10.8.1.0 255.255.25 4 .0 172.20.100.98
% Inconsistent address and mask
Router1(config)#ip route 10.8.1.0 255.255.25 5 .0 172.20.100.98
Router1(config)#

Conclusion

The error message «% Inconsistent address and mask» may appear while attempting to add a static route on a Cisco router. This error message indicates that the combination of the network address and subnet mask parameters does not define a valid network address. If you receive this error message while configuring a static route on a Cisco router, check the network address and subnet mask parameters in the command that you have entered. There is a mistake or typo in either the network address or subnet mask parameter such that the network address as entered is actually a host address.

To gain a comprehensive understanding of Static Routes on Cisco routers, check out the course Course 4 — Static Routes on this website.

Want to test your networking skills with hands-on configuration and troubleshooting questions? Try out the Workshops section of this website here: Workshops (Login required).

Read how to use the device simulators on this website here: Workshops — General Instructions

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *