LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-21-2008, 03:59 AM   #1
Mufasa
Member
 
Registered: Nov 2004
Posts: 101

Rep: Reputation: 15
Anything but 127.0.0.1


Hello all,

As of now, I have a standalone system (with Opensuse 10.3 - or SLES 10)

I need for the hostname of the system not to be associated with 127.0.0.1 (and the domain ~not~ to be associated with 127.0.0.2).

I think that hosts can be associated with IP addresses like 192.x.x.x but it seems to require that one be attached to the network or have some kind of access to a gateway - right?

Well, currently, I don't have that but I still need to fix the IP address.

Is there a way to use Yast, Yast2 or some other kind of networking so that the local host ip is other than 127.0.0.1?

TIA
 
Old 08-21-2008, 04:57 AM   #2
rednuht
Member
 
Registered: Aug 2005
Posts: 239
Blog Entries: 1

Rep: Reputation: 31
why ?
All unix based machines i.e. linux have localhost set as 127.0.0.1 and lots of applications use that information in the background.
If your machine is on a network, your own or the internet then it will have another IP address.
Code:
ifconfig -a
will show what network interfaces are available including local loopback bound to 127.0.0.1
if there is anything else there then you can run
Code:
route
to see how they are used.
if you have a private IP address 192.168.x.x or 10.x.x.x then you should be able to set the IP address
Code:
man ifconfig
if your IP address is something else then it is being set by your network provider and you should speak to them.
If you want to spoof an IP address then remember that none of the packets from your target machine will ever get back to you.

let us know how you get on.
 
Old 08-21-2008, 08:38 AM   #3
Mufasa
Member
 
Registered: Nov 2004
Posts: 101

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rednuht View Post
why ?
All unix based machines i.e. linux have localhost set as 127.0.0.1 and lots of applications use that information in the background.
Thanks for responding

Basically, the software I am using requires that the hostname not be associated with 127.0.0.1 and that the domain not be associated with 127.0.0.2 - why they made it that way, I have no idea.

Is there a list of steps one can go through to do this?

TIA
 
Old 08-21-2008, 03:58 PM   #4
rednuht
Member
 
Registered: Aug 2005
Posts: 239
Blog Entries: 1

Rep: Reputation: 31
as root edit /etc/hosts
it will have examples and it is a simple one to one list of hostnames to ip address mappings.
remember to make a back up first !
 
Old 08-21-2008, 04:19 PM   #5
Mufasa
Member
 
Registered: Nov 2004
Posts: 101

Original Poster
Rep: Reputation: 15
Have gotten a little more information now.

Basically, it seems as though the OS is not recognizing my ethernet card.

This is what I have done thus far:

-> uname -a
Linux simba 2.6.22.5-31-default #1 SMP 2007/09/21 UTC x86_64 x86_64 x86_64 GNU/Linux

-> lspci | grep Ethernet
00:0f.0 Ethernet controller: nVidia Corporation Unknown Device 07dc (rev a2)

-> ifconfig -a
lo Link encap Loopback
inet address : 127.0.0.1 Mask: 255.0.0.0
inet 6 addr:: 1/128 Scope:Host
UP LOOPBACK RUNNINGMTU: 16436
....
[snip]
....

Main thing: The loopback address(lo) is mentioned but not the ethernet (eth0).

-> cat /etc/udev/rules.d/30-net_persistent_names.rules

There is no such file in this directory

-> ifup eth0
Interface eth0 is not available

-> ifdowneth0
Interface eth0 is not available

I am working with Opensuse 10.3. Yast does not autodetect my ethernet card - but - I was not connected to the network when installing the OS.

What can I do now?

TIA

Last edited by Mufasa; 08-22-2008 at 08:54 AM.
 
Old 08-22-2008, 04:48 PM   #6
rednuht
Member
 
Registered: Aug 2005
Posts: 239
Blog Entries: 1

Rep: Reputation: 31
boot with ubuntu or knoppix live CDs and see what they think of your network card.
dmesg may also give you more information if there was a problem setting up the network card.
a quick google comes up with nvidia nforce drivers and 64 linux http://ubuntuforums.org/showthread.php?t=676032
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what does 127.0.1.1 mean ??? cryincold Linux - Networking 2 02-24-2008 11:15 PM
Sendmail : relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refuse macadam Linux - Software 0 09-23-2007 02:44 PM
mailer=relay, pri=30008, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Con pralhad Linux - Software 1 08-11-2007 10:49 AM
Is 127.0.0.1 behind the firewall? albean Linux - Newbie 3 01-12-2005 11:20 AM
DSN: Data format error & relay=[127.0.0.1] [127.0.0.1] calmbomb Linux - Software 0 11-07-2004 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration