Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network between three machines connected via switch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
pratty70
n00b
n00b


Joined: 27 Apr 2005
Posts: 24
Location: Wales, UK

PostPosted: Tue May 15, 2012 9:50 am    Post subject: Network between three machines connected via switch Reply with quote

I have three machines connected raw via a switch. No router. No server.
Should it be as simple as static IP addresses via
Code:

ifconfig eth0 192.168.1.21 up


And subsequently other machines .22 .23?

Both machines report correct address when running ifconfig after the above call on themselves.

When I do this I get destination host unreachable when doing a ping with raw ip address.

As there's no server or router involved I can't define a gateway?
Any obvious thoughts?
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Tue May 15, 2012 10:51 am    Post subject: Reply with quote

What does netstat -rn return? Please add a netmask (e.g., 255.255.255.0) to the ifconfig command.
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
pratty70
n00b
n00b


Joined: 27 Apr 2005
Posts: 24
Location: Wales, UK

PostPosted: Tue May 15, 2012 11:10 am    Post subject: Reply with quote

massimo wrote:
What does netstat -rn return? Please add a netmask (e.g., 255.255.255.0) to the ifconfig command.


Apologies I did actually enter:
Code:

ifconfig eth0 192.168.1.22 netmask 255.255.255.0 up


netstat -rn returns
Code:

Kernel IP Routing table
Destination     Gateway    Genmask        Flags     MSS Window     irtt     Iface
192.168.1.0     0.0.0.0    255.255.255.0  U           0  0            0      eth0
127.0.0.0       0.0.0.0    255.0.0.0      U           0  0            0      lo
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Tue May 15, 2012 11:15 am    Post subject: Reply with quote

What kind of switch (managed?) is used for this setup? I assume netstat -rn returns for all boxes the same information.
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
pratty70
n00b
n00b


Joined: 27 Apr 2005
Posts: 24
Location: Wales, UK

PostPosted: Tue May 15, 2012 11:24 am    Post subject: Reply with quote

massimo wrote:
What kind of switch (managed?) is used for this setup? I assume netstat -rn returns for all boxes the same information.


It's just a standard Netgear FS605 unmanaged switch.

Yes, netstat -rn returns the same for all boxes.
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Tue May 15, 2012 11:33 am    Post subject: Reply with quote

This somehow does not look right:
Code:
127.0.0.0       0.0.0.0    255.0.0.0      U           0  0            0      lo


Did you add this route?
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
pratty70
n00b
n00b


Joined: 27 Apr 2005
Posts: 24
Location: Wales, UK

PostPosted: Tue May 15, 2012 12:12 pm    Post subject: Reply with quote

Hmmm. Not that I'm aware of.
I need to check back through some config files. This system is an embedded system that hasn't changed for a number of years and used to work in a client server environment with dhcp. I will post some more info later when I get chance to look at the files again.
Thanks for the input.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum