【Linux】Linux網路配置基礎2 system-config-network配置網路卡訪問外網
Linux網路配置基礎2
system-config-network配置網路卡訪問外網
OS:Red Hat Enterprise Linux 6.4
當前電腦無線網路卡使用DHCP自動獲取,可以訪問網際網路(外網)
1 禁用NetworkManager
[root@rhel64 ~]# service NetworkManager status
[root@rhel64 ~]# chkconfig --list NetworkManager
如果沒有禁用 使用一下命令關閉、禁用
[root@rhel64 ~]# service NetworkManager stop
[root@rhel64 ~]# chkconfig NetworkManager off
2 正常關閉作業系統
[root@rhel64 ~]# init 0
或
[root@rhel64 ~]# shutdown -h now
3 啟動網路卡2 橋接無線網路卡
4 啟動虛擬機器 檢視網路卡資訊
[root@rhel64 ~]# ifconfig
[root@rhel64 ~]# ifconfig -a
[root@rhel64 ~]# ls /etc/sysconfig/network-scripts/ifcfg-eth*
當前linux能夠識別到網路卡存在eth1 ,使用ifconfig -a可以檢視
但沒有具體配置檔案。
使用ifconfig eth1 up 啟用eth1後,ifconfig可以檢視,但無ip資訊。
[root@rhel64 ~]# ifconfig eth1 up
[root@rhel64 ~]# ifconfig
5 使用system-config-network 配置網路卡
5.1 設定當前會話字元編碼為UTF-8
[root@rhel64 ~]# system-config-network
5.2 檢視eth0配置
5.3 增加裝置配置eth1 配ip
5.4 重啟network服務
[root@rhel64 ~]# service network restart
5.5 檢視ip及配置檔案變化
[root@rhel64 ~]# ifconfig
[root@rhel64 ~]# cat /etc/sysconfig/network
全域性配置檔案中GATEWAY一項被刪除
[root@rhel64 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
[root@rhel64 ~]# cat /etc/resolv.conf
[root@rhel64 ~]# route -n
[root@rhel64 ~]# ip route
5.6 網路訪問測試
win7 cmd執行 ping命令 測試 能夠ping通eth1地址
linux ping 外網訪問測試 能夠ping通
[root@rhel64 ~]# ping www.baidu.com -c4
6 使用瀏覽器訪問外網
6.1 設定中文拼音輸入法
ctrl + 空格 切換輸入法
shift 切換中英文
6.2 flash-plugin外掛
檢視網路視訊缺少外掛 可以yum安裝flash-plugin
[root@rhel64 ~]# yum install flash*
呂星昊
2016.1.18
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29475508/viewspace-1978204/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【Linux】Linux網路配置基礎1 網路相關命令與網路卡配置檔案Linux
- Linux網路配置基礎Linux
- 【Linux】Linux網路配置基礎3 編輯配置檔案設定網路卡子介面ipLinux
- Linux 網路卡配置Linux
- 【Linux】Linux網路配置基礎4 RHEL6 作業系統更換網路卡Linux作業系統
- Linux 7 配置網路卡(nmcli)Linux
- 外網訪問內網LINUX內網Linux
- 配置Linux環境下多網路卡高可用網路埠Linux
- Linux|網路配置Linux
- linux網路配置Linux
- linux 配置網路Linux
- [Linux]配置網路Linux
- Linux 雙網路卡雙IP配置Linux
- suse linux配置網路卡bondingLinux
- 安裝配置Linux網路卡(轉)Linux
- Docker 基礎 : 網路配置Docker
- Linux網路基本網路配置Linux
- 【Linux】(小白向)詳解VirtualBox網路配置-配置Linux網路Linux
- Linux下多網路卡多網段訪問 --- 網路卡及Gateway, 路由設定(Linux OS)LinuxGateway路由
- linux網路卡配置檔案詳解Linux
- LINUX 網路卡配置檔案引數Linux
- Redhat Linux網路卡配置與繫結RedhatLinux
- 配置Linux的網路Linux
- linux之網路配置Linux
- linux(centos) 網路配置LinuxCentOS
- rhel Linux 網路配置Linux
- 【轉】VMware10中的Linux系統利用NAT網路連線方式訪問外網配置Linux
- Linux配置靜態IP解決無法訪問網路問題Linux
- Oracle Linux 7.1 增加網路卡及IP配置OracleLinux
- Redhat Linux網路卡配置與繫結(zt)RedhatLinux
- 【Linux】Linux網路配置基礎5 RHEL6 作業系統使用virtualbox NAT網路Linux作業系統
- Linux centOS如何配置網路LinuxCentOS
- Linux 網路yum源配置Linux
- Linux和windows網路配置LinuxWindows
- 配置防火牆允許從外網訪問內網oracle防火牆內網Oracle
- [Linux] Linux bond 網路卡繫結配置教程(轉載)Linux
- Holer實現外網ssh訪問內網linux內網Linux
- 如何從外網訪問內網Linux系統?內網Linux