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

Jan D.
Jan D.

"The only real security that a man will have in this world is a reserve of knowledge, experience, and ability."

Articles: 675

Leave a Reply

Vaše e-mailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *