Solved

IP address

Posted on 1998-09-29
2
167 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now