【已解决】可以ping通无法通过浏览器浏览该网站
来源:互联网 发布:狗语翻译器软件 编辑:程序博客网 时间:2024/05/29 09:47
原文地址:http://stackoverflow.com/questions/21432620/how-to-setup-static-ip-in-fedora-19
First find out your interface using ifconfig
Edit the config file for that interfaceusing your favorite text editor:
vi /etc/sysconfig/network-scripts/ifcfg-eth1 //where eth1 is your interface
You will need to change BOOTPROTO from dhcp to static and add IPADDR, NETMASK, BROADCAST and NETWORK variables.
NM_CONTROLLED="yes"BOOTPROTO=staticDEVICE=eth1ONBOOT=yesIPADDR=192.168.8.248NETMASK=255.255.255.0BROADCAST=192.168.8.255NETWORK=192.168.8.0GATEWAY=192.168.8.1TYPE=EthernetPEERDNS=no
Save the file with ESC, then
:w !sudo tee % > /dev/null
Restart your network via
/etc/init.d/network restart
Also add your DNS servers
vi /etc/resolv.confnameserver your_Router_ipnameserver 8.8.8.8 # Google's DNS Server
You are ready to browse!
IF YOU CANNOT BROWSE STILL AFTER TRYING THE METHOD MENTIONED ABOVE...LOOK AT THE BELOW SOLUTION!!!!
Since I'm using Redhat 6.6, I still cannot browse via my own browser Firefox. Then I searched some more materials.
Most comments are related to the Firewall. Then I switch to the firewall side. Due to I have not a lot of knowledge about the firewall. I decided to use the GUI.
Computer->Control Center->Firewall. I checked the service WWW/HTTP 80 ports are unchecked. Then I checked this option. and then input the destination IP address into the firefox browser address bar again, Whooray!!! It does work!
SO HAPPY!!!!
- 【已解决】可以ping通无法通过浏览器浏览该网站
- 解决虚拟机可以连网但无法ping通的问题
- 关于Windows系统可以ping通,而无法浏览网页的情况作出记录
- ping不通某网站但是却可以访问该网站
- 解决redhat linux下IP地址可以ping通,域名无法ping通
- PING通,无法打开网站
- 解决无法Ping通Github
- 可以ping通,但无法通过ssh连接虚拟机的解决方案
- 可以ping通,但无法通过ssh连接虚拟机的解决方法
- 可以ping通,但无法通过ssh连接虚拟机的解决方案
- 可以ping通,但无法通过ssh连接虚拟机的解决方案
- 解决chrome浏览器连接不上网络,但是可以ping通网络
- 虚拟机可以ping主机,主机无法ping通虚拟机
- 为什么ping不通某网站,但是却可以访问该网站?
- 为什么ping不通某网站,但是却可以访问该网站?
- 解决CentOS下可以ping通ip ping不通域名
- vmware 无法通过物理机器ping通?
- chrome浏览器“您无法继续操作,因为网站经营者已请求提高此域的安全性”问题的解决
- SWFUpload多图上传代码
- UIButton设置 textAlignment 属性的方法
- iOS开发-使用Storyboard进行界面跳转及传值
- 装数据库的准备工作
- 【codevs1048】【codevs1154&&06TG】石子归并、能量项链,序列dp的典型题目
- 【已解决】可以ping通无法通过浏览器浏览该网站
- Office 365 IT Professional——利用PowerShell管理Administrator Role
- 黑马程序员-----IO流(2)字节流和转换流
- [263] Ugly number
- python __name__ == '__main__'解析
- Java基本数据类型
- CodeForces 550B Preparing Olympiad
- VI相关应用
- 中缀表达式转换成前缀表达式和后缀表达式的极其简单方法【转】