sirmax1 писал(а):
Как мне это надоело, уже раз 10 тут тема поднималась, с нудевым результатом.
Потому, просьба ответить здесь.
Есть 2 свитча.
Код:
[172.19.6.4]--[172.19.6.3]--[3627G]
на 172.19.6.4
Код:
# VLAN
disable asymmetric_vlan
config vlan default delete 1-26
config vlan default advertisement enable
create vlan VLAN2616 tag 2616
config vlan VLAN2616 add tagged 25-26
config vlan VLAN2616 add untagged 1-24
config vlan VLAN2616 advertisement disable
Код:
# IPBIND
config address_binding ip_mac ports 1-24 state enable
config address_binding ip_mac ports 1-24 allow_zeroip enable
config address_binding ip_mac ports 1-24 forward_dhcppkt disable
disable address_binding acl_mode
disable address_binding trap_log
enable address_binding dhcp_snoop
config address_binding dhcp_snoop max_entry ports 1-26 limit 5
Код:
# DHCP_RELAY
enable dhcp_relay
config dhcp_relay hops 4 time 0
config dhcp_relay option_82 state enable
config dhcp_relay option_82 check disable
config dhcp_relay option_82 policy replace
config dhcp_relay option_82 remote_id user_define "172.19.6.4"
config dhcp_relay option_60 state disable
config dhcp_relay option_60 default mode drop
config dhcp_relay option_61 state disable
config dhcp_relay option_61 default drop
config dhcp_relay add ipif System 10.0.0.1
config dhcp_relay add ipif System 172.16.0.1
Код:
# DHCP_LOCAL_RELAY
enable dhcp_local_relay
config dhcp_local_relay option_82 ports 1-26 policy keep
Натройки второго свитча отличаются только
Код:
config dhcp_relay option_82 remote_id user_define "172.9.6.3"
В этой схеме, я часто вижу, что абонент, запросив ip с портов 1-24
свтча 172.19.6.3 получают ip как будто они включены в порт 25 свитча 172.19.6.4, и, естественно, не работаю.
Это значит, что широковещательный запрос доходит до свитча 172.19.6.4 и не фильтруется свитчем 172.19.6.3.
Если этой информации недостаточно - просьба сообщить какая еще информация нужна.
проблему можно обойти на сервере, написав нужные классы
типа:
class "match_v3_sw004"
{
#match vlan 3 1-24 ports not 25-28
match if (
binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 2,2)) = "3"
and substring(option agent.remote-id, 2, 15) = "sw004"
and not (
binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 4, 2)) = "0"
or binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 4, 2)) = "25"
or binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 4, 2)) = "26"
or binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 4, 2)) = "27"
or binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 4, 2)) = "28"
)
);
}[/quote]