- 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 - 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 - In /etc/resolv.conf
searchyourdomain.com
nameserver 172.xx.xx.xx
nameserver 172.xx.xx.xx - 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.
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
Subscribe to:
Posts (Atom)