Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Giúp mình Revervation IP trong Catalyst 3750

    mình sử dụng catalyst 3750 và sử dụng DHCP trên catalyst 3750 để cấp IP cho network.

    mong quý thầy và các bạn chỉ giùm có cách nào revervation IP cho một số máy mà mình muốn với máy đó thì mình sẽ cấp IP mà mình định sẳn. tưng tự như revervation IP trong dịch vụ DHCP của Windows Server 2k3 vậy.

    Thank!
    (^_^) (^_^)

  • #2
    Hi cheowan

    Để dành riêng một dãy địa chỉ tĩnh thì bạn có thể dùng lệnh

    Router(config)#ip dhcp excluded-address 172.16.10.1 172.16.10.9


    Cấu hình đầy đủ có thể như dưới đây:

    Configuring DHCP

    Router(config)#ip dhcp pool academy

    --> Creates a DHCP pool called academy

    Router(dhcp-config)#network 172.16.10.0 255.255.255.0
    ---->Defines the range of addresses to be leased

    Router(dhcp-config)#default-router 172.16.10.1
    ---> Defines the address of the default router for the client

    Router(dhcp-config)#dns-server 172.16.10.10
    --->Defines the address of the DNS server for the client

    Router(dhcp-config)#netbios-name-server 172.16.10.10
    ----> Defines the address of the NetBIOS server for the client

    Router(dhcp-config)#domain-name empson.ca
    ---->Defines the domain name for the client

    Router(dhcp-config)#lease 14 12 23
    ----->Defines the lease time to be 14 days, 12 hours, 23 minutes

    Router(dhcp-config)#lease infinite
    ----->Sets the lease time to infinity (default time is 1 day)

    Router(dhcp-config)#exit

    Router(config)#ip dhcp excluded-address 172.16.10.1 172.16.10.9
    ----->Specifies the range of addresses not to be leased out to clients

    Router(config)#no service dhcp
    ----->Turns the DHCP service off (service is on by default in IOS)

    Router(config)#service dhcp
    ---->Turns the DHCP service on
    Đặng Quang Minh, CCIEx2#11897 (Enterprise Infrastructure, Wireless), DEVNET, CCSI#31417

    Email : dangquangminh@vnpro.org
    https://www.facebook.com/groups/vietprofessional/

    Comment


    • #3
      cám ơn anh Dangquangminh đã chỉ dẫn. Nhưng anh ơi em muốn như vậy nè! anh chỉ em nha.

      Em cấp range DHCP là 172.16.10.50 172.16.10.200, em muốn cấp client trong dãy này tất cả các máy client đều sử dụng DHCP hết.

      Trường hợp máy của sếp, em muốn cái IP 172.16.10.79 mà lúc DHCP cấp cho máy sếp sẽ được cấp mãi mãi cho máy sếp luôn. DHCP sẽ ko cấp cho client khác địa chỉ này.

      Như vậy mình sẽ làm sao để cho DHCP biết là IP 172.16.10.79 chỉ cấp cho máy sếp em mà thôi. thường là mình dựa vào Mac Address phải ko anh?

      Anh dangquangminh ơi ý em là nhu vậy đó, anh chỉ em với!
      (^_^) (^_^)

      Comment


      • #4
        Manual Bindings Configuration Example

        The following example creates a manual binding for a client named Mars.cisco.com. The MAC address of the client is 02c7.f800.0422 and the IP address of the client is 172.16.2.254.

        ip dhcp pool Mars

        host 172.16.2.254

        hardware-address 02c7.f800.0422 ieee802

        client-name Mars
        Đặng Quang Minh, CCIEx2#11897 (Enterprise Infrastructure, Wireless), DEVNET, CCSI#31417

        Email : dangquangminh@vnpro.org
        https://www.facebook.com/groups/vietprofessional/

        Comment


        • #5
          thank anh Dangquangminh nhiều lắm!
          (^_^) (^_^)

          Comment

          Working...
          X