Fedora 13 – 2.6.34.7-56.fc13.i686
Configure Static IP
vi /etc/sysconfig/network-scripts/ifcfg-eth0
Where eth0 is the interface on which you want to configure the IP.
Change “onboot” and add the two following lines so it looks like this
ONBOOT=yes
IPADDR=192.168.1.2
NETMASK=255.255.255.0
Then we need to setup your “default gateway”
vi /etc/sysconfig/network
add the following
GATEWAY=192.168.1.1
and finally we’ll configure the DNS servers
vi /etc/resolv.conf
and add the following
nameserver 192.168.1.1
nameserver 192.168.2.2
once you’ve done that, restart the “network” service
service network restart
Configure DHCP Fedora 13
First we need to hop into the network-scripts directory:
cd /etc/sysconfig/network-scripts/
Then edit the ifcfg-xxxx file for your particular network card:
vi ifcfg-eth0
Edit the following lines:
ONBOOT=yes BOOTPROTO=dhcp
Then we’ll have to restart the “network” service:
service network restart
Configure the Network Service
Now that our network is setup, we should really configure the “network” service to automatically start up when we want it to. Personally I only run *nix in CLI, but for those of you that run some form of desktop manager, I’ve included that as well.
Lets first see if it’s already configured to start
chkconfig --list
if network isn’t marked as “on” for levels 3 and 5, then do the following
chkconfig --levels 35 network on
Now when your computer boots up into init 3 (multiuser network mode) or init 5 (xwindows) your network service will start.
09/28/2010
Phil Pillera <ppillera [ a t ] gmail [ d o t ] com>