Networking Forums

Networking Forums > Computer Networking > Linux Networking > Is there an IP address which represents "no default gateway?"

Reply
Thread Tools Display Modes

Is there an IP address which represents "no default gateway?"

 
 
auxvivrespos@gmail.com
Guest
Posts: n/a

 
      09-25-2007, 07:14 PM
Just a quick question for you networking wizards out there:

I am trying to configure a TCP/IP-based network printer. This printer
will reside on an isolated network so a default gateway is not
needed. The network configuration of this printer is accomplished via
HTTP through a standard web interface. Although I do not want to
specify a default gateway, the printer's configuration does not allow
me to leave the "default gateway:" field blank. Is there an ip
address I can enter that will be interpreted as "no default gateway?"
is 0.0.0.0 a valid input? If so, what does it mean? Thanks in
advance for any insight on this one.

 
Reply With Quote
 
 
 
 
Scott Gifford
Guest
Posts: n/a

 
      09-25-2007, 07:26 PM
(E-Mail Removed) writes:

[...]

> Although I do not want to specify a default gateway, the printer's
> configuration does not allow me to leave the "default gateway:"
> field blank. Is there an ip address I can enter that will be
> interpreted as "no default gateway?" is 0.0.0.0 a valid input? If
> so, what does it mean?


0.0.0.0 means "this host, this network", so it's essentially telling
the printer to use itself as its default gateway (though it may
interpret that differently).

I would suggest using an address on your network that is and will
remain unused.

-----Scott.
 
Reply With Quote
 
auxvivrespos@gmail.com
Guest
Posts: n/a

 
      09-27-2007, 06:18 PM
Thanks for the info. My initial guess was that 0.0.0.0 represented a
null address but it sound like it has a much different meaning. I'll
play around with this setting and see what works. I'm surprised that
the configuration will not allow me to leave the default gateway
undefined.

> 0.0.0.0 means "this host, this network", so it's essentially telling
> the printer to use itself as its default gateway (though it may
> interpret that differently).
>
> I would suggest using an address on your network that is and will
> remain unused.



 
Reply With Quote
 
Stefan Monnier
Guest
Posts: n/a

 
      09-27-2007, 09:25 PM
> Just a quick question for you networking wizards out there:
> I am trying to configure a TCP/IP-based network printer. This printer
> will reside on an isolated network so a default gateway is not
> needed. The network configuration of this printer is accomplished via
> HTTP through a standard web interface. Although I do not want to
> specify a default gateway, the printer's configuration does not allow
> me to leave the "default gateway:" field blank. Is there an ip
> address I can enter that will be interpreted as "no default gateway?"
> is 0.0.0.0 a valid input? If so, what does it mean? Thanks in
> advance for any insight on this one.


Why not use 127.0.0.1 ?


Stefan
 
Reply With Quote
 
Scott Gifford
Guest
Posts: n/a

 
      09-28-2007, 04:49 AM
Stefan Monnier <(E-Mail Removed)> writes:

[...]
>> I do not want to specify a default gateway, the printer's
>> configuration does not allow me to leave the "default gateway:"
>> field blank. Is there an ip address I can enter that will be
>> interpreted as "no default gateway?"

[...]
> Why not use 127.0.0.1 ?


There's a potential for that to cause a nasty loop, and for each
packet sent from the printer to be processed many times, until it
times out or reaches its maximum hops. Then when the ICMP Time
Exceeded message is sent, that could loop too. And all of this
assumes the printer handles timeout correctly, which it might not;
they could loop forever!

Of course, the printer might be smart enough to detect this and
discard the packets rather than sending them to itself, but probably
if it were well-designed it would have an option to put in no default
route. :-)

----Scott.
 
Reply With Quote
 
Stefan Monnier
Guest
Posts: n/a

 
      09-28-2007, 02:30 PM
>>> I do not want to specify a default gateway, the printer's
>>> configuration does not allow me to leave the "default gateway:"
>>> field blank. Is there an ip address I can enter that will be
>>> interpreted as "no default gateway?"

> [...]
>> Why not use 127.0.0.1 ?


