URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID6
Нить номер: 1844
[ Назад ]

Исходное сообщение
"PortMapping - Static entry in use, cannot change"

Отправлено dvi , 21-Окт-15 14:38 
Добрый день.

Имею на роутере:
ip nat inside source static tcp 192.168.0.20 1723 interface Dialer1 1723

Хочу добавить:
Router(config)#ip nat inside source static tcp 192.168.0.20 1723 interface FastEthernet0/1.8 1723
%Static entry in use, cannot change

Как решить такое?


Содержание

Сообщения в этом обсуждении
"PortMapping - Static entry in use, cannot change"
Отправлено eRIC , 21-Окт-15 15:46 
> Как решить такое?

может сперва нужно удалить? :)

#no ip nat inside source static tcp 192.168.0.20 1723 interface Dialer1 1723
(возможно придется так же сделать clear ip nat translations * - если будет ругаться)
#ip nat inside source static tcp 192.168.0.20 1723 interface FastEthernet0/1.8 1723



"PortMapping - Static entry in use, cannot change"
Отправлено dvi , 22-Окт-15 12:26 
>> Как решить такое?
> может сперва нужно удалить? :)

Удалить не могу. Нужны обе строки.

> #no ip nat inside source static tcp 192.168.0.20 1723 interface Dialer1 1723
> (возможно придется так же сделать clear ip nat translations * - если
> будет ругаться)
> #ip nat inside source static tcp 192.168.0.20 1723 interface FastEthernet0/1.8 1723

Даже когда делаю  clear ip nat trans *
и ввожу, то вторая запись не добавляется, а заменяет первую.


"PortMapping - Static entry in use, cannot change"
Отправлено eRIC , 22-Окт-15 16:05 
> Удалить не могу. Нужны обе строки.

обе никак, только одно. переводить с английского думаю нет смысла: %Static entry in use, cannot change

> Даже когда делаю  clear ip nat trans *
> и ввожу, то вторая запись не добавляется, а заменяет первую.

правильно должно быть только одно правило с данными критериями...



"PortMapping - Static entry in use, cannot change"
Отправлено crash , 23-Окт-15 09:45 
>> Удалить не могу. Нужны обе строки.
> обе никак, только одно. переводить с английского думаю нет смысла: %Static entry
> in use, cannot change
>> Даже когда делаю  clear ip nat trans *
>> и ввожу, то вторая запись не добавляется, а заменяет первую.
> правильно должно быть только одно правило с данными критериями...

ради интереса попробовал добавить у себя, и добавилось
ip nat inside source static tcp 192.168.24.42 8191 8.25.14.2 8191 extendable
ip nat inside source static tcp 192.168.24.42 8191 2.25.15.111 8191 extendable


"PortMapping - Static entry in use, cannot change"
Отправлено eRIC , 23-Окт-15 10:41 
> ради интереса попробовал добавить у себя, и добавилось
> ip nat inside source static tcp 192.168.24.42 8191 8.25.14.2 8191 extendable
> ip nat inside source static tcp 192.168.24.42 8191 2.25.15.111 8191 extendable

верно потому что с "extendable" дается возможность более гибко настроить правило, к примеру натравливать на mapы, которые дальше делают свою работу

цитата из циски:

"Extendable" static translations:
The extendable keyword allows the user to configure several ambiguous static translations, where an ambiguous translations are translations with the same local or global address.
ip nat inside source static <localaddr> <globaladdr> extendable
Some customers want to use more than one service provider and translate into each provider's address space. You can use route-maps to base the selection of global address pool on output interface as well as an access-list match. Following is an example:
ip nat pool provider1-space ...
ip nat pool provider2-space ...
ip nat inside source route-map provider1-map pool provider1-space
ip nat inside source route-map provider2-map pool provider2-space
!
route-map provider1-map permit 10
  match ip address 1
  match interface Serial0/0
!
route-map provider2-map permit 10
  match ip address 1
  match interface Serial0/1
Once that is working, they might also want to define static mappings for a particular host using each provider's address space. The software does not allow two static translations with the same local address, though, because it is ambiguous from the inside. The router will accept these static translations and resolve the ambiguity by creating full translations (all addresses and ports) if the static translations are marked as "extendable". For a new outside-to-inside flow, the appropriate static entry will act as a template for a full translation. For a new inside-to-outside flow, the dynamic route-map rules will be used to create a full translation.