Hi everybody! I am kind of new with linux. I installed Fedora 2 in my PC. I need to change my Ip address to add the PC into a Lan for an specific application. Can anybody help me telling me, step by step what I should do???? I really need to now how to do this very fast!!!! Hope is not too difficult!

Dani AI

Generated

Several replies in this thread (for example from , , and ) rightly point out quick command-line and GUI ways to change an address. Those are fine for testing. For a lasting, reliable change on a Fedora 2 system you should edit the interface configuration that the init scripts read at boot rather than relying only on a temporary command.

Edit the per-interface file under /etc/sysconfig/network-scripts (backup the original first). A minimal static configuration looks like this:

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
IPADDR=10.0.0.50
NETMASK=255.255.255.0
GATEWAY=10.0.0.1
DNS1=8.8.8.8

Save the file with correct ownership and permissions, then restart the networking service so the new settings are applied (for example with the system's network init script). Verify the route table and that you can reach the gateway and outside hosts before assuming everything is OK.

Troubleshooting notes: always keep a working backup of the original file so you can restore it if connectivity is lost; if the machine is remote, plan a recovery path (serial console or local access) before changing network config. If the router uses DHCP make sure the static address you pick is outside its DHCP pool or reserved for this MAC to avoid IP conflicts. If DNS doesn't resolve, check /etc/resolv.conf or add DNS lines to the interface file. If the interface name differs from eth0, check the persistent network naming rules or the scripts in /etc/sysconfig for the correct device name.

This approach complements the quick methods already suggested in the thread and gives a permanent, auditable change suitable for Fedora-era systems.

Recommended Answers

All 6 Replies

Use ifconfig as root in a terminal.

In fedora 1, which I have on my server, you can change your ip by running redhat-config-network or by going into the menu, then system settings and network. Select your ethernet card and click configure. You can also specify an IP when installing.

To change the IP address of a computer, it is necessary to know what kind of IP address the computer is assigned to and which IP address indeed that computer should change. To change the LAN IP address, one must know what the LAN connection’s name is, as well as the original router settings etc.And you can chk your ip address from http://www.ip-details.com/

Use netconfig command to change your IP Address

you can change it with ifconfig but when you reboot you'll loose the config. A real easy way with fedora is to run the setup utility as root and change your default network config.

you can change it with ifconfig but when you reboot you'll loose the config. A real easy way with fedora is to run the setup utility as root and change your default network config.

Run command "netconfig" to change your ip address for permanently.
for temporary run this command e.g.
ifconfig eth0 netmask up
ifconfig eth0

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.