Change IP Address

From KlavoWiki
Jump to navigationJump to search

To change the IP address of your computer edit the following file:

nano /etc/sysconfig/network-scripts/ifcfg-eth0

or run

system-config-network

If system-confg-network is not already installed

yum install system-config-network-tui

Configuration Files

Dynamic

/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:04:23:24:E6:ED
ONBOOT=yes
DHCP_HOSTNAME=pbx.home.local

Static

/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.1.250
NETMASK=255.255.255.0
GATEWAY=192.168.1.254
HWADDR=00:04:23:24:E6:ED
TYPE=Ethernet