Home | Site Map | Cisco How ToNet How To | Wireless |Search | Forums | Services | Donations | Careers | About Us | Contact Us|

Import DHCP Reservation or Options only

Active Directory, Domain, DNS, WINS, DHCP, SBS, New Releases.

Import DHCP Reservation or Options only

Postby chicagotech » Fri Aug 29, 2008 4:06 pm

Situation: the client wants to import DHCP options or reservation from other DHCP server.

Resolution: if you want to import only part of DHCP data, for example DHCP options or reservation, you can export the DHCP data first and modify the txt file by deleting other data. The following are some example.

This is exported data:


Changed the current scope context to 10.0.0.0 scope.

Dhcp Server 10.0.0.29 add scope 10.0.0.0 255.255.0.0 "10.0.0.0" "Chicagotech Scope"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 set state 1

# ======================================================================
# Start Add Ipranges to the Scope 10.0.0.0, Server 10.0.0.29
# ======================================================================


Dhcp Server 10.0.0.29 Scope 10.0.0.0 Add iprange 10.0.0.1 10.0.255.254

# ======================================================================
# End Add Ipranges to the Scope 10.0.0.0, Server 10.0.0.29
# ======================================================================


# ======================================================================
# Start Add Excluderanges to the Scope : 10.0.0.0, Server : 10.0.0.29
# ======================================================================


Dhcp Server 10.0.0.29 Scope 10.0.0.0 add excluderange 10.0.0.1 10.0.0.255
Dhcp Server 10.0.0.29 Scope 10.0.0.0 add excluderange 10.0.5.1 10.0.255.254

# ======================================================================
# End Add Excluderanges to the Scope : 10.0.0.0, Server : 10.0.0.29
# ======================================================================


# ======================================================================
# Start Add OptionValues to the Scope : 10.0.0.0, Server : 10.0.0.29
# ======================================================================


Dhcp Server 10.0.0.29 Scope 10.0.0.0 set optionvalue 3 IPADDRESS "10.0.0.2"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 set optionvalue 6 IPADDRESS "10.0.0.29" "10.0.0.19"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 set optionvalue 15 STRING "chicagotech.net"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 set optionvalue 44 IPADDRESS "10.0.0.29" "10.0.0.19"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 set optionvalue 46 BYTE "8"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 set optionvalue 51 DWORD "691200"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 set optionvalue 241 IPADDRESS vendor="Cisco Aironet 1240 Series" "10.0.20.102"

# ======================================================================
# End Add OptionValues to the Scope : 10.0.0.0, Server : 10.0.0.29
# ======================================================================


# ======================================================================
# Start Add ReservedIp to the Scope : 10.0.0.0, Server : 10.0.0.29
# ======================================================================


Dhcp Server 10.0.0.29 Scope 10.0.0.0 Add reservedip 10.0.0.101 00095b3da327 "MR814.chicagotech.net" "Netgear Wireless Router" "DHCP"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 Add reservedip 10.0.0.103 000048248f93 "epson835p" "This is for wired" "DHCP"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 Add reservedip 10.0.0.96 0000aa8bfc68 "XRX8BFC68.chicagotech.net." "" "DHCP"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 Add reservedip 10.0.30.16 000393df7d32 "AirPort2" "Ann-Marrie" "BOTH"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 Add reservedip 10.0.30.21 000933e16e8e "AirPort3" "Center" "BOTH"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 Add reservedip 10.0.30.81 001c58b182be "CAFE AP1" "" "BOTH"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 Add reservedip 10.0.30.82 001c58b1868e "CAFE AP2" "" "BOTH"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 Add reservedip 10.0.30.83 001c58b18b62 "CAFE AP3" "" "BOTH"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 Add reservedip 10.0.30.84 001c58b18b66 "CAFE AP4" "" "BOTH"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 Add reservedip 10.0.30.85 001c58b18b6e "CAFE AP5" "" "BOTH"
Dhcp Server 10.0.0.29 Scope 10.0.0.0 Add reservedip 10.0.30.86 001c58b182c0 "CAFE AP6" "" "BOTH"

# ======================================================================
# End Add ReservedIp to the Scope : 10.0.0.0, Server : 10.0.0.29
# ======================================================================

This is for DHCP Reservation only:

# ======================================================================
# Start Add ReservedIp to the Scope : 10.0.0.0, Server : 10.0.0.17
# ======================================================================


Dhcp Server 10.0.0.17 Scope 10.0.0.0 Add reservedip 10.0.0.101 00095b3da327 "MR814.chicagotech.net" "Netgear Wireless Router" "DHCP"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 Add reservedip 10.0.0.103 000048248f93 "epson835p" "This is for wired" "DHCP"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 Add reservedip 10.0.0.96 0000aa8bfc68 "XRX8BFC68.chicagotech.net." "" "DHCP"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 Add reservedip 10.0.30.16 000393df7d32 "AirPort2" "Ann-Marrie" "BOTH"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 Add reservedip 10.0.30.21 000933e16e8e "AirPort3" "Center" "BOTH"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 Add reservedip 10.0.30.81 001c58b182be "CAFE AP1" "" "BOTH"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 Add reservedip 10.0.30.82 001c58b1868e "CAFE AP2" "" "BOTH"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 Add reservedip 10.0.30.83 001c58b18b62 "CAFE AP3" "" "BOTH"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 Add reservedip 10.0.30.84 001c58b18b66 "CAFE AP4" "" "BOTH"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 Add reservedip 10.0.30.85 001c58b18b6e "CAFE AP5" "" "BOTH"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 Add reservedip 10.0.30.86 001c58b182c0 "CAFE AP6" "" "BOTH"

# ======================================================================
# End Add ReservedIp to the Scope : 10.0.0.0, Server : 10.0.0.17
# ======================================================================

This is for Options only.


# ======================================================================
# Start Add OptionValues to the Scope : 10.0.0.0, Server : 10.0.0.29
# ======================================================================


Dhcp Server 10.0.0.17 Scope 10.0.0.0 set optionvalue 3 IPADDRESS "10.0.0.2"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 set optionvalue 6 IPADDRESS "10.0.0.29" "10.0.0.19"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 set optionvalue 15 STRING "chicagotech.net"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 set optionvalue 44 IPADDRESS "10.0.0.29" "10.0.0.19"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 set optionvalue 46 BYTE "8"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 set optionvalue 51 DWORD "691200"
Dhcp Server 10.0.0.17 Scope 10.0.0.0 set optionvalue 241 IPADDRESS vendor="Cisco Aironet 1240 Series" "10.0.20.102"

# ======================================================================
# End Add OptionValues to the Scope : 10.0.0.0, Server : 10.0.0.17
# ======================================================================
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
chicagotech
Site Admin
 
Posts: 6934
Joined: Mon Nov 27, 2006 1:24 pm
Location: Chicago USA

Return to Windows

Your Ad Here

Who is online

Users browsing this forum: No registered users and 9 guests