LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-30-2019, 10:59 PM   #1
jamesoxford008
LQ Newbie
 
Registered: Mar 2019
Posts: 2

Rep: Reputation: Disabled
Problem with default gateway


network interface eth1 is receiving addressing via dhcp. it was originally assigned a static address in a different network. current network is 172.16.4.0/24 but previous network was 192.168.88.0/24. DHCP settings are correct, as I have numerous devices learning address/default gateway info. For some reason the old gateway 192.168.88.1 is stuck as default gateway, even with new dhcp assignment. removal via "ip route del" does not work and says "RTNETLINK answers: Operation not permitted" sudo is not installed. advice? The install is Debian 8 and it hasn't been updated. Also manual editing via the GUI does not seem to have any effect.

Last edited by jamesoxford008; 03-30-2019 at 11:08 PM.
 
Old 03-31-2019, 12:41 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
I'm assuming that you're not using NetworkManager here, but instead manual network configuration has been employed. If so, check the configuration in /etc/network/interfaces, specifically any gateway setting that may still be present.

Reference:
https://wiki.debian.org/NetworkConfi...rface_manually
 
Old 03-31-2019, 06:24 AM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
To clarify this detail:
Quote:
Originally Posted by jamesoxford008 View Post
Removal via "ip route del" does not work and says "RTNETLINK answers: Operation not permitted" sudo is not installed.
To edit the routing table, you must have root privileges. If you can’t use sudo, log on as root or use the su command. In both cases, you will be asked for the root password (although you can configure authentication so that su doesn’t require the password).
 
Old 03-31-2019, 07:19 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,506

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
Quote:
Operation not permitted" sudo is not installed.
If you are trying to make system changes as a normal user, you have missed a very basic part of how Linux operates as a multiuser system. Most any system type changes require root/admin privileges as suggested above so you either use root to make these changes or install sudo. I don't use Debian regularly but my most recent experience using it is on the install DVD, it used sudo but with the actual installation it was necessary to create a root user/password. If you know the root password, your problem is solved.
 
Old 03-31-2019, 10:07 AM   #5
jamesoxford008
LQ Newbie
 
Registered: Mar 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
To clarify this detail:


To edit the routing table, you must have root privileges. If you can’t use sudo, log on as root or use the su command. In both cases, you will be asked for the root password (although you can configure authentication so that su doesn’t require the password).
Thank you. I knew I needed root, I just couldn't figure out how to get there. I had to manually edit the routing table and I'm not sure why. Nothing showed up in /etc/network/interfaces and it persisted through reboot. I'm not sure why it is remembering the old static assignment.
 
Old 03-31-2019, 12:17 PM   #6
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
Nothing showed up in /etc/network/interfaces and it persisted through reboot. I'm not sure why it is remembering the old static assignment.
Then you need to tell us which network management framework you're using - Wicd, NetworkManager...?
 
  


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
adding default gateway and aditional gateway veru.naresh Linux - Networking 1 06-13-2012 07:34 AM
normal default gateway reapperas with openvpn redirect-gateway jonnytabpni Linux - Networking 2 04-23-2009 02:11 PM
lm10.0 gateway is set but when I reboot I have to set the gateway rharvey32 Mandriva 8 02-13-2006 01:35 PM
What is a gateway? can I have more than one gateway on a vlan? abefroman Linux - Networking 3 09-06-2005 10:43 AM
Odd problem: Gateway unreachable after certain amount of time (Win XP Gateway) SocialEngineer Linux - Networking 2 08-13-2004 12:54 AM

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

All times are GMT -5. The time now is 07:36 AM.

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