Fedora 20 change IP

[root@drash etc]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=eth0
UUID=e2647d40-8e94-4c17-a842-1d35d72775b1
ONBOOT=yes
DNS1=208.67.220.220
DNS2=208.67.222.222
DNS3=213.46.172.36
HWADDR=00:1C:25:1C:D8:B3
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no

# this server’s IP address
IPADDR=”192.168.1.116″
# subnet mask
NETMASK=”255.255.255.0″
# default gateway
GATEWAY=”192.168.1.1″

[root@drash etc]# systemctl restart  xinetd.service

wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.106 netmask 255.255.255.0 broadcast 0.0.0.0
inet6 fe80::21d:e0ff:fe52:8227 prefixlen 64 scopeid 0x20<link>
ether 00:1d:e0:52:82:27 txqueuelen 1000 (Ethernet)
RX packets 85061 bytes 26226064 (25.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 160358 bytes 140531537 (134.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s