LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Change Ip address (https://www.linuxquestions.org/questions/linux-newbie-8/change-ip-address-328850/)

luisator 05-31-2005 07:55 AM

Change Ip address
 
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!

mariusak 05-31-2005 08:08 AM

ip address
 
dont have time to give you the step by step, but if you type ifconfig --help , you should understand the rest yourself..

-Marius

srinathnitk 06-02-2005 12:03 AM

Type setup at the command prompt and then select network from that then u can assign IP address..

kiraninfotech 06-02-2005 04:03 AM

Re: Change Ip address
 
Quote:

Originally posted by luisator
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!
:newbie:

Edit the config file with command
#vi /etc/sysconfig/network-scripts/ifcfg-eth0 (eth0 is the 1st ethrnet interface)

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=x.x.x.x
NETMASK=x.x.x.x
GATEWAY=x.x.x.x

Replace the parameters save the file and restart network service.
Done Enjoy!!


All times are GMT -5. The time now is 08:27 PM.