From: Shawn on
Hi,

I am trying to configure networking on Debian but have run into
problems.

In /etc/networks/interfaces

iface eth0 inet static
address 146.243.56.160
netmask 255.255.254.0
gateway 146.243.124.1


The IP address gets assign properly and I can ping anything in the
146.243.56.x range. It appears that Debian doesn't like that the
gateway is in a different addressing range as I can't get past
146.243.56.x.
/sbin/route returns only a single line not two...
146.243.56.0 * 255.255.254.0 U 0 0 0 eth0

I'm assuming this is just a routing issue but I can't get debian to
accept the gateway. I have tried adding the route manually but get a
Siocaddrt: No Such Process error.

I have many others machines (Macs/Windows) with IP addresses that are
outside of the gateway range and they have no problem.

Any suggestions?

Thanks,

Shawn

From: klaus zerwes on
On 06/16/2010 04:17 PM, Shawn wrote:
> Hi,
>
> I am trying to configure networking on Debian but have run into
> problems.
>
> In /etc/networks/interfaces
>
> iface eth0 inet static
> address 146.243.56.160
> netmask 255.255.254.0
> gateway 146.243.124.1

$ IPCalc 146.243.56.160/255.255.254.0
146.243.56.160/255.255.254.0 * 146.243.56.160/23
* network: 146.243.56.0 10010010.11110011.00111000.00000000
* netmask: 255.255.254.0 11111111.11111111.11111110.00000000
* wildcard: 0.0.1.255 00000000.00000000.00000001.11111111
* min host: 146.243.56.1 10010010.11110011.00111000.00000001
* max host: 146.243.57.254 10010010.11110011.00111001.11111110
* broadcast: 146.243.57.255 10010010.11110011.00111001.11111111
* dotted decimal notation: 146.243.56.0/255.255.254.0
* classless inter-domain routingt (CIDR) notation: 146.243.56.0/23
* ip range as bigint: 2465413120 - 2465413631
* bytelength for ip range: 4

146.243.124.1 is not in your network.

Klaus

>
> The IP address gets assign properly and I can ping anything in the
> 146.243.56.x range. It appears that Debian doesn't like that the
> gateway is in a different addressing range as I can't get past
> 146.243.56.x.
> /sbin/route returns only a single line not two...
> 146.243.56.0 * 255.255.254.0 U 0 0 0 eth0
>
> I'm assuming this is just a routing issue but I can't get debian to
> accept the gateway. I have tried adding the route manually but get a
> Siocaddrt: No Such Process error.
>
> I have many others machines (Macs/Windows) with IP addresses that are
> outside of the gateway range and they have no problem.
>
> Any suggestions?
>
> Thanks,
>
> Shawn
>


--
Klaus Zerwes
http://www.zero-sys.net
From: Tauno Voipio on
On 16.6.10 5:17 , Shawn wrote:
> Hi,
>
> I am trying to configure networking on Debian but have run into
> problems.
>
> In /etc/networks/interfaces
>
> iface eth0 inet static
> address 146.243.56.160
> netmask 255.255.254.0
> gateway 146.243.124.1
>
>
> The IP address gets assign properly and I can ping anything in the
> 146.243.56.x range. It appears that Debian doesn't like that the
> gateway is in a different addressing range as I can't get past
> 146.243.56.x.
> /sbin/route returns only a single line not two...
> 146.243.56.0 * 255.255.254.0 U 0 0 0 eth0
>
> I'm assuming this is just a routing issue but I can't get debian to
> accept the gateway. I have tried adding the route manually but get a
> Siocaddrt: No Such Process error.
>
> I have many others machines (Macs/Windows) with IP addresses that are
> outside of the gateway range and they have no problem.


Your network set-up is sick: the gateway has to be in the range
directly addressable under the network mask from the own local net.

What are you attempting to achieve by this kind of set-up?

Is the gateway physically in the same local net as your computer?
If yes, what is the netmask in the gateway?

--

Tauno Voipio
tauno voipio (at) iki fi


From: Denis McMahon on
On 16/06/10 15:17, Shawn wrote:
> Hi,
>
> I am trying to configure networking on Debian but have run into
> problems.
>
> In /etc/networks/interfaces
>
> iface eth0 inet static
> address 146.243.56.160
> netmask 255.255.254.0

146.243.56.0 - 146.243.57.255

> gateway 146.243.124.1

The gateway is outside the network address range.

They will both be in the net: 146.243.0.0/17

aka 146.243.0.0/255.255.128.0

as shown below:

denis(a)denis-desktop:~$ ipcalc 146.243.124.1/17
Address: 146.243.124.1 10010010.11110011.0 1111100.00000001
Netmask: 255.255.128.0 = 17 11111111.11111111.1 0000000.00000000
Wildcard: 0.0.127.255 00000000.00000000.0 1111111.11111111
=>
Network: 146.243.0.0/17 10010010.11110011.0 0000000.00000000
HostMin: 146.243.0.1 10010010.11110011.0 0000000.00000001
HostMax: 146.243.127.254 10010010.11110011.0 1111111.11111110
Broadcast: 146.243.127.255 10010010.11110011.0 1111111.11111111
Hosts/Net: 32766 Class B

denis(a)denis-desktop:~$ ipcalc 146.243.56.160/17
Address: 146.243.56.160 10010010.11110011.0 0111000.10100000
Netmask: 255.255.128.0 = 17 11111111.11111111.1 0000000.00000000
Wildcard: 0.0.127.255 00000000.00000000.0 1111111.11111111
=>
Network: 146.243.0.0/17 10010010.11110011.0 0000000.00000000
HostMin: 146.243.0.1 10010010.11110011.0 0000000.00000001
HostMax: 146.243.127.254 10010010.11110011.0 1111111.11111110
Broadcast: 146.243.127.255 10010010.11110011.0 1111111.11111111
Hosts/Net: 32766 Class B

So what you could do is set the netmask to 255.255.128.0 and then route
add default 146.243.124.1.

It would indeed be interesting to see the ip addresses, gateways and
netmasks used by other equipment on the lan. Is it possible that another
gateway in 146.243.56.160/255.255.254.0 is forwarding to 146.243.124.1
for the other computers?

Rgds

Denis McMahon
From: Shawn on
"the gateway has to be in the range directly addressable under the
network mask from the own local net. "

Using those same static settings in a windows machine or OSX machine
has no problem accessing all across the network.

"What are you attempting to achieve by this kind of set-up? "

Getting Debian (for Koha) to work on an existing network that has
hundreds of other computers on it. The network is actually a very
large WAN.

"Is the gateway physically in the same local net as your computer?"

I believe so, but I am not the network administrator..

"If yes, what is the netmask in the gateway? "

255.255.254.0

Thanks,

Shawn