Fedora 19
Networking
2013/07/03
[1] Set Hostname and static IP address to the server, DHCP is not recommended if you use as a server. ( Replace the section 'ifcfg-***' to your own interface name )
# install the package below which includes ifconfig, netstat and so on first

[root@localhost ~]#
yum -y install net-tools
[root@localhost ~]#
vi /etc/hostname
# add your hostname

dlp.server.world
[root@localhost ~]#
vi /etc/sysconfig/network-scripts/ifcfg-ens33
PEERROUTES="yes"
IPV6INIT="yes"
NAME="ens33"
IPV6_PEERDNS="yes"
DEFROUTE="yes"
UUID="55b24d89-1bcc-4e27-9e05-45a17bd6a428"
PEERDNS="yes"
IPV4_FAILURE_FATAL="no"
HWADDR="00:0C:29:FB:D7:28"
# change

BOOTPROTO="
none
"
IPV6_DEFROUTE="yes"
IPV6_AUTOCONF="yes"
IPV6_FAILURE_FATAL="no"
TYPE="Ethernet"
ONBOOT="yes"
IPV6_PEERROUTES="yes"
# add like follows

# this server's IP address

IPADDR="10.0.0.30"
# subnet mask

NETMASK="255.255.255.0"
# default gateway

GATEWAY="10.0.0.1"
# DNS server's IP address

DNS1="10.0.0.10"
[root@localhost ~]#
systemctl disable NetworkManager.service

rm '/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service'
rm '/etc/systemd/system/multi-user.target.wants/NetworkManager.service'
rm '/etc/systemd/system/network.target.wants/NetworkManager-wait-online.service'
[root@localhost ~]#
chkconfig network on

[root@localhost ~]#

dlp login:
Fedora release 18 (Spherical Cow)
Kernel 3.6.10-4.fc18.x86_64 on an x86_64 (ttyS0)
[root@dlp ~]#
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.30  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::20c:29ff:fefb:d728  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:fb:d7:28  txqueuelen 1000  (Ethernet)
        RX packets 62  bytes 8754 (8.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 88  bytes 12190 (11.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
[2] Disable IPv6 if you do not need it.
[root@localhost ~]#
vi /etc/default/grub
# line 6 : add like follows

GRUB_CMDLINE_LINUX="
ipv6.disable=1
rd.lvm.lv=fedora/swap rd.md=0.....
# reload

[root@localhost ~]#
grub2-mkconfig -o /boot/grub2/grub.cfg

[root@localhost ~]#
 
Tweet