Fclinux 10 FC 10 fedora 10 static IP cannot access the Internet DNS generated by NetworkManager

Source: Internet
Author: User

Static IP addresses cannot be used. I don't know what's going on. I have another network manager .. No input methods

Now, let's make a summary!

Oh, my God! FC 10!

 

1. Open the terminal and switch to Super User Mode with Su, as shown below:
[NEO @ localhost ~] $ Su
Password:
[Root @ localhost NEO] #

2. Run gedit/etc/sysconfig/network-scripts/ifcfg-eth0 as follows:
[Root @ localhost NEO] # gedit/etc/sysconfig/network-scripts/ifcfg-eth0

My parameter settings are as follows:
# RealTek semiconductor Co., Ltd. rtl8111/8168b PCI Express Gigabit Ethernet controller
Device = eth0
Bootproto = static
Onboot = Yes
Userctl = Yes
Peerdns = Yes
Ipv6init = No
Nm_controlled = Yes
Type = Ethernet
Ipaddr = 192.168.0.3 # set it as needed!
Netmask = 255.255.255.0
Hwaddr = 00: 1D: 7d: E6: F5: 42 # set it as needed!
Gateway = 192.168.0.1 # set it as needed!

Dns1 = 202.106.0.20 # Set it by yourself based on your DNS!
Dns2 = 202.106.46.151 # Must insert this two lines !!!!!!
(Save and Exit)

(

3. Run gedit/etc/resolv. conf, for example:
[Root @ localhost NEO] # gedit/etc/resolv. conf
You can take a look. The content is not need to change! :
# Generated by NetworkManager

....

)

4. Run service network restart, for example:
[Root @ localhost NEO] # service network restart

5. Run gedit/etc/rc. Local, for example:
[Root @ localhost NEO] # gedit/etc/rc. Local
My parameter settings:
#! /Bin/sh
#
# This script will be executed * after * all the other init scripts.
# You can put your own initialization stuff in here if you don't
# Want to do the full sys V style init stuff.

Route add-net 192.168.0.1 netmask 255.255.255.0 eth0 # is also set as needed!
Route add default GW 192.168.0.1 eth0 # is also set as needed!
Touch/var/lock/subsys/local
(Save and Exit)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.