Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to configure an IP address from class E, for example

Currently Linux (Linux- returns the following answer:

ifconfig: SIOCSIFADDR: Invalid argument

Is there a way to do this?

(The reason for using class E is that I would like to avoid IP address conflicts with customer IP networks.)

share|improve this question

migrated from stackoverflow.com Aug 28 '11 at 12:45

This question came from our site for professional and enthusiast programmers.

Why do you want to do this? Can't you just use an A/B/C? – DaveRandom Aug 28 '11 at 12:49
The "Class E" address is a "range reseved for future use" - so nothing uses it, you'd not be able to communicate. – rozcietrzewiacz Aug 28 '11 at 12:59
Similar discussion: IPv4 Exhaustion: What About Class E Addresses? – Steve-o Aug 28 '11 at 14:10

The E class is not to be used. That is why the kernel does not permit setting such address. If you want a local IP, use one of the IP ranges designed for that purpose. Those are –      (class A) –    (from B class) –  (from C class)

(See wikipedia for details.)

share|improve this answer
+1 Concur. That's what those address spaces are bloody well for. – Shadur Aug 28 '11 at 17:06

I'll like to have internal IP communication between elements that will NOT conflict with customer IP networks

Sounds like a perfect time to implement IPv6.

share|improve this answer

Use ip not ifconfig. Ifconfig is in the process of being deprecated by many linux distributions anyway.

ip addr add dev eth0

share|improve this answer

From an expired IETF draft "Redesignation of 240/4 from "Future Use" to "Private Use""

Apple OSX has been confirmed to support the use of as unicast address space. Changes have been incorporated into recent versions of Sun Solaris and have been submitted for inclusion in the Linux kernel tree. No plans have been announced for modifications to any version of Microsoft Windows, in part because of uncertainty over how to perform 6-to-4 tunneling in the absence of a definitive statement on whether is "public" or "private" space.

So the majority of operating systems will not support this address range even if you can force a device to use it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.