Jump to content

Recommended Posts

Posted

Здравствуйте! Хотелось узнать правильно ли я понимаю.

Дано:

 

Сеть: 10.10.72.0 255.255.248.0

Настроен DHCP

Теперь вопрос:

Есть адреса, например: 10.10.72.100, 10.10.74.66, 10.10.73.55 и тд

Которые входят получается в пул, но мне надо что бы они были статичны.

Как я понимаю, делаем примерно так:

 

ip dhcp pool PRINTER

host 10.10.74.66 255.255.248.0

client-identifier 0178.e7d1.aa8f.5d

 

 

И получается, что так для каждого нужного мне Ip создавать отдельный пул?

Posted (edited)

Какая циска? На каталистах можно в основном пуле прописывать, например:

 

ip dhcp pool Inet_Full_Access
  network 10.96.96.0 255.255.252.0
  default-router 10.96.96.1
  dns-server 10.131.10.180 10.131.11.120
  domain-name local
  option 150 ip 10.96.36.2
  lease 8
  address 10.96.96.162 client-id 0168.b599.e04a.12
  address 10.96.96.180 client-id 0160.eb69.580c.db
  address 10.96.97.112 client-id 0100.1e90.e6ff.f2
!

 

На роутерах действительно, нужно отдельными пулами.

Если сеть большая, то подобные службы нужно размещать на серверах. Вируталочку с CentOS и bind или kea-dhcpd сделать можно быстро и легко.

Edited by ShyLion
Posted

Какая циска? На каталистах можно в основном пуле прописывать, например:

 

ip dhcp pool Inet_Full_Access
  network 10.96.96.0 255.255.252.0
  default-router 10.96.96.1
  dns-server 10.131.10.180 10.131.11.120
  domain-name local
  option 150 ip 10.96.36.2
  lease 8
  address 10.96.96.162 client-id 0168.b599.e04a.12
  address 10.96.96.180 client-id 0160.eb69.580c.db
  address 10.96.97.112 client-id 0100.1e90.e6ff.f2
!

 

На роутерах действительно, нужно отдельными пулами.

Если сеть большая, то подобные службы нужно размещать на серверах. Вируталочку с CentOS и bind или kea-dhcpd сделать можно быстро и легко.

 

Cisco 4321

Posted

на некоторых моделях

client-id 0168.b599.e04a.12 01 перед маком означает, что это клиент номер 1

client-id 0260.eb69.580c.db 02 2

client-id 0300.1e90.e6ff.f2 03 3

 

так что для некоторых будет рабочей такая конфигурация. точно, для некоторых версий ios 3850 (l3 switch). для других будет верным exclude address.

Posted

на некоторых моделях

client-id 0168.b599.e04a.12 01 перед маком означает, что это клиент номер 1

client-id 0260.eb69.580c.db 02 2

client-id 0300.1e90.e6ff.f2 03 3

 

так что для некоторых будет рабочей такая конфигурация. точно, для некоторых версий ios 3850 (l3 switch). для других будет верным exclude address.

А разве перед MAC-адресом может стоять что-то, отличное от 01? 01 - признак среды Ethernet.

Posted

https://technet.microsoft.com/en-us/library/cc977614.aspx

Для справки.

 

Вот еще: https://www.ietf.org/rfc/rfc2132.txt

 

9.14. Client-identifier

 

This option is used by DHCP clients to specify their unique

identifier. DHCP servers use this value to index their database of

address bindings. This value is expected to be unique for all

clients in an administrative domain.

 

Identifiers SHOULD be treated as opaque objects by DHCP servers.

 

The client identifier MAY consist of type-value pairs similar to the

'htype'/'chaddr' fields defined in [3]. For instance, it MAY consist

of a hardware type and hardware address. In this case the type field

SHOULD be one of the ARP hardware types defined in STD2 [22]. A

hardware type of 0 (zero) should be used when the value field

contains an identifier other than a hardware address (e.g. a fully

qualified domain name).

 

For correct identification of clients, each client's client-

identifier MUST be unique among the client-identifiers used on the

subnet to which the client is attached. Vendors and system

administrators are responsible for choosing client-identifiers that

meet this requirement for uniqueness.

 

The code for this option is 61, and its minimum length is 2.

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 и с Политикой конфиденциальности.