|
|
ru.cisco- RU.CISCO --------------------------------------------------------------------- From : Edward Phetisoff 2:5020/400 29 Sep 2005 06:41:50 To : Victor Sudakov Subject : Re: dhcp snooping -------------------------------------------------------------------------------- "Victor Sudakov" <vas@mpeks.tomsk.su> сообщил/сообщила в новостях следующее: news:dhb6p7$12s0 Приветствую! > Уговорил, не хочу ее отключать. Пригодится. Hу вот, вроде отвечал на вопросы, а получилось что я еще и уговариваю... > > > задаче, этого и не требовалось... > > > > При использовании связки trusted-trusted и trusted-untrusted портов тоже > > непонятно какие у тебя проблемы возникли, > > Я непонятно изложил проблему? Если да, давай попробую переформулировать. > Я понял, чтобы ты не мучался, я предложил самый простой способ - no ip dhcp snooping information option. Сделай это на всех коммутаторах и будет тебе щасе... > Скажи, которые порты на каких свичах в данной топологии > > CustomerB > | > DHCP Server -Fe0/1- SwitchA -Fe0/2- SwitchB - CustomerA > | > CustomerC > > следует сделать trusted, если я на обоих свичах включаю сабж? > Очевидно, что Fe0/1 на SwitchA, а еще? > > > > насколько я помню такая > > конфигурация прекрасно работает. Комманда no ip dhcp snooping information option отключает изменение DHCP-пакетов. Выполнишь команду и все будет работать точно также как и до включения DHCP Snooping, только коммутатор будет хранить информацию о том какие адреса выданы машинам, подключенным к utrusted портам. trusted-порты, это, по сути, отключение DHCP Snooping per-port. Если такой вариант тебя не устраивает (no ip dhcp snooping information option), то ВСЕ транковые порты между коммутаторами SwitchA и SwitchB ЛУЧШЕ сделать как trusted. > > В смысле, это где-то у тебя работает? А нельзя ли взглянуть на конфиги? Где-то работает и подозреваю что не только у меня... Специально для тебя собрал стенд из того что было под рукой (DHCP сервер и клиент настрены на маршрутизаторах). Вроде как замечательно обрабатывается option-82 (без применения команды no ip dhcp snooping information option на коммутаторах), правда дальше чем назначение на четных портах коммутаторов одного диапозона адресов, а на нечетных другого моей фантазии не хватило, но думаю что этого будет более чем достаточно в качестве примера и ты сам все-таки разберешься :) Hастройки устройств и вывод sh cdp ne: SwitchA#sh cdp ne Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone Device ID Local Intrfce Holdtme Capability Platform Port ID DHCP_Server Fas 1/0/13 7 R S I 2651XM Fas0/1 SwitchB Fas 1/0/2 8 R S I WS-C3560-2Fas0/2 SwitchA#sh run int f1/0/2 Building configuration... Current configuration : 248 bytes ! interface FastEthernet1/0/2 switchport trunk encapsulation dot1q switchport mode trunk no logging event link-status spanning-tree bpduguard disable ip verify source port-security ip dhcp snooping limit rate 100 ip dhcp snooping trust end SwitchA#sh run int f1/0/23 Building configuration... Current configuration : 181 bytes ! interface FastEthernet1/0/23 switchport access vlan 2 switchport mode access no logging event link-status ip verify source port-security ip dhcp snooping limit rate 100 end SwitchA#sh run int f1/0/24 Building configuration... Current configuration : 149 bytes ! interface FastEthernet1/0/24 switchport access vlan 2 switchport mode access no logging event link-status ip dhcp snooping limit rate 100 end SwitchA#sh run int f1/0/13 Building configuration... Current configuration : 173 bytes ! interface FastEthernet1/0/13 switchport access vlan 2 switchport mode access no logging event link-status ip dhcp snooping limit rate 100 ip dhcp snooping trust end SwitchA#sh run | b ip dhcp ip dhcp snooping vlan 1-2 ip dhcp snooping database flash:snooping.txt ip dhcp snooping ! SwitchB#sh cdp ne Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone Device ID Local Intrfce Holdtme Capability Platform Port ID CustomerA Fas 0/23 9 R 2610 Eth0/0 SwitchA Fas 0/2 6 S I WS-C3750-2Fas1/0/2 SwitchB#sh run int f0/2 Building configuration... Current configuration : 183 bytes ! interface FastEthernet0/2 switchport trunk encapsulation dot1q switchport mode trunk spanning-tree portfast disable ip dhcp snooping limit rate 100 ip dhcp snooping trust end SwitchB#sh run int f0/23 Building configuration... Current configuration : 149 bytes ! interface FastEthernet0/23 switchport access vlan 2 switchport mode access ip verify source port-security ip dhcp snooping limit rate 100 end SwitchB#sh run int f0/24 Building configuration... Current configuration : 187 bytes ! interface FastEthernet0/24 switchport access vlan 2 switchport trunk encapsulation dot1q switchport mode access ip verify source port-security ip dhcp snooping limit rate 100 end SwitchB#sh run | b ip dhcp ip dhcp snooping vlan 2 ip dhcp snooping database flash:snooping.txt ip dhcp snooping ! CustomerA#sh cdp ne Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater Device ID Local Intrfce Holdtme Capability Platform Port ID SwitchB Eth 0/0 7 R S I WS-C3560-2Fas 0/23 CustomerA#sh run int e0/0 Building configuration... Current configuration : 77 bytes ! interface Ethernet0/0 bandwidth 100000 ip address dhcp half-duplex end DHCP_Server#sh cdp ne Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater Device ID Local Intrfce Holdtme Capability Platform Port ID SwitchA Fas 0/1 5 S I WS-C3750-2Fas 1/0/13 DHCP_Server#sh run | b ip dhcp ip dhcp relay information trust-all no ip dhcp use vrf connected ! ip dhcp pool test network 10.20.0.0 255.255.255.0 class test address range 10.20.0.20 10.20.0.30 class test1 address range 10.20.0.120 10.20.0.130 ! ! ip dhcp class test relay agent information relay-information hex 000000000000000100000000000000000000 mask ffffffffff fffffeffffffffffffffffffff ! ip dhcp class test1 relay agent information ! DHCP_Server#sh run int f0/1 Building configuration... Current configuration : 126 bytes ! interface FastEthernet0/1 bandwidth 100000 ip address 10.20.0.1 255.255.255.0 duplex auto speed auto no keepalive end Теперь начинаем подключать CustomerA к разным портам коммутаторов SwitchA и SwitchB Воткнул в четный порт коммутатора SwitchB CustomerA#sh ip int brief e0/0 Interface IP-Address OK? Method Status Protocol Ethernet0/0 10.20.0.120 YES DHCP up up SwitchA#sh ip dhcp sno bind MacAddress IpAddress Lease(sec) Type VLAN Interface ------------------ --------------- ---------- ------------- ---- ------ -------------- Total number of bindings: 0 SwitchB#sh ip dhcp snoop bind MacAddress IpAddress Lease(sec) Type VLAN Interface ------------------ --------------- ---------- ------------- ---- ------ -------------- 00:30:19:67:19:60 10.20.0.120 86251 dhcp-snooping 2 FastEthernet0/24 Total number of bindings: 1 Воткнул в четный порт коммутатора SwitchA CustomerA#sh ip int brief e0/0 Interface IP-Address OK? Method Status Protocol Ethernet0/0 10.20.0.121 YES DHCP up up SwitchB#sh ip dhcp snoop bind MacAddress IpAddress Lease(sec) Type VLAN Interface ------------------ --------------- ---------- ------------- ---- ------ -------------- Total number of bindings: 0 SwitchA#sh ip dhcp sno bind MacAddress IpAddress Lease(sec) Type VLAN Interface ------------------ --------------- ---------- ------------- ---- ------ -------------- 00:30:19:67:19:60 10.20.0.121 86330 dhcp-snooping 2 FastEthernet1/0/24 Total number of bindings: 1 Воткнул в нечетный порт коммутатора SwitchA CustomerA#sh ip int brief e0/0 Interface IP-Address OK? Method Status Protocol Ethernet0/0 10.20.0.20 YES DHCP up up SwitchA#sh ip dhcp sno bind MacAddress IpAddress Lease(sec) Type VLAN Interface ------------------ --------------- ---------- ------------- ---- ------ -------------- 00:30:19:67:19:60 10.20.0.20 86363 dhcp-snooping 2 FastEthernet1/0/23 Total number of bindings: 1 SwitchB#sh ip dhcp snoop bind MacAddress IpAddress Lease(sec) Type VLAN Interface ------------------ --------------- ---------- ------------- ---- ------ -------------- Total number of bindings: 0 Воткнул в нечетный порт коммутатора SwitchB CustomerA#sh ip int brief e0/0 Interface IP-Address OK? Method Status Protocol Ethernet0/0 10.20.0.21 YES DHCP up up SwitchB#sh ip dhcp snoop bind MacAddress IpAddress Lease(sec) Type VLAN Interface ------------------ --------------- ---------- ------------- ---- ------ -------------- 00:30:19:67:19:60 10.20.0.21 86361 dhcp-snooping 2 FastEthernet0/23 Total number of bindings: 1 SwitchA#sh ip dhcp sno bind MacAddress IpAddress Lease(sec) Type VLAN Interface ------------------ --------------- ---------- ------------- ---- ------ -------------- Total number of bindings: 0 > Мне действительно хотелось бы пообщаться с человеком, у которого это работает. Hадеюсь, что теперь ты сможешь общаться, по крайней мере, с зеркалом :) --- ifmail v.2.15dev5.3 * Origin: Demos online service (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.cisco/65774142d788.html, оценка из 5, голосов 10
|