[Gllug] Numpty Networking

john.hearns at clustervision.com john.hearns at clustervision.com
Mon Nov 15 20:23:23 UTC 2004


Quoting Darren Beale <bealers at gmail.com>:

> Hi
> 
> I'm trying without success to link two networks together by means of
> two machines with 2 NICs and a crossover cable, as illustrated below:

Hope this isn't a stupid reply, but
you don;t need the two amchines with two NICs.
The 10.0.7 network is unnecessary.
One machine with two NICs should be enough to route between two networks.


And, here I am showing my stupidity, why not stick with convention and use
10.0  networks as Class A's
192.168 as Class C's.
And, yes, I do know that Class A,B,C are meaningless these days with CIDR.

And have you enabled routing on machine B?





> Network A 10.0.1.0/24
>       |
>       | eth0: 10.0.1.110
>       |
> ------|-----------
> |
> | Machine A
> |
> | Kernel IP routing table
> | Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> | 10.0.6.0        10.0.7.2        255.255.255.0   UG    0      0        0
> eth1
> | 10.0.1.0        0.0.0.0         255.255.255.0   U     0      0        0
> eth0
> | 0.0.0.0         10.0.1.1        0.0.0.0         UG    0      0        0
> eth0
> |
> ------------------
>       |
>       | eth1: 10.0.7.2
>       |
> [Crossover cable]
>       |
>       | eth1: 10.0.7.1
>       |
> ------|------------
> |    Machine B     |
> | Routing tables   |
> | untouched so far |
> -------------------
>       |
>       | eth0: 10.0.6.101
>       |
> 
> Network B 10.0.6.0/24
> 
> 
> Note Machine A, I've created a static route to 10.0.6.0/24 by use of
> the command:
> 
> route add -net 10.0.6.0/24 gw 10.0.7.2
> 
> So from A -> B I would hope I could ping something on 10.0.6.0/24 from
> A but I can't (it just sits there), so I've obviously got something
> wrong, but what? The only thing that I can do is ping 10.0.7.[1|2]
> from the respective machines
> 
> regs
> 
> Darren
> -- 
> Gllug mailing list  -  Gllug at gllug.org.uk
> http://lists.gllug.org.uk/mailman/listinfo/gllug
> 



-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list