CentOS 6.5 修改網路卡配置資訊
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=08:00:27:E7:6B:2B
TYPE=Ethernet
BOOTPROT=static
IPADDR=192.168.1.10
GATEWAY=192.168.1.1
NETMASK=255.255.255.0
ONBOOT=yes
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
HWADDR=08:00:27:13:9F:DB
TYPE=Ethernet
BOOTPROT=static
IPADDR=192.168.10.10
GATEWAY=192.168.10.1
NETMASK=255.255.255.0
ONBOOT=yes
引數說明
HWADDR是網路卡的MAC地址
IPADDR是IPV4地址
NETMASK是子網掩碼
GATEWAY是閘道器
修改配置資訊後,需要重啟網路
[root@localhost mysql-cluster-gpl-7.4.11]# service network restart
Shutting down interface eth1: Device state: 3 (disconnected)
[ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth1: Active connection state: activating
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/34
state: activated
Connection activated
[ OK ]
DEVICE=eth0
HWADDR=08:00:27:E7:6B:2B
TYPE=Ethernet
BOOTPROT=static
IPADDR=192.168.1.10
GATEWAY=192.168.1.1
NETMASK=255.255.255.0
ONBOOT=yes
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
HWADDR=08:00:27:13:9F:DB
TYPE=Ethernet
BOOTPROT=static
IPADDR=192.168.10.10
GATEWAY=192.168.10.1
NETMASK=255.255.255.0
ONBOOT=yes
HWADDR是網路卡的MAC地址
IPADDR是IPV4地址
NETMASK是子網掩碼
GATEWAY是閘道器
修改配置資訊後,需要重啟網路
[root@localhost mysql-cluster-gpl-7.4.11]# service network restart
Shutting down interface eth1: Device state: 3 (disconnected)
[ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth1: Active connection state: activating
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/34
state: activated
Connection activated
[ OK ]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2102804/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux下修改網路卡名稱(centos6.5)LinuxCentOS
- centos 6.5 雙網路卡繫結CentOS
- CentOS 8 修改網路卡名稱CentOS
- 華為server centos 6.5雙網路卡繫結操作步驟ServerCentOS
- Centos修改網路配置CentOS
- centos6 修改網路卡名指令碼CentOS指令碼
- 【DB寶51】CentOS7修改網路卡名稱CentOS
- CentOS6.5 x86_64 配置Broadcom 43XX系列 無線網路卡驅動CentOS
- centos7的網路卡名修改為eth0CentOS
- CentOS 6.5系統安裝配置CentOS
- 網路卡MAC修改Mac
- vmware中安裝centos6.5配置網路環境CentOS
- linux6.5 網路卡繫結Linux
- 基於centos6.8配置多網路卡繫結CentOS
- centos6.5下安裝配置hudsonCentOS
- linux6.5 雙網路卡繫結Linux
- RedHat6.5網路卡問題總結Redhat
- CentOS 5.4上雙網路卡(多網路卡)繫結CentOS
- 軟體測試學習教程——CentOS 7 修改網路卡設定CentOS
- CentOS7網路卡命名修改為eth0格式CentOS
- CentOS6.5網路設定CentOS
- redhat6.5 配置使用centos的yum源RedhatCentOS
- centos 7.4 新增新網路卡CentOS
- VMwareNAT網路卡配置
- 網路卡繫結與交換機埠聚合配置(CentOS6.2)CentOS
- linux修改網路卡名字Linux
- esxi網路卡資訊搜尋
- Linux 網路卡配置Linux
- 配置雙網路卡BOND
- 雙網路卡BOND配置
- Linux Ubuntu 修改網路卡名字LinuxUbuntu
- Linux修改網路卡的名字Linux
- CentOS 6.5安裝Oracle 11.2.0.4------CentOS 6.5安裝CentOSOracle
- CentOS6.5配置MYSQL一主多從詳解CentOSMySql
- CENTOS 5.5 無線網路卡INTEL 2200BG的配置CentOSIntel
- Centos(RHEL) 6 新增網路卡的方法CentOS
- CENTOS 5.5 安裝無線網路卡CentOS
- 雲主機新增網路卡配置多網路卡策略路由路由