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)