LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-01-2017, 08:55 AM   #1
fopetesl
Member
 
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 192.168.1.105 Gateway 192.168.1.1
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 192.168.1.6.and have to use cross-over CAT5 patch because it does not have Auto MDI-X.

I can temporarily set fixed IP on eth0
Code:
root@pcc-ThinkPad-Z60t:/home/pcc# ifconfig eth0 192.168.1.20 netmask 255.255.255.0 broadcast 192.168.1.255
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
Code:
root@pcc-ThinkPad-Z60t:/home/pcc# route add -net 192.168.1.6 gw 0.0.0.0 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
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
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.

https://ubuntuforums.org/showthread.php?t=1259634

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

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
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
Shadow_7
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:07 PM.

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