Re: modem and default gw

2007-05-25 Thread remigio
 Are you saying that when not using your modem, you have a route to the
 internet via the NIC?  Why use the modem then.

 If not, why set a default gateway on the NIC in the first place?

The answer for your questions is:
because I'm using a notebook and, when I am in my office I can use the
lan for the Internet, but when I am at home I must connect to the
itnernet via modem.
Thanks

Remigio


-
visit www.sacraspina.it


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: modem and default gw

2007-05-25 Thread remigio

 For security reasons, pppd does not change the default gateway if you
 already have a default gateway (at least if you use the noauth option,
 as far as I know). You need to explicitely allow this using the

 replacedefaultroute

 option in /etc/ppp/peers/kppp or /etc/ppp/options.


Thank you very much for you suggestion.
I'll try it.
Bye
Remigio


-
visit www.sacraspina.it


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: modem and default gw

2007-05-25 Thread remigio
On 25 Mag, 02:00, Marko Randjelovic [EMAIL PROTECTED] wrote:
 remigio wrote:
  Hi,
  on my pc I have installed a network pci card and an internal
  softmodem. Both them work fine but I have a problem with the default
  gateway.
  In /etc/network/interfaces is defined a gateway that is used by the
  nic, and the command ip route shows this defgw.
  When I use Kppp and the modem to connect to the Internet, I note that
  the defgw remain the same (the one defined for the nic) although in
  kppp I set the option Assign the Default route  to this gateway, and
  I can't go on the Internet.
  Once Kppp has connected successufully to the provider, ip addr shows
  that ppp0 has reseived the inet and the ptp address from the remote
  server but the defgw is not the ptp addr! It still remain the same!
  How can kppp assign the defgw route  after connected?
  Thanks.

  Remigio

 -
visit www.sacraspina.it

 Since you use kppp to connect to internet, do you need that NIC gateway
 at all?

No, I don't.
Thanks

Remigio


-
visit www.sacraspina.it


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: modem and default gw

2007-05-25 Thread remigio
On 25 Mag, 02:00, Marko Randjelovic [EMAIL PROTECTED] wrote:
 remigio wrote:
  Hi,
  on my pc I have installed a network pci card and an internal
  softmodem. Both them work fine but I have a problem with the default
  gateway.
  In /etc/network/interfaces is defined a gateway that is used by the
  nic, and the command ip route shows this defgw.
  When I use Kppp and the modem to connect to the Internet, I note that
  the defgw remain the same (the one defined for the nic) although in
  kppp I set the option Assign the Default route  to this gateway, and
  I can't go on the Internet.
  Once Kppp has connected successufully to the provider, ip addr shows
  that ppp0 has reseived the inet and the ptp address from the remote
  server but the defgw is not the ptp addr! It still remain the same!
  How can kppp assign the defgw route  after connected?
  Thanks.

  Remigio

 -
visit www.sacraspina.it

 Since you use kppp to connect to internet, do you need that NIC gateway
 at all?

No, I don't.
Thanks

Remigio


-
visit www.sacraspina.it


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: modem and default gw

2007-05-25 Thread remigio
You need to explicitely allow this using the

 replacedefaultroute

 option in /etc/ppp/peers/kppp or /etc/ppp/options.


Tried in /etc/ppp/peers/kppp-options. It works fine!
Thank you very much!

Remigio


-
visit www.sacraspina.it


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



modem and default gw

2007-05-24 Thread remigio
Hi,
on my pc I have installed a network pci card and an internal
softmodem. Both them work fine but I have a problem with the default
gateway.
In /etc/network/interfaces is defined a gateway that is used by the
nic, and the command ip route shows this defgw.
When I use Kppp and the modem to connect to the Internet, I note that
the defgw remain the same (the one defined for the nic) although in
kppp I set the option Assign the Default route  to this gateway, and
I can't go on the Internet.
Once Kppp has connected successufully to the provider, ip addr shows
that ppp0 has reseived the inet and the ptp address from the remote
server but the defgw is not the ptp addr! It still remain the same!
How can kppp assign the defgw route  after connected?
Thanks.

Remigio



-
visit www.sacraspina.it


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: modem and default gw

2007-05-24 Thread Douglas Allan Tutty
On Thu, May 24, 2007 at 12:42:10PM -0700, remigio wrote:
 on my pc I have installed a network pci card and an internal
 softmodem. Both them work fine but I have a problem with the default
 gateway.
 In /etc/network/interfaces is defined a gateway that is used by the
 nic, and the command ip route shows this defgw.
 When I use Kppp and the modem to connect to the Internet, I note that
 the defgw remain the same (the one defined for the nic) although in
 kppp I set the option Assign the Default route  to this gateway, and
 I can't go on the Internet.
 Once Kppp has connected successufully to the provider, ip addr shows
 that ppp0 has reseived the inet and the ptp address from the remote
 server but the defgw is not the ptp addr! It still remain the same!
 How can kppp assign the defgw route  after connected?

Are you saying that when not using your modem, you have a route to the
internet via the NIC?  Why use the modem then.  

If not, why set a default gateway on the NIC in the first place?

Perhaps you need to show us using ascii art your network layout and the
routes you want with and without the modem connected.

Doug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: modem and default gw

2007-05-24 Thread Andreas Janssen
remigio ([EMAIL PROTECTED]) wrote:

 on my pc I have installed a network pci card and an internal
 softmodem. Both them work fine but I have a problem with the default
 gateway.
 In /etc/network/interfaces is defined a gateway that is used by the
 nic, and the command ip route shows this defgw.
 When I use Kppp and the modem to connect to the Internet, I note that
 the defgw remain the same (the one defined for the nic) although in
 kppp I set the option Assign the Default route  to this gateway, and
 I can't go on the Internet.

For security reasons, pppd does not change the default gateway if you
already have a default gateway (at least if you use the noauth option,
as far as I know). You need to explicitely allow this using the

replacedefaultroute

option in /etc/ppp/peers/kppp or /etc/ppp/options.

regards
Andreas Janssen

-- 
Andreas Janssen [EMAIL PROTECTED]
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: modem and default gw

2007-05-24 Thread Marko Randjelovic
remigio wrote:
 Hi,
 on my pc I have installed a network pci card and an internal
 softmodem. Both them work fine but I have a problem with the default
 gateway.
 In /etc/network/interfaces is defined a gateway that is used by the
 nic, and the command ip route shows this defgw.
 When I use Kppp and the modem to connect to the Internet, I note that
 the defgw remain the same (the one defined for the nic) although in
 kppp I set the option Assign the Default route  to this gateway, and
 I can't go on the Internet.
 Once Kppp has connected successufully to the provider, ip addr shows
 that ppp0 has reseived the inet and the ptp address from the remote
 server but the defgw is not the ptp addr! It still remain the same!
 How can kppp assign the defgw route  after connected?
 Thanks.
 
 Remigio
 
 
 
 -
 visit www.sacraspina.it
 
 

Since you use kppp to connect to internet, do you need that NIC gateway
at all?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]