Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HELP - eth1 changing ip addr back to older addr
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2351
Location: Kentucky

PostPosted: Tue Feb 20, 2018 2:18 am    Post subject: HELP - eth1 changing ip addr back to older addr Reply with quote

I have a machine with several ethernet devices. Due to some equipment changes, I am having to reconfigure some ip addresses.
On the effected machine, eth1 used to be 192.168.0.3, but I now need to change that to 192.168.4.3.
When I issue the command:
Code:

ifconfig eth1 192.168.4.3

it works, but a short time later, it reverts back to its old ip address of 192.168.0.3.

What is going on here?

Am I failing to change a config file somewhere, and the system is trying to repair itself?
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1844
Location: Oranienburg/Germany

PostPosted: Tue Feb 20, 2018 8:13 am    Post subject: Reply with quote

Hi,

are you running something like NetworkManager on this machine? Maybe it helps setting the IP in /etc/conf.d/net for the particular device and restart the device afterwards.

greets, bb
_________________
Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB
Back to top
View user's profile Send private message
snkmoorthy
Guru
Guru


Joined: 19 Nov 2002
Posts: 376

PostPosted: Tue Feb 20, 2018 9:17 am    Post subject: Reply with quote

Gentoo Handbook - Networking

Quote:
Note
If no configuration is mentioned for an interface then DHCP is assumed.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54099
Location: 56N 3W

PostPosted: Tue Feb 20, 2018 10:09 am    Post subject: Reply with quote

Moriah,

I guess you have dhcp handing out the old address every time the lease expires.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2351
Location: Kentucky

PostPosted: Tue Feb 20, 2018 12:49 pm    Post subject: Reply with quote

Thanks neddy and snkmoorthy. I must have been half asleep not to have realized this. DUH!
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum