Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
29
rated 0 times [  29] [ 0]  / answers: 1 / hits: 166917  / 2 Years ago, sat, august 6, 2022, 3:31:37

I have 12.04 Desktop installed, how do I uninstall Network-Manager and set /etc/network/interfaces as the default file to resolve my network connections?


More From » networking

 Answers
3

If you manually manage your network card in /etc/network/interfaces , network manger will not manage it , it will state "Not Managed"



Suppose your network card is eth0 :



To setup eth0 to static, enter:



open /etc/network/interfaces :

auto eth0
iface eth0 inet static
address 192.168.1.15 #------> Your Ip Address
netmask 255.255.255.0 #------> Netmask
gateway 192.168.1.254 #-------> Gateway
broadcast 192.168.0.255
dns-nameservers 192.168.1.3 #-----> Dns server


To setup eth0 to dhcp, enter:



auto eth0
iface eth0 inet dhcp


The different keywords have the following meaning:



auto: the interface should be configured during boot time.



iface : interface



inet: interface uses TCP/IP networking.



Now restart service :



sudo service network-manager restart

[#26616] Monday, August 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sator

Total Points: 258
Total Questions: 119
Total Answers: 101

Location: Sweden
Member since Fri, Apr 16, 2021
3 Years ago
;