зеркало из
https://github.com/iharh/notes.git
synced 2025-10-30 05:06:05 +02:00
105 строки
2.2 KiB
Plaintext
105 строки
2.2 KiB
Plaintext
sudo apt-cache search network | grep manager
|
|
sudo su -
|
|
|
|
Network manager:
|
|
|
|
http://chawarong.github.io/blog/2013/10/16/how-to-configure-networking-on-ubuntu/
|
|
http://ubuntuforums.org/showthread.php?t=1025520&p=6461541#post6461541
|
|
|
|
sudo apt-get remove network-manager --purge
|
|
|
|
Do not remove NetworkManager because You might have problems when upgrade comes.
|
|
This way he will stay out of the loop and once You get Your connection to be OK You can just disable it in
|
|
System->Preferences->Sessions by un-checking his entry.
|
|
|
|
http://help.ubuntu.ru/wiki/network_manager
|
|
sudo service network-manager restart
|
|
...
|
|
sudo service network-interface restart INTERFACE=eth0
|
|
|
|
/etc/NetworkManager/nm-system-settings.conf
|
|
[ifupdown]
|
|
managed=true
|
|
|
|
sudo /etc/init.d/networking restart
|
|
|
|
http://destefano.wordpress.com/2012/07/03/disabling-networkmanager-in-ubuntu/
|
|
|
|
/etc/init/network-manager.conf
|
|
|
|
#start on (local-filesystems
|
|
# and started dbus)
|
|
|
|
sudo initctl stop network-manager
|
|
|
|
/etc/network/interfaces
|
|
|
|
auto eth0
|
|
iface eth0 inet static
|
|
address {your static IP address}
|
|
netmask 255.255.255.0 # change as needed for your network
|
|
gateway {IP address of gateway or router}
|
|
dns-nameservers {IP address(es) of local or remote DNS server(s), if necessary}
|
|
broadcast {broadcast IP address, if necessary}
|
|
|
|
|
|
|
|
|
|
https://help.ubuntu.com/community/NetworkManager
|
|
|
|
nmcli help
|
|
|
|
|
|
|
|
http://www.unixmen.com/change-hostname-ubuntu-13-10/
|
|
|
|
/etc/hostname
|
|
hostname
|
|
/etc/hosts
|
|
127.0.0.1 localhost
|
|
127.0.1.1 your_new_hostname
|
|
# causes jdk bug for macaddr: https://github.com/Azure/azure-sdk-for-java/pull/18069/files
|
|
|
|
/etc/resolv.conf
|
|
don't edit
|
|
|
|
/etc/network/interfaces
|
|
|
|
auto lo
|
|
iface lo inet loopback
|
|
|
|
auto eth1
|
|
#dhcp
|
|
iface eth1 inet static
|
|
address 10.9.11.217
|
|
netmask 255.255.240.0
|
|
gateway 10.9.0.1
|
|
|
|
dns-nameservers <ip>
|
|
dns-domain ...
|
|
dns-search ...
|
|
|
|
ifconfig /a
|
|
|
|
|
|
/etc/resolv.conf
|
|
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
|
|
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
|
|
|
At home (without router):
|
|
|
|
nameserver 10.1.0.250
|
|
nameserver 10.1.0.10
|
|
search iptv
|
|
|
|
At home (with router):
|
|
|
|
nameserver 127.0.1.1
|
|
|
|
At work (VirtualBox):
|
|
|
|
nameserver 10.9.192.2
|
|
nameserver 10.9.192.3
|
|
search gomel.company.com
|
|
|