LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-17-2007, 09:11 PM   #16
elfoozo
Member
 
Registered: Feb 2004
Location: Washington, USA
Distribution: Debian
Posts: 265

Rep: Reputation: 32

Everything I've ever read says only to define 127.0.0.1 to localhost. So in mine, I've always had:
Code:
127.0.0.1     localhost
And for a host entry I'd do:
Code:
192.168.1.50     orion     orion.domain.tld
Ubuntu should grab the value for 'hostname' from what you have defined in /etc/hostname.

Might be that you have a firewall stopping your pings?
Check that with 'iptables --list'

If there's no firewall it should look something like this:
Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Last edited by elfoozo; 11-17-2007 at 09:12 PM.
 
Old 11-18-2007, 03:56 AM   #17
hamster
Member
 
Registered: Apr 2003
Location: Waterford, Ireland
Distribution: Mandrivia 2006.1, Ubuntu 7.10
Posts: 188

Original Poster
Rep: Reputation: 30
Good idea...elfoozo

Think it looks ok though:

Code:
hamster@orion:~$ sudo iptables --list
[sudo] password for hamster:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
hamster@orion:~$
 
Old 11-18-2007, 04:25 AM   #18
hamster
Member
 
Registered: Apr 2003
Location: Waterford, Ireland
Distribution: Mandrivia 2006.1, Ubuntu 7.10
Posts: 188

Original Poster
Rep: Reputation: 30
My hostname cannot be seen from other computers on the network.
ping orion on any of the networked pcs time out but they do respond to the ip 192.168.1.50. lol!

It wouldn't be to do with the fact that my gateway is high at 192.168.1.254 would it?

/etc/network/interfaces
Code:
# primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.50
gateway 192.168.1.254
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255

Last edited by hamster; 11-18-2007 at 04:46 AM.
 
Old 01-03-2008, 03:38 PM   #19
Sp0ngeWorthy
LQ Newbie
 
Registered: Oct 2005
Distribution: 10.0,2005LE,2006
Posts: 10

Rep: Reputation: 0
is your firewall set to allow pings through? I think by default most modern firewalls don't allow this as it prevents bots from easily locating a machine at your IP address. Of course the windoze machines respond... windows is inherently insecure.
 
  


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
Setting for Number of Logon Failures and Action after that? as400 Solaris / OpenSolaris 3 07-22-2007 10:56 AM
setting up my hostname lawkh Linux - Newbie 3 01-23-2004 04:22 PM
Setting double click as default action in mandrake 9.1 Moses420ca Linux - Newbie 7 10-26-2003 08:52 PM
setting hostname skunk1 Solaris / OpenSolaris 3 04-02-2003 01:00 AM
setting up a hostname sakeeb Linux - Networking 3 04-28-2002 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:54 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