> There's a potential for that to cause a nasty loop, and for each
> packet sent from the printer to be processed many times, until it
> times out or reaches its maximum hops. Then when the ICMP Time
> Exceeded message is sent, that could loop too. And all of this
> assumes the printer handles timeout correctly, which it might not;
> they could loop forever!


> Of course, the printer might be smart enough to detect this and
> discard the packets rather than sending them to itself, but probably
> if it were well-designed it would have an option to put in no default
> route. :-)


It's expensive to write a new TCP/IP stack, so the printer most likely uses
some off-the-shelf TCP/IP stack which should work just fine.

As a matter of fact, even if the stack is really stupid and does end up
sending packets to itself, the "looping" shouldn't cause any problem.


Stefan
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      09-28-2007, 02:58 PM
Hello,

Scott Gifford a écrit :
>
>>Why not use 127.0.0.1 ?

>
> There's a potential for that to cause a nasty loop


Unless the printer TCP/IP stack acts as a router, which a printer has no
reason to do, I do not see how there could be a loop.

, and for each
> packet sent from the printer to be processed many times, until it
> times out or reaches its maximum hops. Then when the ICMP Time
> Exceeded message is sent, that could loop too.


Nope, an ICMP error would be sent to the own printer address (source
address of the original packet that caused the error) and would be
received immediately without any loop.

[Followup-To: comp.protocols.tcp-ip, no Linux in this thread so far]
 
Reply With Quote
 
Scott Gifford
Guest
Posts: n/a

 
      09-28-2007, 04:32 PM
Stefan Monnier <(E-Mail Removed)> writes:

>>>> I do not want to specify a default gateway, the printer's
>>>> configuration does not allow me to leave the "default gateway:"
>>>> field blank. Is there an ip address I can enter that will be
>>>> interpreted as "no default gateway?"

>> [...]
>>> Why not use 127.0.0.1 ?

>
>> There's a potential for that to cause a nasty loop

[...]

> It's expensive to write a new TCP/IP stack, so the printer most likely uses
> some off-the-shelf TCP/IP stack which should work just fine.


That's a good point, although it would be difficult to find out the
implementation details, and very difficult to test its internal
routing behavior .

> As a matter of fact, even if the stack is really stupid and does end up
> sending packets to itself, the "looping" shouldn't cause any problem.


Well, it depends on how efficiently it processes packets, how much
processing power it has, and how frequently it sends packets out.

I would still recommend against this configuration unless it's
documented to work by the manufacturer.

----Scott.
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      09-30-2007, 05:44 PM
Scott Gifford <(E-Mail Removed)> writes:

>Stefan Monnier <(E-Mail Removed)> writes:


>[...]
>>> I do not want to specify a default gateway, the printer's
>>> configuration does not allow me to leave the "default gateway:"
>>> field blank. Is there an ip address I can enter that will be
>>> interpreted as "no default gateway?"


What "configuration"
You could try having the address itself be the gateway.
Is this where you enter the IP of the printer or the IP of the host
connected to the printer?


>[...]
>> Why not use 127.0.0.1 ?


>There's a potential for that to cause a nasty loop, and for each
>packet sent from the printer to be processed many times, until it
>times out or reaches its maximum hops. Then when the ICMP Time
>Exceeded message is sent, that could loop too. And all of this
>assumes the printer handles timeout correctly, which it might not;
>they could loop forever!


>Of course, the printer might be smart enough to detect this and
>discard the packets rather than sending them to itself, but probably
>if it were well-designed it would have an option to put in no default
>route. :-)


>----Scott.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PPTP -client- "use default gateway" slows client to remote upload markm75g Windows Networking 1 12-18-2008 02:11 PM
"ifconfig eth0" command not showing the Gateway address, how can I verify on Linux system? santa19992000@yahoo.com Linux Networking 3 10-16-2005 04:48 PM
unexpected "default gateway changes" SBS network. Keith the confused Windows Networking 5 10-06-2005 04:02 AM
Disable "Use Default Gateway on Remote Network" on the server? Brian Repinski Windows Networking 5 07-03-2005 12:54 AM
2 Different "Default Gateway" with 1 Windows DHCP server =?Utf-8?B?V2F5bmUxMjM=?= Windows Networking 10 02-20-2004 03:02 PM



1 2 3 4 5 6 7 8 9 10 11