Default IP for LocalHost in RedHat 6
New to Linux, so please be patient.
Have installed RedHat v6 on a Desktop PC at home ( just to get a feel for Linux & using Unix bash shell scripting ). all is working ok, except id like to set up an FTP app. My Localhost on Redhat returns an IP = 127.0.0.1 ( via an ifconfig command ) have looked at numerous links where i can edit the ifcfg-eth0 file within /etc/sysconfig/ & it seems straightforward. My question is "what IP do i assign it?" Note: Im connected via a standard Wireless router. |
Very likely, your wireless is a NAT device - thus blocking any incoming connections for a service.
A second issue with wireless is that the IP number is usually dynamically assigned (via DHCP during setup). This makes knowing what the IP number is rather hard. The USUAL solution (barring being blocked by NAT) is to use 0.0.0.0 for the address, which allows the service to respond to ANY network connection (even using the localhost IP). Localhost references are by definition 127.0.0.1 for IPv4. This address is not really for a network device. It is used for supporting services for the local host only, and never goes outside. |
Quote:
Quote:
Quote:
Again, I'd STRONGLY suggest you load Fedora, which will probably be MUCH easier to load, maintain, and work better with consumer hardware. RHEL is for SERVERS...things that typically don't have wifi, bluetooth, sound, webcams, or even MONITORS and KEYBOARDS most of the time. Support for such devices can be challenging. |
Welcome to LinuxQuestions.
In addition. There really isn't a default IP address. If your connected assumed wired- and everything works then would also assume your computer is being assigned an IP address via DHCP by the router. If you look at the output of the command: /sbin/ifconfig you should something like Quote:
Typically you would use a fixed IP address for a server. In some cases I find it useful to configure the router to always assign the same address vs setting a static address on the machine itself. |
Hosts file contains localhost number in almost all cases.
|
Hi
please see TBOne's post he said what i was going to but MUCH better than i would have . |
All times are GMT -5. The time now is 04:41 PM. |