We help IT Professionals succeed at work.

Definition IP address in Linux

tikal
tikal asked
on
How can I define IP address in Linux?
Comment
Watch Question

Commented:
replace aa.bb.cc.dd with your desired ip address and ee.ff.gg.hh with your subnet mask. Type the first
command again to see if it work. Please note any messages you get.

So this would be somethibg like
10.0.0.1 255.255.255.0

where 255.255.255.0 is the subnetmask

Commented:
Oops forgot the command you need ;)

> ifconfig eth0 aa.bb.cc.dd netmask ee.ff.gg.hh up

replace aa.bb.cc.dd with your desired ip address and ee.ff.gg.hh with your subnet mask. Type the first

command again to see if it work. Please note any messages you get.

So this would be somethibg like
10.0.0.1 255.255.255.0

where 255.255.255.0 is the subnetmask
tikal:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.

Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept taco1's comment as answer.
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

troopern
EE Cleanup Volunteer

Explore More ContentExplore courses, solutions, and other research materials related to this topic.