Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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).
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.