Secondary IP addresses using dhcpcd.conf

Kernels & Hardware, configuring network, installing services

Secondary IP addresses using dhcpcd.conf

Postby neilneil2000 » 2017-08-28 07:51

Hi,

I have been wrestling with this problem for a while now and still cannot get the configuration I am after.

My goal is to have two IPv4 addresses associated with the wlan0 interface such that I can communicate with the server on either. Prior to the introduction of dhcpcd in Jessie I would have edited /etc/network/interfaces to include a statement for "interface wlan0" and "interface wlan0:0" however with the new dhcpcd.conf method of network configuration I have been unable to replicate this.

I have tried several approaches including the arping command and referencing out to profile stanzas within the dhcpcd.conf file but to no avail.

Can anyone shed some light on this for me? TIA
neilneil2000
 
Posts: 6
Joined: 2017-08-28 07:40

Re: Secondary IP addresses using dhcpcd.conf

Postby neilneil2000 » 2017-09-11 05:55

If people don't know the answer, are there any suggestions of where to look? I have tried all the FAQs and documents I could find.
neilneil2000
 
Posts: 6
Joined: 2017-08-28 07:40

Re: Secondary IP addresses using dhcpcd.conf

Postby TonyT » 2017-09-11 10:37

If a server why are you using dhcp? It should have static ip addresses. Try that.
https://wiki.debian.org/NetworkConfigur ... _Interface
TonyT
 
Posts: 525
Joined: 2006-09-04 11:57

Re: Secondary IP addresses using dhcpcd.conf

Postby neilneil2000 » 2017-09-13 12:46

The latest versions of Jessie state that static IP configuration should be done via the dhcpcd configuration file - there are notes in /etc/network/interfaces to this effect and indeed manual edits to the interfaces file are overwritten.

I realise I can disable the dhcpcd service which I am happy to do, but this would be avoiding the problem rather than understanding how to address it.
neilneil2000
 
Posts: 6
Joined: 2017-08-28 07:40


Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable