LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-26-2018, 07:41 PM   #1
spikeygg
Member
 
Registered: Dec 2004
Location: America
Distribution: Ubuntu
Posts: 42

Rep: Reputation: 0
Question Ubuntu on Arm - Network Partially Dropping Out


I have a few linux machines in my house and I recently purchased a Orange Pi Plus 2E which is like a Raspberry Pi. It's arm-based and I installed a version of Ubuntu on it that is compatible with arm (16.04 Xenial). Anyway, I'm having a problem with it that I don't yet know how to solve.

I haven't messed with any of the networking files yet, all the linux machines in my house use DHCP. When I power the system up and everything is fresh, the routes look good:

Code:
> ip route
default via 192.168.0.1 dev eth0
default via 192.168.0.1 dev eth0  proto static  metric 100
169.254.0.0/16 dev eth0  scope link  metric 1000
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.5  metric 100
>
When I got home from work, the last route disappears and I'm unable to get to the machine with my other computers on the network. If I manually add the route using a command like this:
Code:
/sbin/ip route add 192.168.0.0/24 dev eth0
it works again, but why is this happening? I've found a clue in the syslog, it seems to be happening when the dhclient service needs to renew its IP address:

Code:
Apr 26 07:18:41 localhost dhclient[856]: DHCPREQUEST of 192.168.0.5 on eth0 to 192.168.0.1 port 67 (xid=0x79d200c8)
Apr 26 07:18:41 localhost dhclient[856]: DHCPACK of 192.168.0.5 from 192.168.0.1
Apr 26 07:18:42 localhost NetworkManager[475]: <info>  [1524748722.0208]   address 192.168.0.5
Apr 26 07:18:42 localhost NetworkManager[475]: <info>  [1524748722.0214]   plen 24 (255.255.255.0)
Apr 26 07:18:42 localhost NetworkManager[475]: <info>  [1524748722.0216]   gateway 192.168.0.1
Apr 26 07:18:42 localhost NetworkManager[475]: <info>  [1524748722.0217]   server identifier 192.168.0.1
Apr 26 07:18:42 localhost NetworkManager[475]: <info>  [1524748722.0218]   lease time 86400
Apr 26 07:18:42 localhost NetworkManager[475]: <info>  [1524748722.0219]   nameserver '192.168.0.1'
Apr 26 07:18:42 localhost NetworkManager[475]: <info>  [1524748722.0220]   domain name 'mynet'
Apr 26 07:18:42 localhost NetworkManager[475]: <info>  [1524748722.0222] dhcp4 (eth0): state changed bound -> bound
Apr 26 07:18:42 localhost NetworkManager[475]: <error> [1524748722.0280] platform-linux: do-add-ip4-address[2: 192.168.0.5/24]: failure 17 (File exists)
Apr 26 07:18:42 localhost NetworkManager[475]: <error> [1524748722.0301] platform-linux: do-add-ip4-route[2: 0.0.0.0/0 100]: failure 3 (No such process)
Apr 26 07:18:42 localhost NetworkManager[475]: <warn>  [1524748722.0302] default-route: failed to add default route 0.0.0.0/0 via 192.168.0.1 dev 2 metric 100 mss 0 src user with effective metric 100
Apr 26 07:18:42 localhost dbus[448]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Apr 26 07:18:42 localhost dhclient[856]: bound to 192.168.0.5 -- renewal in 32998 seconds.
Apr 26 07:18:42 localhost systemd[1]: Starting Network Manager Script Dispatcher Service...
Apr 26 07:18:42 localhost dbus[448]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Apr 26 07:18:42 localhost systemd[1]: Started Network Manager Script Dispatcher Service.
Apr 26 07:18:42 localhost nm-dispatcher: req:1 'dhcp4-change' [eth0]: new request (1 scripts)
Apr 26 07:18:42 localhost nm-dispatcher: req:1 'dhcp4-change' [eth0]: start running ordered scripts...
The NetworkManager cannot set the route (file exists). I've googled around looking for the error messages and I've come up empty handed. Does anyone know how I can permanently solve this issue? My other linux machines work like clockwork but this one is having a little difficulty and I can't figure out what is different between the installations.

Thanks,
-Greg
 
Old 05-01-2018, 03:32 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,844

Rep: Reputation: 161Reputation: 161
Why are there two default routes in the machine, one with metric 100?
 
  


Reply


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
LXer: Ubuntu MATE Is Dropping Ubuntu Software Center LXer Syndicated Linux News 0 07-27-2015 12:30 AM
LXer: Ubuntu User Survey: The Results Are In (Partially) LXer Syndicated Linux News 0 03-22-2012 06:11 PM
PHP on Ubuntu 10.04 - partially working... JohnGraham Linux - Server 3 11-30-2010 02:02 PM
Ubuntu 7.10 partially freezes after bootup mamadu.bwana Ubuntu 3 03-03-2008 11:35 AM
My IPW2200 Network Card seems only partially installed BigBeagle Linux - Networking 1 08-15-2007 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:16 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