Difference between revisions of "Linux network nightmare"
Jump to navigation
Jump to search
(Created page with "== How to configure network == At the beginning there was Redhat, with... I don't remember. Then, there was interfaces. /etc/network/interfaces . Just one file, good. To co...") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | = How to configure network = | |
At the beginning there was Redhat, with... I don't remember. | At the beginning there was Redhat, with... I don't remember. | ||
Line 18: | Line 18: | ||
broadcast 10.91.255.255 | broadcast 10.91.255.255 | ||
− | In the new versions, this must be activated, | + | In the new versions, this must be activated, unactivating eth0 for NetworkManager. In /etc/NetworkManager/NetworkManager.conf, set: |
[main] | [main] | ||
Line 32: | Line 32: | ||
Test it with a reboot! | Test it with a reboot! | ||
+ | |||
+ | Resolv.conf is also overwritten by the fucked NetworkManager. Remove the symbolic link /ec/resolv.conf and write one yourself. | ||
+ | |||
+ | Also, you must set | ||
+ | |||
+ | [dns=none] | ||
+ | |||
+ | in the main seaction of /etc/NetworkManager/NetworkManager.conf | ||
= Wi-Fi = | = Wi-Fi = | ||
− | + | For testing, if NetworkManager is enabled, you can use nmcli (and comment eth0 in interfaces): | |
nmcli device wifi connect Benediktinai password Daukanto21 | nmcli device wifi connect Benediktinai password Daukanto21 | ||
It won't restart at boot! | It won't restart at boot! | ||
+ | |||
+ | = Test = | ||
+ | |||
+ | ping www.google.com | ||
+ | |||
+ | (it's reachable by now, 18/12/2021). |
Latest revision as of 16:13, 23 December 2021
How to configure network[edit]
At the beginning there was Redhat, with... I don't remember.
Then, there was interfaces. /etc/network/interfaces . Just one file, good.
To configure static ip address:
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 10.91.40.20 netmask 255.255.0.0 network 10.91.0.0 gateway 10.91.50.1 broadcast 10.91.255.255
In the new versions, this must be activated, unactivating eth0 for NetworkManager. In /etc/NetworkManager/NetworkManager.conf, set:
[main] plugins=ifupdown,keyfile
[ifupdown] managed=false
[device] wifi.scan-rand-mac-address=no
and then edit interfaces.
Test it with a reboot!
Resolv.conf is also overwritten by the fucked NetworkManager. Remove the symbolic link /ec/resolv.conf and write one yourself.
Also, you must set
[dns=none]
in the main seaction of /etc/NetworkManager/NetworkManager.conf
Wi-Fi[edit]
For testing, if NetworkManager is enabled, you can use nmcli (and comment eth0 in interfaces):
nmcli device wifi connect Benediktinai password Daukanto21
It won't restart at boot!
Test[edit]
ping www.google.com
(it's reachable by now, 18/12/2021).