Change IP Address: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
<pre> | <pre> | ||
system-config-network | system-config-network | ||
</pre> | |||
If system-confg-network is not already installed | |||
<pre> | |||
yum install system-config-network-tui | |||
</pre> | </pre> | ||
Latest revision as of 02:54, 16 April 2012
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