LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   My server has 127.0.0.1 ip instead of one from a remote DHCP server? (https://www.linuxquestions.org/questions/linux-newbie-8/my-server-has-127-0-0-1-ip-instead-of-one-from-a-remote-dhcp-server-116477/)

leejenson 11-15-2003 06:31 PM

My server has 127.0.0.1 ip instead of one from a remote DHCP server?
 
Hi,

Before I go hassling the IT bods at work I wanted to make sure I havent missed anything stupid.

On installing Red Hat I installed the Firewall enabling all the incoming options.

I can do the following network stuff:

1. Ping other servers on the network from my linux box
2. Get onto the internet
3. Collect primary and secondary dns ip addresses from the my work network

The only thing I cannot seem to do is ping my linux server from another machine.

I am wondering if its something to do with the fact that the IP address for my linux in 127.0.0.1 instead of one collected from our DHCP server.

I have tried various things like removing my host names from the hosts file to see if that would make any difference no luck.

Have I missed an import configuration step regarding using a firewall and the automatic collection of a DHCP IP address by my server?

Thanks

Lee

trickykid 11-15-2003 06:39 PM

What is the or your output of ifconfig? Are you connected via LAN or other type of connection via ethernet, etc? NIC type, etc? More details as we can't assume your setup.

Ginux 11-15-2003 06:42 PM

It's how you setup the firewall, if you can ping other machines, then you have a valid IP, the 127.0.0.1 is a loopback address.
Try ifconfig from the command line, and it should show 2 (or more) intrefaces lo & eth0, eth0 is what you should look at.

Rgds
Ginux

leejenson 11-16-2003 09:39 AM

Thanks for your replies.

I have done a ifconfig.

I have eth0 and lo as you said.

eth0 has been allocated ip addresses from my work network

inet addr:
Bcast:
and Mask.

So would this mean I have to fiddle with my firewall ?

IMy environment is like this, I work at home:

LINUX to CISCO ROUTER to ISDN to WORK NETWORK.

I have a laptop on the same network and have copied any settings where possible, of which there is not much because it just collects IPs from work.

Thanks

Lee

Ginux 11-16-2003 10:10 AM

I have't configured a router, and don't know where to start.
It looks like a firewall issue, the machine can ping others but other can't ping it.
It could be simply a setting that rifuses a ping request, there 2 ways to resolve the this,
1) throu the firewall program.
2) using ip chains (it's the same as 1, but using text comands instead of a gui)

leejenson 11-17-2003 04:57 PM

Thanks for your replies. I will have a look at what you suggest. Is there a simple way to switch off the fire wall to see if the problem goes away?

Thanks
Lee

Ginux 11-18-2003 11:57 AM

It's possibile
If you installed an aditional firewall on you system, just do the following.
in a terminal type

ps -ax |more *and find the firewall program that is runing and it's PID*
Kill -9 PID *the PID the number you got using the first command*

If you are using the standard firewall that came w/ RH

In the (start) menu, under services, or network, you should find the firewall program/configurator, from there you can disable, lower or increase the firewall protection and enable what it accepts or not (i.e. HTTP, FTP, ...etc)

Ginux


All times are GMT -5. The time now is 03:55 PM.