On Mon, 26 Jul 1999, Giulio Orsero wrote:

> In the future: we'll use a router to connect to the internet. As the
> router lacks the granular control mechanism of diald, I was wondering
> if there a way to keep all PCs go to the linux server as their
> gateway, and have diald to "trigger" the router instead of the modem.

> Basically diald should simply add a default route to the router and
> delete the default route when the connection is down.

> I can't make diald behave this way.

> If I set 
> dev eth0
> it screws up the eth0 routing.

Try using the ifsetup script (supported by diald >= 0.99). If you define a
ifsetup script in diald.conf, diald will use that instead of all ifconfig
and routing calls.

The ifsetup script takes three arguments:

1: "start" or "stop"
2: "proxy" or "link"
3: the device name of the proxy or link

The ifsetup script is called when:
1) diald starts (ifsetup start proxy <proxy devicename>)
2) the link is brought up (ifsetup start link <link devicename>)
3) the link is brought down (ifsetup stop link <link devicename>)
4) diald quits (ifsetup stop proxy <proxy devicename>)

Mark

[EMAIL PROTECTED]
- Linux 2.2.10 on an i686/160MB


-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to