"Something like" is not good enough. Sorry.
Quote:
Internet (router) 192.168.0.1
|
| (connecting to eth0)
Ubuntu Box
|
| (connections going from eth0 & eth1)
|
L Computer #1 (directly connected to Ubuntu, eth1)
|
L Computer #2 (directly connected to Ubuntu, eth1)
|
You cannot have two computers connected to
eth1 without a router / switch being involved. It is not physically possible: One socket, but two PCs: It will not work. Just try jamming two cables into one socket. See?
Please, take a step back. Pause, take a deep breath and think a little. You are making life unnecessarily complicated for yourself:
You have a router. (How many Ethernet ports does it have? (usually 4 as a minimum))
Set it up like this (Bad ASCII art follows
):
Code:
Your WAN (INTERnet) IP may be These are your LOCAL LAN Addresses
Something like 82.144.99.7 |
I just guessed a random number, sorry |
if this is someone's real IP(!) |
| V
|
| |---PC1 (192.168.0.2)
| |
| |---PC2 (192.168.0.3)
| |
Internet---ISP---DSL---Modem--Router---|---PC3 (192.168.0.4)
| |
| |---PC4 (192.168.0.5)
|
|
|
Your Modem /router has 2 addresses
One is external (eg 82.144.99.7) referenced by the INTERnet
and allocated by your ISP
The other is LOCAL (192.168.0.1) referenced by your LAN
Then the router will then sort the connections for you
PC1, PC2 etc have IP numbers as in the diagram.
They have these (LAN) IP numbers because you have specified them in
each of the PCs
interfaces file, like this:
Code:
[Snip]
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
[Snip]
The red bit you will have to change according to each PC you are setting up. Each PC needs a different IP address, within your subnet range (EG 192.168.0.*), and a different hostname if you wish to refer to them by name rather than IP number (most of us prefer this)
If you want to refer to them by hostname, then you'll have to rename your hosts one at a time to a unique name other than "localhost" [See the file
/etc/hostname and
man hostname], and then reboot them (hostname changes are fundamental to the operation of your OS).
Then you'll have to list your local, LAN hosts, in all the PC's
/etc/hosts files, these should all be identical, something like this:
Code:
# The next line, referring to localhost is essential
127.0.0.1 localhost
# Here are your PCs LAN IP addresses, their FQDNs and shortnames
# Because this is your LOCAL LAN, the names "mynet.me" do not matter,
# choose anything, but be consistent
192.168.0.2 PC1.mynet.me PC1
192.168.0.3 PC2.mynet.me PC2
192.168.0.4 PC3.mynet.me PC3
192.168.0.5 PC4.mynet.me PC4
To test it:
Can you ping by IP address eg
ping 198.162.0.1 (Your router)
No? Then your PC is not seeing your router. This is bad.
ping 192.168.0.3 (another PC on your LAN)
No? Then your 192.168.0.3 is not being seen by your LAN/Router. It needs reconfiguring.
Can you ping by hostname eg
ping PC2
No? Then you have a fault with
/etc/hosts on the PC you are sat at
Meanwhile, you did not answer my question:
Quote:
Did you read any of that tutorial / howto I linked to in post #3?
|
So I suppose that means you did not.
Enough from me, get busy reading, googling and experimenting. I'm tired