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

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

  • автор:

Правильность ip — адреса 172.17.255.1

введите сюда описание изображения

Ситуация такая: У меня есть задание от преподавателя. Нужно настроить статическую маршрутизацию (смотреть на схему ниже) Суть задания в том, чтобы пинговались компьютеры с сервером. Я настроил на маршрутизаторах маршрут от сервера до компьютеров (то есть до сети 10.0.0.0 ), то есть пакет долетает до компьютеров (проверил на встроенном симуляторе Cisco Packet Tracer), но обратно ответа не приходит, потому что не настроен маршрут обратно до сервера (то есть до сети 172.17.255.0 ). Проблема в том, что маршрутизаторы не дают мне настроить маршрут до сети 172.17.255.0 , выдают ошибку: Inconsistent address and mask . Я подозреваю, что проблема именно в октете 255 в ip — адресе. Может ли такой октет как 255 в ip — адресе влиять на работу маршрутизации? При этом маршрутизатор r4 и local server пингуются друг с другом и проблем никаких нет.

Отслеживать
задан 3 ноя 2021 в 16:42
Bulat_Akhmadeev Bulat_Akhmadeev
129 7 7 бронзовых знаков

1 ответ 1

Сортировка: Сброс на вариант по умолчанию

Последний единичный бит в адресе сети 172.17.255.0 — 24-й. Т.е. 172.17.255.0 может иметь маску /24 или мельче. Указанная на рисунке маска /16 — недопустима.

Если адрес — 172.17.255.132 , а маска /16, то для получения адреса сети надо обнулить все биты после 16-го (т.е. последние два октета). Получится адрес сети — 172.17.0.0 / 16 .

Отслеживать
ответ дан 3 ноя 2021 в 16:55
31.4k 3 3 золотых знака 21 21 серебряный знак 40 40 бронзовых знаков

Сделал вывод из вашего ответа. Настроил маршруты на маршрутизаторах с помощью команды: ip route 172.17.0.0 255.255.0.0 . . Как вы и написали, убрал два последних октета. Все заработало. Спасибо!

Inconsistent address and mask error

When statically routing a route in the format [destination network address] [mask] [next hop address or interface name], I get the Inconsistent Address and mask error. Any assistance would be appreciated. Network address:148.148.148.48 Mask: 255.255.255.0 Hop address: 106.106.106.1

Noobprogrammer

asked Apr 26, 2020 at 0:00

Noobprogrammer Noobprogrammer

1 2 2 bronze badges

A mask of 255.255.255.0 is too large to accommodate 300 hosts.

Apr 26, 2020 at 0:06

Did any answer help you? If so, you should accept the answer so that the question doesn’t keep popping up forever, looking for an answer. Alternatively, you can post and accept your own answer.

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

огромное спасибо за http://faq-cisco.ru/page.php?id=3 , есть две Cisco 2821 и 827 между ними путаюсь VPN создать, все как там написано, дошел до одного момента и ни как не получается, вот кусок конфига. где
Cisco 2821 внешний IP 192.168.5.230 и 10.201.208.11 внутренний, а
Cisco 827 внешний IP 80.80.80.0 и 192.168.5.234 внутренний часть конфига 2821 crypto isakmp policy 10
authentication pre-share
crypto isakmp key MYVPN address 192.168.5.234
!
crypto ipsec transform-set VPN esp-des esp-md5-hmac
!
crypto map MYVPN 10 ipsec-isakmp
! Incomplete
set peer 192.168.5.234
set transform-set VPN
match address 101
!
interface Tunnel0
ip address 192.168.1.1 255.255.255.0
tunnel source GigabitEthernet0/0
tunnel destination 192.168.5.234
crypto map MYVPN
!
interface GigabitEthernet0/0
ip address 192.168.5.230 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 10.201.208.10 255.255.240.0
duplex auto
speed auto
!
interface ATM0/3/0
no ip address
shutdown
no atm ilmi-keepalive
dsl operating-mode auto
!
no ip http server
no ip http secure-server
!
access-list 102 permit gre host 192.168.5.230 host 192.168.5.234
!
control-plane
!
line con 0
line aux 0
line vty 0 4
login
!
scheduler allocate 20000 1000
!
webvpn context Default_context
ssl authenticate verify all
!
no inservice
!
end
когда ввожу Router(config)#ip route 192.168.5.234 255.255.255.0 tunnel0
пишет вот что %Inconsistent address and mask
в чем касяк?

Оглавление

  • подскажите плиииз по настройке VPN, Alex, 18:24 , 08-Авг-06, (1)
    • подскажите плиииз по настройке VPN, user, 18:54 , 08-Авг-06, (2)
      • подскажите плиииз по настройке VPN, user, 19:03 , 08-Авг-06, (3)
      • подскажите плиииз по настройке VPN, VAMPiR, 13:59 , 14-Сен-06, ( 7 )
      • подскажите плиииз по настройке VPN, AiratX, 10:22 , 09-Авг-06, (6)

      Сообщения по теме [Сортировка по времени, UBB]

      >когда ввожу Router(config)#ip route 192.168.5.234 255.255.255.0 tunnel0
      >пишет вот что %Inconsistent address and mask
      >в чем касяк?

      В неправильной маске или номере сети, в зависимости от того что нужно.

      скажите на 827 циске нет такой команды crypto? как тогда VPN создавать? я тото не пойму!

      еще маленький подвопросик.VPN можно создать межу Cisco-WIndows и Cisco-FreeeBSD

      >скажите на 827 циске нет такой команды crypto? как тогда VPN создавать?
      >я тото не пойму!

      IOS не поддерживает. Если IP Base то надо ее менять! sh ver в циске и на www.cisco.com смотреть по своей моделе какой IOS поддерживает security.

      >в чем касяк?

      часть конфига 2821

      crypto isakmp policy 10
      authentication pre-share
      crypto isakmp key MYVPN address 80.80.80.0 — ошибка тут (исправил на правильное)

      crypto map MYVPN 10 ipsec-isakmp
      ! Incomplete — этого не будет если все привильно
      set peer 80.80.80.0
      set transform-set VPN
      match address 101

      Внимательней надо быть.

      >еще маленький подвопросик.VPN можно создать межу Cisco-WIndows и Cisco-FreeeBSD

      На этот предмет тебе поможет www.gogle.com
      Удачи.

      conf t
      int tunn 0
      no cry map
      int gig 0/0
      cry map MYVPN

      на 827 ipsec появится если залить нужный ios.
      http://cisco.com/go/fn

      надписи ! Incomplete — быть недолжно
      а у тебя она потому что ты сослался на ACL 101
      match address 101
      а реально есть только ACL 102
      access-list 102 permit gre host 192.168.5.230 host 192.168.5.234
      поправь на тот который больше нравится и вперед за орденами


      Архив | Удалить

      Индекс форумов | Темы | Пред. тема | След. тема
      Оцените тред (1=ужас, 5=супер)? [ Рекомендовать для помещения в FAQ]

      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 не будет опубликован. Обязательные поля помечены *