Solved

IP address

Posted on 1998-09-29
2
172 Views
Last Modified: 2010-04-20
Is it possible to assign an IP address to a computer even if it is not connected to a network?  I have a standalone PC (without any network interfaces) but I would like to assign it an IP address and aliases so that it acts as if it is connected to the internet.  Is it possible to assign an IP address or can you add aliases to the 127.0.0.1 localhost entry?

Thanks in advance.
0
Comment
Question by:bsufs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
feenix earned 50 total points
ID: 1638162
Yes, you can. You need to have network aliasing support in your kernel. Then just use this to assign an IP address (the address in the example is a good one, it is used to private networks)

/sbin/ifconfig lo:0 192.168.0.1 netmask 255.255.255.0

You should use 192.168.x.x-style addresses in private networks, because they are not routed anywhere in the net.
0
 

Author Comment

by:bsufs
ID: 1638163
Is network aliasing a standard option of Linux?  I haven't installed Linux yet but I am going to install Slackware Linux.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question