[ale] eth0 and ppp0 defaultroute question.
Mazukna, Thomas
Thomas.Mazukna at delta.com
Thu Apr 17 10:03:05 EDT 2003
Hello.
defaultroute is passed to pppd.
case nr 1.
route
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.168.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.168.1 0.0.0.0 UG 0 0 0 eth0
dialout..... success....
route
Destination Gateway Genmask Flags Metric Ref Use Iface
X.X.X.X 0.0.0.0 X.X.X.X UH 0 0 0 ppp0
192.168.168.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.168.1 0.0.0.0 UG 0 0 0 eth0
syslog:
pppd[16338]: not replacing existing default route to eth0 [192.168.168.1]
case nr2.
route
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.168.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
dialout..... success....
route
Destination Gateway Genmask Flags Metric Ref Use Iface
X.X.X.X 0.0.0.0 X.X.X.X UH 0 0 0 ppp0
192.168.168.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 X.X.X.X 0.0.0.0 UG 0 0 0 ppp0
what is the best way to make this work without me dropping and reading defaultroute for ETH0 manually?
thanks,
Tomas
-----Original Message-----
From: Dow Hurst [mailto:dhurst at kennesaw.edu]
To: ale at ale.org
Sent: Thursday, April 17, 2003 9:56 AM
To: ale at ale.org
Subject: Re: [ale] eth0 and ppp0 defaultroute question.
The defaultroute option passed to pppd when it starts up is what is
meant by the previous email. So in your options passed to pppd you must
have that keyword. The actual route may be stored in the peers file and
be accessed when pppd realizes from the parameter you've passed to it
that it needs set the defaultroute. Hope this clarifies,
Dow
Mazukna, Thomas wrote:
>defaultroute is in /etc/ppp/peers/xxx file
>pppd is not replacing it when i have defaultroute to eth0,
>if I manually delete it, everything is fine.
>all I need is the default route to be replaced by one to ppp0.
>How to accomplish this ? drop defaultroute to eth0 in /etc/ppp/ip-up and read in down ?
>
>thanks,
>Tomas
>
>-----Original Message-----
>From: Jerry Z. Yu [mailto:z.yu at voicecom.com]
>Sent: Thursday, April 17, 2003 8:55 AM
>To: ale at ale.org
>Subject: Re: [ale] eth0 and ppp0 defaultroute question.
>
>
> defaultroute (nodefaultroute) in /etc/ppp/OPTIONS
>
> To seperate work-related traffic from your other traffic, add
>special static routes to work-related subnets in /etc/ppp/ip-up.local, or
>delete souch routes in ip-down.local. (as ppp0 goes away, the route
>should go away automatically). Strict firewall rules should
>be in place to police the ppp0 interface.
>
> your company policy may require u to use ppp0 as default route, to
>subject all traffic to corporate firewall/security
>rules/monitoring thru-out the dial-up duration.
>
>On Thu, 17 Apr 2003, Mazukna, Thomas wrote:
>
>#Hi,
>#
>#security folks broke down and gave me dialin access to work for support.
>#Now I have to solve defaultroute issue I have between eth0 and ppp0
>#I have a home network with a NAT gateway through DSL so eth0 has a default route
>#
>#Destination Gateway Genmask Flags Metric Ref Use Iface
>#192.168.168.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
>#0.0.0.0 192.168.168.1 0.0.0.0 UG 0 0 0 eth0
>#
>#when ppp0 comein it says
>#pppd[16338]: not replacing existing default route to eth0 [192.168.168.1]
>#
>#how to make pppd replace the defaultroute when ppp0 comes up and down
>#
>#thanks,
>#Tomas
>#_______________________________________________
>#Ale mailing list
>#Ale at ale.org
>#http://www.ale.org/mailman/listinfo/ale
>#
>
>Jerry Z. Yu +1-404-487-8544 (O)
>systems engineer z.yu at voicecom.com
>is support, voicecom, llc www.voicecom.com
>
>_______________________________________________
>Ale mailing list
>Ale at ale.org
>http://www.ale.org/mailman/listinfo/ale
>_______________________________________________
>Ale mailing list
>Ale at ale.org
>http://www.ale.org/mailman/listinfo/ale
>
>
>
--
__________________________________________________________
Dow Hurst Office: 770-499-3428
Systems Support Specialist Fax: 770-423-6744
1000 Chastain Rd. Bldg. 12
Chemistry Department SC428 Email: dhurst at kennesaw.edu
Kennesaw State University Dow.Hurst at mindspring.com
Kennesaw, GA 30144
*****************************************************************
This message (including any attachments) contains confidential *
information intended for a specific individual and purpose, *
and is protected by law. If you are not the intended recipient,*
you should delete this message and are hereby notified that *
any disclosure, copying, or distribution of this message, or *
the taking of any action based on it, is strictly prohibited. *
*****************************************************************
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list