CentOS: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 15: | Zeile 15: | ||
= Hostname = | = Hostname = | ||
* /etc/sysconfig/network | * /etc/sysconfig/network | ||
HOSTNAME=centos-db.wknet.lx | <pre>HOSTNAME=centos-db.wknet.lx | ||
DNS1=192.168.2.3 | DNS1=192.168.2.3 | ||
DNS2=8.8.8.8 | DNS2=8.8.8.8 | ||
SEARCH=centos-db.wknet.lx | SEARCH=centos-db.wknet.lx | ||
</pre> | |||
* /etc/hosts | * /etc/hosts | ||
192.168.2.55 centos-db.wknet.lx centos-db | 192.168.2.55 centos-db.wknet.lx centos-db |
Version vom 13. Februar 2017, 12:02 Uhr
Netzwerkkonfiguration
- nmcli d
GERÄT TYP STATUS VERBINDUNG enp0s3 ethernet verbunden enp0s3
- /etc/sysconfig/network-scripts/ifcfg-enp0s3:
BOOTPROTO=none ONBOOT=no
- systemctl restart network
Hostname
- /etc/sysconfig/network
HOSTNAME=centos-db.wknet.lx DNS1=192.168.2.3 DNS2=8.8.8.8 SEARCH=centos-db.wknet.lx
- /etc/hosts
192.168.2.55 centos-db.wknet.lx centos-db