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>
= Configuration Files =
== Dynamic ==
'''/etc/sysconfig/network-scripts/ifcfg-eth0'''
<pre>
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:04:23:24:E6:ED
ONBOOT=yes
DHCP_HOSTNAME=pbx.home.local
</pre>
== Static ==
'''/etc/sysconfig/network-scripts/ifcfg-eth0'''
<pre>
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
</pre>
</pre>


[[Category : Linux]]
[[Category : Linux]]

Revision as of 03:22, 17 February 2009

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