Showing posts with label static ip on fedora. Show all posts
Showing posts with label static ip on fedora. Show all posts

Set STATIC IP on Fedora 21

  1. From ip link show command, find the network interface you want to make static.

    [0]ip link show
    1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: em1: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
        link/ether 2c:27:d7:2b:ee:76 brd ff:ff:ff:ff:ff:ff

  2. In /etc/sysconfig/network-scripts/ifcfg-em1

    TYPE="Ethernet"
    DEVICE="em1"
    ONBOOT="yes"
    NM_CONTROLLED="no"
    BOOTPROTO="static"
    IPADDR=172.17.172.79
    NETMASK=255.255.252.0
    GATEWAY=172.17.172.1

  3. In /etc/resolv.conf

    search yourdomain.com
    nameserver 172.xx.xx.xx
    nameserver 172.xx.xx.xx

  4. Please leave a comment or g +1 or share on f or share on t below if this post helped you. This will keep me motivating.