Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-01-2017, 08:55 AM   #1
Registered: Jan 2005
Location: Yorkshire Dales, UK
Distribution: Ubuntu 5.10; Mandriva 2007; Debian Lenny
Posts: 147

Rep: Reputation: 15
Question Eth0 / Wireless IP Contention?

Ubuntu 14.04
Wireless DHCP IP Gateway
Eth0 on zero but I need static address on 192.168.1.xx

I have to talk to a process machine which (13 years old)is on fixed IP of have to use cross-over CAT5 patch because it does not have Auto MDI-X.

I can temporarily set fixed IP on eth0
root@pcc-ThinkPad-Z60t:/home/pcc# ifconfig eth0 netmask broadcast
but after an indeterminate period it loses connection and reverts back to DHCP.

I also cannot set a route immediately after checking fixed IP is accepted
root@pcc-ThinkPad-Z60t:/home/pcc# route add -net gw dev eth0
SIOCADDRT: Invalid argument
Bear in mind that for 13 years the process machine has run without hiccup using Ubuntu Breezy as built in computer communicating with Controller Board via cross over CAT5 patch cable.
Old 04-01-2017, 10:17 AM   #2
Registered: Aug 2002
Posts: 24,721

Rep: Reputation: 5595Reputation: 5595Reputation: 5595Reputation: 5595Reputation: 5595Reputation: 5595Reputation: 5595Reputation: 5595Reputation: 5595Reputation: 5595Reputation: 5595
I assume that NetworkManager is running. It is a service that automatically switches between wired and wireless and configures the ethernet adapter (eth0) in addition to wireless functions. I also assume that you don't have to connect your process machine to another computer very often.

You can use the NetworkManager applet to configure a static IP address on eth0 when you need to connect your process machine and then back to DHCP when complete.

Another possibility that I have not verified is adding an IP alias to eth0.

Last edited by michaelk; 04-01-2017 at 10:20 AM.
Old 04-01-2017, 11:31 AM   #3
Senior Member
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,938

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
If you have a router that uses DHCP to allocate ip addresses you can usually associate the unique MAC address of the interface with a fixed ip address.
Old 04-01-2017, 02:34 PM   #4
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
If you have a manager like network-manager or wicd, it will try to use DHCP on ALL interface by default. Which is likely undo-ing any manual configuration you are attempting. Use the manager to adjust the interface, or stop using a manager. I find the later more productive. Until you have to train someone else to recognize the symptoms and do the administration part. It also helps if the various interfaces are on different subnets to make routing simpler.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Routing Wireless AP from eth0 to Wireless connection on wlan0 tenk Linux - Networking 8 10-03-2014 05:08 PM
WDS PXELinux contention issue anindyameister Linux - Server 3 12-02-2013 06:13 AM
How to incorporate Contention free period and contention period together in 802.11e? stud17 Linux - Newbie 0 01-20-2012 05:27 PM
[SOLVED] are mutexes necessary? worried about contention and overuse utdrmac Programming 11 06-27-2011 11:17 AM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration