ACL、DHCP snooping、DAIとport security2 / 10
DHCP snoopingとDAI
DHCP snoopingは信頼できるserver側のポートを区別し、untrusted側からの不正なserver応答などを防ぐ。配布を観測してIP、MAC、VLAN、port、leaseのbindingを作る。信頼するのはポートの向きであり、すべての端末ポートをtrustedにする方法は保護を失う。
DAIはARPを検査し、untrustedポートのIP/MACの対応をDHCP snooping bindingなどと照合する。これにより、別の端末をgatewayのMACへ対応付けるARP偽装などを防ぐ。静的IP端末はDHCPでbindingを作らないので、適切なARP ACLなどの対応が必要になる。
次はVLAN10にDHCP clientがおり、Gi1/0/24が信頼するserver/gateway側、Gi1/0/10が端末側という例である。
ip dhcp snooping
ip dhcp snooping vlan 10
ip arp inspection vlan 10
interface GigabitEthernet1/0/24
ip dhcp snooping trust
ip arp inspection trust
interface GigabitEthernet1/0/10
switchport mode access
switchport access vlan 10
ip dhcp snooping limit rate 15
DHCP snooping trustとDAI trustは別の指定である。trustedにしたDAIポートのARPは通常のbinding検査を受けないため、信頼する対向と範囲を限定する。
show ip dhcp snooping
show ip dhcp snooping binding
show ip arp inspection interfaces
show ip arp inspection statistics
1行目、2行目、3行目、4行目で有効VLAN・binding・信頼状態・drop理由を確認する。