新聞中心
這篇文章將為大家詳細(xì)講解有關(guān)system-config-network怎么配置網(wǎng)卡訪問(wèn)外網(wǎng),文章內(nèi)容質(zhì)量較高,因此小編分享給大家做個(gè)參考,希望大家閱讀完這篇文章后對(duì)相關(guān)知識(shí)有一定的了解。
成都創(chuàng)新互聯(lián)公司專注于涵江企業(yè)網(wǎng)站建設(shè),響應(yīng)式網(wǎng)站,商城網(wǎng)站建設(shè)。涵江網(wǎng)站建設(shè)公司,為涵江等地區(qū)提供建站服務(wù)。全流程按需策劃,專業(yè)設(shè)計(jì),全程項(xiàng)目跟蹤,成都創(chuàng)新互聯(lián)公司專業(yè)和態(tài)度為您提供的服務(wù)Linux網(wǎng)絡(luò)配置基礎(chǔ)2
system-config-network配置網(wǎng)卡訪問(wèn)外網(wǎng)
undefined
OS:Red Hat Enterprise Linux 6.4
當(dāng)前電腦無(wú)線網(wǎng)卡使用DHCP自動(dòng)獲取,可以訪問(wèn)互聯(lián)網(wǎng)(外網(wǎng))
1 禁用NetworkManager
[root@rhel64 ~]# service NetworkManager status
[root@rhel64 ~]# chkconfig --list NetworkManager
如果沒(méi)有禁用 使用一下命令關(guān)閉、禁用
[root@rhel64 ~]# service NetworkManager stop
[root@rhel64 ~]# chkconfig NetworkManager off
2 正常關(guān)閉操作系統(tǒng)
[root@rhel64 ~]# init 0
或
[root@rhel64 ~]# shutdown -h now
3 啟動(dòng)網(wǎng)卡2 橋接無(wú)線網(wǎng)卡
4 啟動(dòng)虛擬機(jī) 查看網(wǎng)卡信息
[root@rhel64 ~]# ifconfig
[root@rhel64 ~]# ifconfig -a
[root@rhel64 ~]# ls /etc/sysconfig/network-scripts/ifcfg-eth*
當(dāng)前l(fā)inux能夠識(shí)別到網(wǎng)卡存在eth2 ,使用ifconfig -a可以查看
但沒(méi)有具體配置文件。
使用ifconfig eth2 up 啟用eth2后,ifconfig可以查看,但無(wú)ip信息。
[root@rhel64 ~]# ifconfig eth2 up
[root@rhel64 ~]# ifconfig
5 使用system-config-network 配置網(wǎng)卡
5.1 設(shè)置當(dāng)前會(huì)話字符編碼為UTF-8
[root@rhel64 ~]# system-config-network
5.2 查看eth0配置
5.3 增加設(shè)備配置eth2 配ip
5.4 重啟network服務(wù)
[root@rhel64 ~]# service network restart
5.5 查看ip及配置文件變化
[root@rhel64 ~]# ifconfig
[root@rhel64 ~]# cat /etc/sysconfig/network
全局配置文件中GATEWAY一項(xiàng)被刪除
[root@rhel64 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth2
[root@rhel64 ~]# cat /etc/resolv.conf
[root@rhel64 ~]# route -n
[root@rhel64 ~]# ip route
5.6 網(wǎng)絡(luò)訪問(wèn)測(cè)試
win7 cmd執(zhí)行 ping命令 測(cè)試 能夠ping通eth2地址
linux ping 外網(wǎng)訪問(wèn)測(cè)試 能夠ping通
[root@rhel64 ~]# ping www.baidu.com -c4
6 使用瀏覽器訪問(wèn)外網(wǎng)
6.1 設(shè)置中文拼音輸入法
ctrl + 空格 切換輸入法
shift 切換中英文
6.2 flash-plugin插件
查看網(wǎng)絡(luò)視頻缺少插件 可以yum安裝flash-plugin
[root@rhel64 ~]# yum install flash*
關(guān)于system-config-network怎么配置網(wǎng)卡訪問(wèn)外網(wǎng)就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,可以學(xué)到更多知識(shí)。如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到。
文章標(biāo)題:system-config-network怎么配置網(wǎng)卡訪問(wèn)外網(wǎng)-創(chuàng)新互聯(lián)
轉(zhuǎn)載來(lái)于:http://fisionsoft.com.cn/article/dhecpi.html