Jump to content

Recommended Posts

Posted

Есть DGS-3120-24TC A1. на нем есть VLANы, используется L3 маршрутизация
Надо сделать так, чтобы на любые IP в 21 VLAN можно было попадать только с 1 конкретного IP из другой сети.
Заблокировать трафик в 21 VLAN получилось, а вот разрешить - никак.
Вот кусок конфига.

#-------------------------------------------------------------------------------

# ACL

create access_profile profile_id 1 profile_name printers ip source_ip_mask 255.255.255.255 destination_ip_mask 0.0.0.0
config access_profile profile_id 1 add access_id 1 ip source_ip 192.168.2.243 mask 255.255.255.255 destination_ip 0.0.0.0 mask 0.0.0.0 vlan_based vlan_id 21 permit
create access_profile profile_id 6 profile_name deny_all ip source_ip_mask 0.0.0.0 destination_ip_mask 0.0.0.0
config access_profile profile_id 6 add access_id 1 ip source_ip 0.0.0.0 destination_ip 0.0.0.0 vlan_based vlan_id 21 deny

#-------------------------------------------------------------------------------
Что я делаю не так?

 

Posted

А можно по-подробнее, пожалуйста?

Я вообще не могу вкурить логику списков доступа у длинка, в циске все просто и логично, а тут и в создании профиля маски задаются и в правилах.  Может есть ман, где все это нормально расписано, зачем все это

Posted

create access_profile profile_id 2 profile_name printers2 ip source_ip_mask 0.0.0.0 destination_ip_mask 255.255.255.255
config access_profile profile_id 2 add access_id 1 ip source_ip 0.0.0.0 mask 0.0.0.0 destination_ip 192.168.2.243 mask 255.255.255.255 vlan_based vlan_id 21 permit

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.