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 have two wired hosts (a desktop and a laptop) connected to a router that also has a DHCP server enabled for WiFi access. When I restart my wired machines, they get assigned a secondary IP address by the DHCP server on the router. I want the wired hosts only to use static IP addresses. Is there any way I can have mixed static/dynamic addresses on the same router?

Both my wired machines are running Arch Linx. The router is a stock TP-Link WR1041N.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Rather than setting static IP addresses on the wired machines, you should use MAC address reservations on the TP-Link router.

This will have the same effect - static IP addresses - but without the added secondary IP addresses.

share|improve this answer

I haven't worked with Arch Linux yet, but from what I understand, you would like to configure static addresses for both of your wired hosts.

You can take a look at the network configuration guide for arch linux.

Like most linux systems, you can set the IP address for an interface with the command line :

  • ip addr add 192.168.1.2/24 broadcast 192.168.1.255 dev eth0

Other than that, there seems to be the dhcpcd (not to be confused with the dhcpd service) service that runs on the arch linux operating system which takes care of getting an IP address from the dhcp server. Shutting down the service would solve the issue you are having.

share|improve this answer
    
I've set the static IP address using netctl. I've also disabled dhcpcd, so I'm not sure how the secondary IP address is getting set. –  Reed G. Law Jul 16 at 6:20

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.