Solved

IP address

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Backup & Restore 3 66
Which is more secure: EAP or machine certificate for IKEv2 VPN? 1 135
Linux script delete files 3 50
linux SFTP 8 61
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…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

828 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