Skip Navigation Links | |
Exit Print View | |
![]() |
Sun Ethernet Fabric Operating System DHCP Administration Guide |
Enabling and Disabling the DHCP Server
Specify the Amount of Time After Which an IP Address Is Made Available
Configuring DHCP Global Options
Configure the End IP for the Address Pool
Configure the Utilization Threshold
Create an Excluded Address in the Pool
Configuring Pool-Specific Options
Configure a Domain Name Option
Configure the NetBIOS Name Server
Configure the NetBIOS Node Type
Remove a Configured Default Router Subnet Option
Configure Options Specific to Address Pools
Configure Host-Specific Options
Enabling and Disabling Debug Traces for the DHCP Server
Enable Debug Traces for the DHCP Server
Disable Debug Traces for the DHCP Server
Configuring an Interface to Acquire or Use an IP Address
Delete a Binding Entry From the Server
Configure an Interface to Use a Manual IP Address
Configure a DHCP Server Address
Configuring Relay Agent Options
Enable the Relay Agent Information
Configure Relay Agent Suboptions
Enable Traces for the DHCP Relay Agent
Acquire an IP Address From a Server Residing Outside the Client Network
In this example, switch 1 is the DHCP server, and switch 2 is the DHCP client. vlan1 of switch 2 must be allocated with a dynamic IP. In addition, the address pool is pool 1, the network address is 12.0.0.0, and the mask option is 255.255.0.0.
SEFOS# configure terminal SEFOS(config)# service dhcp-server
SEFOS(config)# ip dhcp pool 1
SEFOS(dhcp-config)# network 12.0.0.0 255.0.0.0 SEFOS(dhcp-config)# end
SEFOS# show ip dhcp server pools Pool Id : 1 ------------------------------------------- Subnet : 12.0.0.0 Subnet Mask : 255.0.0.0 Lease time : 3600 secs Utilization threshold : 75% Start Ip : 12.0.0.1 End Ip : 12.255.255.255 Subnet Options -------------- Code : 1, Value : 255.255.0.0
Note that DHCP does not cross the subnet.
SEFOS# show ip dhcp server information DHCP server status : Enable Send Ping Packets : Disable Debug level : None Server Address Reuse Timeout : 5 secs Next Server Address : 0.0.0.0 Boot file name : NULL
SEFOS# configure terminal SEFOS(config)# interface ex 0/41 SEFOS(config-if)# no shutdown SEFOS(config-if)# exit
SEFOS(config)# vlan 41 SEFOS(config-vlan)# port ex 0/41 SEFOS(config-vlan)# exit
SEFOS(config)# interface vlan 41 SEFOS(config-if)# no shutdown SEFOS(config-if)# ip address 12.0.0.1 255.255.255.0 SEFOS(config-if)# end SEFOS#
SEFOS# configure terminal SEFOS(config)# interface ex 0/41 SEFOS(config-if)# no shutdown SEFOS(config-if)# exit
SEFOS(config)# vlan 41 SEFOS(config-vlan)# port ex 0/41 SEFOS(config-vlan)# exit
SEFOS(config)# interface vlan 41 SEFOS(config-if)# no shutdown SEFOS(config-if)# ip address dhcp SEFOS(config-if)# end SEFOS#
SEFOS# show ip interface
The output in the switch 2 is:
vlan41 is up, line protocol is up Internet Address is 12.0.0.2/8 Broadcast Address 12.255.255.255 IP address allocation method is dynamic IP address allocation protocol is dhcp
SEFOS# show ip dhcp server binding Ip Hw Hw Binding Expire Address Type Address State Time --------- ------- --------------- ---------- ---------- 12.0.0.2 Ethernet 00:02:02:03:04:01 Assigned Jan 7 11:22:37 2007
SEFOS# show ip dhcp server statistics Address pools : 1 Message Received ------- -------- DHCPDISCOVER 1 DHCPREQUEST 1 DHCPDECLINE 0 DHCPRELEASE 0 DHCPINFORM 0 Message Sent ------- ---- DHCPOFFER 1 DHCPACK 1 DHCPNAK 0