kamae1ka Posted November 13, 2012 Posted November 13, 2012 имеем 2 свича des 1210-28 и 3200-28 оба хочу завести на opt 82, 1210-28 заводится на ура с такими параметрами - class "vlan2011_port1" { match if ( binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 4, 2)) = "1" and substring(option agent.remote-id, 2, 15) = "10.0.104.11" ); pool { range 10.34.1.33; allow members of "vlan2011_port1"; } на этих рабьотает хорошо, а вот 3200-28 не пускает, мб у кого есть circuit-id remote-id Для них? или как расшифровать пакет? я бы сам разобрался но в пакетах не шлется данных о opt 82 Running as user "root" and group "root". This could be dangerous. Capturing on eth3.1999 Frame 1 (342 bytes on wire, 342 bytes captured) Arrival Time: Nov 13, 2012 07:06:14.331491000 [Time delta from previous captured frame: 0.000000000 seconds] [Time delta from previous displayed frame: 0.000000000 seconds] [Time since reference or first frame: 0.000000000 seconds] Frame Number: 1 Frame Length: 342 bytes Capture Length: 342 bytes [Frame is marked: False] [Protocols in frame: eth:ip:udp:bootp] Ethernet II, Src: cc:b2:55:7a:6b:80 (cc:b2:55:7a:6b:80), Dst: ac:16:2d:a4:2f:75 (ac:16:2d:a4:2f:75) Destination: ac:16:2d:a4:2f:75 (ac:16:2d:a4:2f:75) Address: ac:16:2d:a4:2f:75 (ac:16:2d:a4:2f:75) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Source: cc:b2:55:7a:6b:80 (cc:b2:55:7a:6b:80) Address: cc:b2:55:7a:6b:80 (cc:b2:55:7a:6b:80) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Type: IP (0x0800) Internet Protocol, Src: 10.0.104.15 (10.0.104.15), Dst: 10.0.104.1 (10.0.104.1) Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00) 0000 00.. = Differentiated Services Codepoint: Default (0x00) .... ..0. = ECN-Capable Transport (ECT): 0 .... ...0 = ECN-CE: 0 Total Length: 328 Identification: 0x0144 (324) Flags: 0x00 0.. = Reserved bit: Not Set .0. = Don't fragment: Not Set ..0 = More fragments: Not Set Fragment offset: 0 Time to live: 30 Protocol: UDP (0x11) Header checksum: 0xb651 [correct] [Good: True] [bad : False] Source: 10.0.104.15 (10.0.104.15) Destination: 10.0.104.1 (10.0.104.1) User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67) Source port: bootpc (68) Destination port: bootps (67) Length: 308 Checksum: 0xc8da [validation disabled] [Good Checksum: False] [bad Checksum: False] Bootstrap Protocol Message type: Boot Request (1) Hardware type: Ethernet Hardware address length: 6 Hops: 1 Transaction ID: 0xa52429e1 Seconds elapsed: 0 Bootp flags: 0x0000 (Unicast) 0... .... .... .... = Broadcast flag: Unicast .000 0000 0000 0000 = Reserved flags: 0x0000 Client IP address: 0.0.0.0 (0.0.0.0) Your (client) IP address: 0.0.0.0 (0.0.0.0) Next server IP address: 0.0.0.0 (0.0.0.0) Relay agent IP address: 10.0.104.15 (10.0.104.15) Client MAC address: 3c:97:0e:05:3e:68 (3c:97:0e:05:3e:68) Client hardware address padding: 00000000000000000000 Server host name not given Boot file name not given Magic cookie: (OK) Option: (t=53,l=1) DHCP Message Type = DHCP Discover Option: (53) DHCP Message Type Length: 1 Value: 01 Option: (t=61,l=7) Client identifier Option: (61) Client identifier Length: 7 Value: 013C970E053E68 Hardware type: Ethernet Client MAC address: 3c:97:0e:05:3e:68 (3c:97:0e:05:3e:68) Option: (t=12,l=10) Host Name = "tel-kom-nk" Option: (12) Host Name Length: 10 Value: 74656C2D6B6F6D2D6E6B Option: (t=60,l=8) Vendor class identifier = "MSFT 5.0" Option: (60) Vendor class identifier Length: 8 Value: 4D53465420352E30 Option: (t=55,l=12) Parameter Request List Option: (55) Parameter Request List Length: 12 Value: 010F03062C2E2F1F2179F92B 1 = Subnet Mask 15 = Domain Name 3 = Router 6 = Domain Name Server 44 = NetBIOS over TCP/IP Name Server 46 = NetBIOS over TCP/IP Node Type 47 = NetBIOS over TCP/IP Scope 31 = Perform Router Discover 33 = Static Route 121 = Classless Static Route 249 = Private/Classless Static Route (Microsoft) 43 = Vendor-Specific Information End Option Padding Вставить ник Quote
Garant-Multicom Posted November 13, 2012 Posted November 13, 2012 имеем 2 свича des 1210-28 и 3200-28 оба хочу завести на opt 82, 1210-28 заводится на ура с такими параметрами - class "vlan2011_port1" { match if ( binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 4, 2)) = "1" and substring(option agent.remote-id, 2, 15) = "10.0.104.11" ); pool { range 10.34.1.33; allow members of "vlan2011_port1"; } У меня 3200-28 работает следующим образом: class "10.0.1.23:p1" { match if binary-to-ascii (10, 8, "", suffix( option agent.circuit-id, 1)) = "1" and binary-to-ascii(10, 8, ".", packet(24, 4)) = "10.0.1.23"; } pool { range 192.168.12.5; allow members of "10.0.1.23:p1"; } Вставить ник Quote
kamae1ka Posted November 14, 2012 Author Posted November 14, 2012 Дело было в ДНК, не правильно настраивал на свиче, ISC-dhcp Работает на ура! Вставить ник Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.