zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Fedora: static IP

February 24, 2011 by Igor Drobot Leave a Comment

Fedora use some own configuration files unlike Debian systems. For network configuration exactly the same.
Lets bring our eth0 interface up with static IP-Address.
This configuration block can be copied, please change your BROADCAST, HWADDR, IPADDR, NETWORK and of course the GATEWAY parameter.

1
vim /etc/sysconfig/network-scripts/ifcfg-eth0

vim /etc/sysconfig/network-scripts/ifcfg-eth0

1
2
3
4
5
6
7
8
9
10
11
12
DEVICE="eth0"
BOOTPROTO="none"
BROADCAST="192.168.3.255"
HWADDR="52:54:00:51:B9:F5"
IPADDR="192.168.3.201"
NETMASK="255.255.255.0"
NETWORK="192.168.3.0"
ONBOOT="yes"
TYPE="ETHERNET"
GATEWAY="192.168.3.1"
DEFROUTE="yes"
NM_CONTROLLED="yes"

DEVICE="eth0" BOOTPROTO="none" BROADCAST="192.168.3.255" HWADDR="52:54:00:51:B9:F5" IPADDR="192.168.3.201" NETMASK="255.255.255.0" NETWORK="192.168.3.0" ONBOOT="yes" TYPE="ETHERNET" GATEWAY="192.168.3.1" DEFROUTE="yes" NM_CONTROLLED="yes"

If you reboot your system and you have still no IP try this out, you network will be started in the runlevels 2-5:

1
chkconfig --level 2345 network on

chkconfig --level 2345 network on

Filed Under: Linux Tagged With: Fedora, fedora 14, fedora 14 server, ip, static ip

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok