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: 2053
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: 1775
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
_________________
1st: i5-4570, 16GB, 1.75TB
2nd: i5-4570, 8GB, 620GB
3rd: i5-4570, 16GB, 10TB
4th: Asus N61VN, 8GB, 120GB
5th: Cubietruck, 2GB, 160GB + NFS
6th: C2D T7200, 2GB, 16GB USB + NFS
7th: RPi3 1GB, 64GB USB
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: 41301
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: 2053
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