【Linux】Linux網路配置基礎3 編輯配置檔案設定網路卡子介面ip
Linux網路配置基礎3
編輯配置檔案設定網路卡子介面ip
OS:Red Hat Enterprise Linux 6.4
目前eth0 通過host-only網路卡與win7通訊
規劃給eth0配置子網路卡ip eth0:0 地址192.168.7.101
使用win7能夠通過此ip正常訪問linux作業系統

[root@rhel64 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0


1 複製eth0網路卡配置檔案 生成eth0:0
[root@rhel64 ~]# ifconfig eth0
[root@rhel64 ~]# cd /etc/sysconfig/network-scripts/
[root@rhel64 network-scripts]# cp ifcfg-eth0 ifcfg-eth0:0

2 編輯網路卡配置檔案
[root@rhel64 network-scripts]# vi ifcfg-eth0:0

3 重啟網路服務
[root@rhel64 ~]# service network restart

[root@rhel64 ~]# ifconfig

4 host-only 虛擬網路卡增加7網段ip地址



5 win7 ping 測試 eth0:0 ip網路通

呂星昊
2016.1.18
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29475508/viewspace-1978212/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux網路配置基礎Linux
- Linux系統網路檔案配置Linux
- Linux(08):網路配置檔案——其它Linux
- 恢復linux網路介面並配置靜態ipLinux
- Linux(07):網路配置檔案——ifcfg-*Linux
- linux網路配置Linux
- Linux|網路配置Linux
- Linux 下網路介面卡配置Linux
- 【Linux】(小白向)詳解VirtualBox網路配置-配置Linux網路Linux
- linux之網路配置Linux
- 配置Linux的網路Linux
- 【Linux】Linux網路配置基礎5 RHEL6 作業系統使用virtualbox NAT網路Linux作業系統
- Centos7網路配置——設定固定ipCentOS
- Linux centOS如何配置網路LinuxCentOS
- Linux網路設定Linux
- Linux網路管理基礎Linux
- Linux伺服器---網路配置Linux伺服器
- Linux系統下網路配置Linux
- Linux基礎之網路管理Linux
- Linux 筆記分享十八:網路配置Linux筆記
- [Linux] Ubuntu 18 LTS netplan 網路配置LinuxUbuntu
- **Linux 配置系統網路(動態)**Linux
- Linux虛擬機器網路配置Linux虛擬機
- linux網路卡配置檔案詳解Linux
- 『學了就忘』Linux基礎命令 — 34、配置網路相關命令Linux
- Docker網路配置基礎知識Docker
- Linux 雙網路卡雙IP配置Linux
- Linux 網路管理-ip命令Linux
- 幾種Linux網路配置工具的使用Linux
- Linux配置靜態IP解決無法訪問網路問題Linux
- java配置檔案設定絕對路徑Java
- Linux基礎配置Linux
- Linux網路卡配置檔案 引數詳解Linux
- 【Linux入門教程】3 程式管理、網路通訊工具、vi編輯器、檔案系統、檔案儲存結構Linux
- 在Linux中,如何設定網路路由?Linux路由
- Golang os 包與設定配置檔案路徑Golang
- git編輯配置檔案Git
- linux配置靜態路由解決網路問題Linux路由
- Linux 學習錯誤點整理之網路配置Linux