Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm working on setting up a home web/file server together with a new-to-me Cisco router. This router does not support setting ip addresses on the interfaces, because of some peculiarities (its a switch and a router). The result is most help focuses on dhcp, but I want to configure the server with a static IP. Then I discovered binding.

Now I have what I wanted, a permanent inside IP for the server. But, now I question how to setup the server--continue with DHCP for its address and DNS servers, or should I setup this CentOS server's network settings /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/resolv.conf using static settings? And what about DNS?

share|improve this question
    
In general, when setting up dhcp reservations on a router, it is recommended to set the client up as dhcp instead of static. –  BrianAdkins Feb 19 at 1:21
    
Since this is a best practice question, I'll mark as answer the highest vote. –  xtian Feb 19 at 13:59

2 Answers 2

up vote 2 down vote accepted

I don't have any particular familiarity with Cisco hardware, but if your router supports static binding (Static DHCP, fixed-address, IP reservation, whatever it happens to be called), you don't need to set a static IP on the server. Just configure it for DHCP as you normally would. The router will always assign the same IP as long as your MAC address doesn't change.

share|improve this answer

You don't have to, but you should. It's good practice for the cases where forget you have a specific binding on that port and you decided to unplug that port and move whatever was plugged in there to a different port.

Generally speaking, if you're using a switch instead of a router, you should build the DHCP/DNS/NTP/etc... on a box that specifically services these things if you don't plan on getting a cheap router to manage it for you.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.