这篇文章将为大家详细讲解有关system-config-network怎么配置网卡访问外网,文章内容质量较高,因此小编分享给大家做个参考,希望大家阅读完这篇文章后对相关知识有一定的了解。
Linux网络配置基础2
system-config-network配置网卡访问外网
undefined 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 off2 正常关闭操作系统 [root@rhel64 ~]# init 0 或 [root@rhel64 ~]# shutdown -h now3 启动网卡2 桥接无线网卡4 启动虚拟机 查看网卡信息 [root@rhel64 ~]# ifconfig [root@rhel64 ~]# ifconfig -a [root@rhel64 ~]# ls /etc/sysconfig/network-scripts/ifcfg-eth* 当前linux能够识别到网卡存在eth2 ,使用ifconfig -a可以查看 但没有具体配置文件。 使用ifconfig eth2 up 启用eth2后,ifconfig可以查看,但无ip信息。 [root@rhel64 ~]# ifconfig eth2 up [root@rhel64 ~]# ifconfig5 使用system-config-network 配置网卡5.1 设置当前会话字符编码为UTF-8 [root@rhel64 ~]# system-config-network5.2 查看eth0配置5.3 增加设备配置eth2 配ip5.4 重启network服务 [root@rhel64 ~]# service network restart5.5 查看ip及配置文件变化 [root@rhel64 ~]# ifconfig [root@rhel64 ~]# cat /etc/sysconfig/network 全局配置文件中GATEWAY一项被删除 [root@rhel64 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth2 [root@rhel64 ~]# cat /etc/resolv.conf [root@rhel64 ~]# route -n [root@rhel64 ~]# ip route5.6 网络访问测试 win7 cmd执行 ping命令 测试 能够ping通eth2地址 linux ping 外网访问测试 能够ping通 [root@rhel64 ~]# ping www.baidu.com -c46 使用浏览器访问外网6.1 设置中文拼音输入法 ctrl + 空格 切换输入法 shift 切换中英文6.2 flash-plugin插件 查看网络视频缺少插件 可以yum安装flash-plugin [root@rhel64 ~]# yum install flash*
关于system-config-network怎么配置网卡访问外网就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。