[Techtalk] network query

Megan Payne chastity at suitware.com
Fri Jan 16 23:03:42 EST 2004


Patricia Fraser wrote:

> The server box has 2 ethernet i/faces: 
> 
> * eth0 which connects happily to ADSL via the DLink, & picks up the ip 
> address via dhcp
> * eth1 which has a static address, 192.168.177.1
> 
> The workstation has eth0, with static address 192.168.177.2
> 
> I can (with firewall turned off, more on that later) ping the server 
> from the workstation and vice versa. 
> 
> I need help with the routing; I'm going silly.
> 
> /sbin/route -n for the workstation currently gives:
> Kernel IP routing table
> Destination     Gateway   Genmask         Flags Metric Ref    Use Iface
> 192.168.177.0   0.0.0.0   255.255.255.0   U     0      0        0 eth0
> 127.0.0.0       0.0.0.0   255.0.0.0       U     0      0        0 lo

I don't see the default gateway here. The syntax is:

route add default gw 192.168.177.1

This adds a line that is the same as this one from your server route output:

> 0.0.0.0		203.217.45.0	0.0.0.0		UG    0	     0      0 eth0
> 
> Can somebody please point me at what's wrong? It would be great to get 
> some understanding of what's going on; so pointers to good explanatory 
> docs would be welcome. (I don't mean the howtos; I think I need to 
> understand more before they make sense!)

Hope this works,

Megan





More information about the Techtalk mailing list