-
Junior Member
registered user
whether or not to use network-manager for static IPs
Originally Posted by
Capricorny
Yes, in your use situation, the case is pretty clear. But I can imagine that KK is rather reluctant to tie basic services to the graphical mode, which is why he has opted for a cheatcode off-switch instead. And when you have told networkmanager not to manage an interface, I would think the other configuration tools work or could relatively easily be made to do so.
I completely agree with respect to command line behavior.
Network-Manager is a daemon that listens to interfaces statuses and selects a configuration based on wireless SSIDs or user interaction. It is not a graphical program by itself, but interacts with graphical user interfaces for control, as well as featuring a tiny commandline interface and controls over dbus, so it is quite flexible. By default, network-manager does a lot on its own, like trying DHCP as soon as you plug in a cable into the network card.
Actually, network-manager should respect manual settings in /etc/network/interfaces, also in textmode. In fact, Knoppix contains a script that changes network-managers configuration entirely via /etc/network/interfaces for use in textmode:
"knoppix-networkmanager".
However, after changing /etc/network/interfaces manually, you need to restart network-manager in order for changes to take effect:
sudo /etc/init.d/network-manager restart
Do NOT use ifup/ifdown if network-manager is running. Network-manager will ignore the lock status of ifup/ifdown, while ifup/ifdown will ignore all settings done with network-managers own control programs.
Using static IP addresses in network-manager works fine as long as there is a physical connection, but unfortunately, network-manager does not seem to keep the set IP address when there is no carrier signal on the network cable.
If you want to use the command-line, you have the option of excluding an interface from being handled by network-manager:
sudo nmcli dev disconnect iface eth0
which makes network-manager stop listening on eth0 at all, so you can work with ifup/ifdown again if you are more used to these.
Or just suspend network-manager:
sudo /etc/init.d/network-manager stop
(which is an alternative to using the "nonetworkmanager" cheatcode in Knoppix).
Because of its user-friendly desktop integration in Gnome and KDE (and LXDE, too), most distros are using network-manager by default nowadays. For commandline experts who are used to configure everything manually via ifconfig and route, it's a little uneasy that a daemon is handling all the network stuff and will override manual settings (except in the aforementioned cases), I agree with that. So I would recommend just booting Knoppix with the "nonetworkmanager" option, or use the tricks above to revert to the non-automatic configuration behaviour.
Regards
-Klaus
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
For Lenovo IdeaPad 3 15IIL05 15IML05 15ADA05 15ARE05 Palmrest Keyboard Touchpad
$59.25
NEW Palmrest Keyboard For Lenovo Thinkpad E15 Gen 2 20T8 20T9 Black 5M10W64513
$80.99
LCD Back Cover for Lenovo Ideapad Flex 5-14IIL05 14ARE05 14ITL05 14ALC05
$68.99
Lenovo IP 5 16IAU7 16" 2.5K Chromebook i3-1215U 8GB Ram 128GB eMMC Chrome OS
$219.99
Lenovo Ideapad 1i 15.6" FHD Notebook Intel Core i5-1235U 8GB RAM 256GB SSD
$339.99
Notebook Lenovo Slim Pro 9 Laptop, 16" Glass, i9-13905H, 32GB, 1TB SSD
$1023.99
Lenovo Loq 15Irh8 15" Laptop Core i5-13420H GeForce RTX 2050 16GB 512GB SSD W11H
$529.99
Lenovo Legion Pro 5i 16" Gaming Laptop RTX 4070 8GB i9-13900HX 16GB RAM 1TB SSD
$1399.99
Lenovo ThinkPad L15 15.6” FHD Laptop AMD Ryzen 5 16GB RAM 512GB SSD Windows 10
$239.99
Lenovo Notebook IdeaPad 1 Laptop, N6000, 4GB, 128GB eMMC, Win 11 Home-Certified
$229.49