[H-GEN] Routing Problem

Michael Anthon michael at anthon.net
Mon Jan 12 08:04:34 EST 2004


Andrew Pullin wrote:

>    The software is a minimal install RH 9.0 (OK so I know RH better than
>any distro, it may not be the best, but I know it or thought I did). The
>installation went fine, and both network cards were correctly detected, and
>configured for a /28 subnet as follows:
>
>    eth0    203.*.*.162 mask 255.255.255.240 bcast 203.*.*.175
>    eth1    203.*.*.163 mask 255.255.255.240 bcast 203.*.*.175
>
In your efforts to obfuscate the real IP address you have made this 
harder to give advice on.  I would assume that the *.*  for each 
interface is the same?  If that is so then you have overlapping subnets 
on different physical segments.  This is bad and explains the loss of 
one of the interfaces in the routing table.  When you create a route and 
tell it the gateway address then this address will match on both the 
subnets... so which one should it use?  I suspect what you need to do 
(if in fact you need real IP addresses?) is to split the available 
subnet into 2 distinct subnets and use those on the 2 physical segments

So... if you have 203.*.*.160/255.255.255.240 available to you, then 
make it  203.*.*.160/255.255.255.248 for eth0 
203.*.*.168/255.255.255.248 for eth1 (or the other way around, whatever 
tickles your fancy).  I find ipcalc rather helpful in figuring this 
stuff out...

Cheers,
Michael

belial:~# ipcalc.pl 203.1.1.163/29

Address:   203.1.1.163           11001011.00000001.00000001.10100 011
Netmask:   255.255.255.248 == 29 11111111.11111111.11111111.11111 000
Wildcard:  0.0.0.7               00000000.00000000.00000000.00000 111
=>
Network:   203.1.1.160/29        11001011.00000001.00000001.10100 000 
(Class C)
Broadcast: 203.1.1.167           11001011.00000001.00000001.10100 111
HostMin:   203.1.1.161           11001011.00000001.00000001.10100 001
HostMax:   203.1.1.166           11001011.00000001.00000001.10100 110
Hosts/Net: 6


belial:~# ipcalc.pl 203.1.1.168/29

Address:   203.1.1.168           11001011.00000001.00000001.10101 000
Netmask:   255.255.255.248 == 29 11111111.11111111.11111111.11111 000
Wildcard:  0.0.0.7               00000000.00000000.00000000.00000 111
=>
Network:   203.1.1.168/29        11001011.00000001.00000001.10101 000 
(Class C)
Broadcast: 203.1.1.175           11001011.00000001.00000001.10101 111
HostMin:   203.1.1.169           11001011.00000001.00000001.10101 001
HostMax:   203.1.1.174           11001011.00000001.00000001.10101 110
Hosts/Net: 6




More information about the General mailing list