How To Configure Static IP On CentOS 6.4
2016-12-29 15:52
519 查看
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
IPADDR=192.168.1.44
NETMASK=255.255.255.0
## Configure Default Gateway
#
# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=centos64
GATEWAY=192.168.1.1
## Restart Network Interface
#
/etc/init.d/network restart
## Configure DNS Server
#
# vi /etc/resolv.conf
nameserver 8.8.8.8 # Replace with your nameserver ip
nameserver 192.168.1.1 # Replace with your nameserver ip
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
IPADDR=192.168.1.44
NETMASK=255.255.255.0
## Configure Default Gateway
#
# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=centos64
GATEWAY=192.168.1.1
## Restart Network Interface
#
/etc/init.d/network restart
## Configure DNS Server
#
# vi /etc/resolv.conf
nameserver 8.8.8.8 # Replace with your nameserver ip
nameserver 192.168.1.1 # Replace with your nameserver ip
相关文章推荐
- How to Configure Static IP Address on CentOS 6.3 Linux Server
- How to Configure Network Static IP Address and Manage Services on RHEL/CentOS 7.0
- How To Configure a Redis Cluster on CentOS 7
- How to configure an NTP client and server on CentOS/RedHat
- How to install Apache Server on CentOS RedHat Linux, How to configure Apacahe Server on CentOS RedHat Linux | Antoine Solutions Development
- How to change CentOS IP address on a cloned VM
- How to install snmpwalk snmpget on CentOS 6.4 6.3 5.9 Redhat RHEL Fedora
- 如何在centos6.4上安装git How To Install Git on a CentOS 6.4 VPS
- How to install and configure NGINX on CentOS 7
- How to Install and Configure Nginx from Source on centos--转
- How To Install / Configure VNC Server On CentOS 7.0
- How to Install and Run a node.js App on Centos 6.4 64bit
- How to configure LAMP server on Ubuntu System
- How to Install Mono 2.4.2.3 on CentOS 5
- How to Install MySQL Database Using Yum groupinstall on CentOS
- How to install scp on CentOS
- How to Install Apache CouchDB on CentOS 6 (from Source and EPEL)
- How to setup multimedia on CentOS