Change IP Address

From KlavoWiki
Revision as of 03:22, 17 February 2009 by David (Sọ̀rọ̀ | contribs)
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

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