Posted by: jasonk2600 | March 20, 2009

Manually Changing Network Settings on Fedora 10

Login or change to root account.

# su

Change to system network configuration scripts directory.

# cd /etc/sysconfig/network-scripts

Load the configuration script for the network adapter in a text editor.

# nano -w ./ifcfg-etho

Add or modify the following lines of the network adapter configuration script with the new network settings.

ONBOOT=yes                   (yes or no to activate on boot.)
NETMASK=255.255.255.0        (Your netmask here.)
IPADDR=10.0.1.2              (Your IP address here.)
DNS1=10.0.1.1                (Your DNS server's IP address here.)
DNS2=10.0.1.254              (Your second DNS server's IP address here.)
DOMAIN=mydomain.net          (Your domain name here.)
USERCTL=no                   (yes or no to allow normal users to control this
                              adapter.)
IPV6INIT=no                  (yes or no to enable IPv6.)
NM_CONTROLLED=yes            (yes or no to have NetworkManager control the
                              settings or this adapter.)
MTU=1500                     (Generally, this should always be 1500.)
GATEWAY=10.0.1.1             (Your subnet router's IP address.)

Save the changes you have made to the network configuration script and exit the text editor.

It is always good practice to ensure that your system’s hostname, domain name, and IP address are in the local DNS hosts lookup file.  Load the local DNS hosts lookup file into a text editor.

# cd /etc
# nano -w ./hosts

Add or modify the following lines to reflect the changes to the network configuration that you have made.

127.0.0.1      localhost.localdomain  localhost  yourhostname
::1            localhost6.localdomain6  localhost6
10.0.1.2       yourhostname.yourdomain.net  yourhostname

NOTE:Replace yourhostname with your system’s hostname, replace 10.0.1.2 with your system’s IP address, and replace yourdomain.net with your system’s domain name.

Save the changes you have made to the local DNS hosts lookup file and exit the text editor.  Reboot the computer to activate the changes you have made to the network setup.

# reboot
[EoF]
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: