CentOS: Difference between revisions
→Basic Network Configuration
m (Protected "CentOS" ([Edit=Allow only logged in users] (indefinite) [Move=Allow only logged in users] (indefinite) [Delete=Allow only logged in users] (indefinite))) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 16:
For DHCP:
ONBOOT=
BOOTPROTO=
or for Static IP:
ONBOOT=
BOOTPROTO=
IPADDR=192.168.1.11
NETMASK=255.255.255.0
Line 29:
DNS2=4.2.2.2
service network
Verify
Line 108:
iptables -L -n
iptables-save | sudo tee /etc/sysconfig/iptables
= Misc =
== Locate ==
Mlocate maintains a database of all your files and is re-indexed once a day by default.
Installation:
yum install mlocate
To re-index immediately:
sudo updatedb
<br />
|