Networking Forums

Networking Forums > Computer Networking > Linux Networking > default gateway address

Reply
Thread Tools Display Modes

default gateway address

 
 
thudd
Guest
Posts: n/a

 
      12-27-2003, 02:16 PM
if you have two linux machines hooked with a cross over cable between the
network cards or use a hub , and use manual ip address settings, do you need
a default gateway address? The machines will be their own local network.


 
Reply With Quote
 
 
 
 
Fibre Optic
Guest
Posts: n/a

 
      12-27-2003, 02:20 PM
thudd wrote:

> if you have two linux machines hooked with a cross over cable between the
> network cards or use a hub , and use manual ip address settings, do you
> need a default gateway address? The machines will be their own local
> network.


You need GW address only if you want to communicatw with different network
in example Internet. If you have no connection to Internet or WAN networks
ayou do not need GW address.

Thanks,
Fibre Optic
 
Reply With Quote
 
Torsten Kaiser
Guest
Posts: n/a

 
      12-27-2003, 08:35 PM
Hello thudd,

thudd wrote:

> if you have two linux machines hooked with a cross over cable between the
> network cards or use a hub , and use manual ip address settings, do you
> need a default gateway address? The machines will be their own local
> network.


The default gateway specifies where to route traffic to unknown addresses,
not being specified explicitly in your routing table.

Given you have already defined your network, e.g.

172.16.0.1 ========x======== 172.16.0.2

If you already have defined your routing for 172.16.0.0/24 on both machines,
you don't need a default route as long as you don't want to connect to
machines with IP's other than 172.16.0.*, e.g. the internet.

You need to define routing, because even a standalone machine, without a
physical NIC installed, defines its own virtual local network 127.0.0.0/24
with a virtual NIC called "lo" as 127.0.0.1 to work properly as a
networking OS, even when being isolated.

HTH
Torsten


--
XP doesn't HAVE Security holes.
XP IS a security hole.
 
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
default gateway changes to earlier IP address drew Windows Networking 1 03-04-2008 02:07 PM
Cannot change default gateway address Paul_HIT Windows Networking 3 04-18-2007 04:20 PM
How to get default Gateway address, subnet address, DNS names using C/C++ Matrixinline Linux Networking 2 01-11-2007 04:32 AM
Can't set default gateway address on MN-520 Sid9 Broadband Hardware 9 02-03-2004 04:09 PM
wrong default gateway address Ron Windows Networking 0 10-01-2003 02:58 AM



1 2 3 4 5 6 7 8 9 10 11