How to change IP of linux machine

jladdm3

Baseband Member
Messages
46
Hi what is the command to change the ip address for linux (running fedora). I want to set a different static ip address then the one it has through the command line. i know about ifconfig but is there a switch to change the ip??? help me out please. thanks alot!
 
No thats a windows command

ifconfig eth0 192.168.0.1 netmask 255.255.255.0

Now replace eth0 with the ID if your ethernet adapter (eth0 is likely the ID of your ethernet adapter)

Replace 192.168.0.1 with whatever IP address you want

Replace 255.255.255.0 with whatever your subnet is
 
Back
Top Bottom