lost and found ( for me ? )

Linu Mint 12 : how to disable network-manager and enable networking from remote hosts


I would not recommend the changing network settings from remote hosts.
So this info is as-is..

Linux Mint 12 ------ the remote host ( connect to the Linux Mint via SSH )

Before disabling network-manager , configure the IP addresses etc into the /etc/network/interfaces file as below.
# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
       address 192.168.0.1
       netmask 255.255.255.0
       gateway 192.168.0.254
       broadcast 192.168.0.255

auto eth1
iface eth1 inet dhcp

# sysv-rc-conf network-manger off;sysv-rc-conf networking on;/etc/init.d/network-manager stop;/etc/init.d/networking restart

sysv-rc-conf is similar to chkconfig. 
You can install it by apt-get install sysv-rc-conf.

connect to the new address 192.168.0.1
# ifconfig eth0 | grep "inet addr"
         inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0

uninstall network-manager
# apt-get remove network-manager*

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.