[Techtalk] network query

Patricia Fraser trish at thefrasers.org
Sat Jan 17 17:56:23 EST 2004


On Sun, 11 Jan 2004 11:14 pm, John Clarke wrote:
> On Sun, Jan 11, 2004 at 09:54:30 +1100, Patricia Fraser wrote:
> > I am in the process of connecting to ADSL via a D-Link 300+ modem,
> > which has a built-in pppoe client. The advice from the ISP is to
> > use DHCP to get the IP address. This works fine on the machine I've
> > got connected now.
>
> This is exactly the setup I have here.  It works fine, and depending
> upon your ISP, you could have the same IP address for months at a
> time.

Okay, I've got the interfaces set up, and now I'm puzzling over routing. 
I've looked through various howtos, and tried various things, and I'm 
more puzzled than when I started.

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

/sbin/route -n for the server 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 eth1
203.217.45.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
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!)

After this, I'll be asking about iptables rules!

Cheers,


-- 
Trish Fraser, Sunbury, Australia
GNU/Linux user #283226  counter.li.org
andromeda up 4 days
kernel 2.4.21-0.27mdk



More information about the Techtalk mailing list