Networking Forums

Networking Forums > Computer Networking > Linux Networking > simultaneous dial-up and ethernet lan??

Reply
Thread Tools Display Modes

simultaneous dial-up and ethernet lan??

 
 
Scott
Guest
Posts: n/a

 
      11-29-2003, 03:08 AM
Need some pointers at configuring a linux laptop to be able to access
a local network while making a ppp connection to the WAN.

using:
mdk9.2
kppp

THX
 
Reply With Quote
 
 
 
 
jack
Guest
Posts: n/a

 
      11-29-2003, 06:42 AM
Scott wrote:
> Need some pointers at configuring a linux laptop to be able to access
> a local network while making a ppp connection to the WAN.


"Routing" is the key for that. - See the Networking-HowTo and others.
If that's not enough, see "Linux Advanced Routing", on the web at
"lartc.org" or "Adv-Routing-HowTo".


Cheers, Jack.

--
----------------------------------------------------------------------
My personal reading of the string "MicroSoft" expands to "NanoWeak"...

 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      11-29-2003, 11:53 AM
Scott <(E-Mail Removed)> wrote:
> Need some pointers at configuring a linux laptop to be able to access
> a local network while making a ppp connection to the WAN.


> using:
> mdk9.2
> kppp


If there is a problem then you need to post more information. At a
minimum that would be a narrative description of the problem.

If this is a request for general instructions then consult the PPP
HOWTO to setup dial out PPP or, better,

http://www.theory.physics.ubc.ca/ppp-linux.html

and make sure there is no default route to the LAN.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
 
Reply With Quote
 
Scott
Guest
Posts: n/a

 
      11-30-2003, 02:45 AM
Clifford Kite <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Scott <(E-Mail Removed)> wrote:
> > Need some pointers at configuring a linux laptop to be able to access
> > a local network while making a ppp connection to the WAN.

>
> > using:
> > mdk9.2
> > kppp

>
> If there is a problem then you need to post more information. At a
> minimum that would be a narrative description of the problem.
>
> If this is a request for general instructions then consult the PPP
> HOWTO to setup dial out PPP or, better,
>
> http://www.theory.physics.ubc.ca/ppp-linux.html
>
> and make sure there is no default route to the LAN.


Sorry, I was tired last night and really thought I put in enough info,
to only read it today and go??

My only unknowns here are how to I guess "route" the LAN. I use them
presently one at a time. KPPP has been great and does some things I
have never been able to accomplish using anything else. So..

I will check these links for hints. I am thinking that I need to route
the lan, or "eth0" for my 192.168.*.* somehow and to keep it that way
while when kppp is brought up to become the route for anything else.
THX
 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      11-30-2003, 03:06 AM
Scott <(E-Mail Removed)> wrote:

> I will check these links for hints. I am thinking that I need to route
> the lan, or "eth0" for my 192.168.*.* somehow and to keep it that way
> while when kppp is brought up to become the route for anything else.


Something's really wrong if you don't have a network route such as

# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0

on each LAN host.

That's all you need for the LAN hosts to communicate with one another.

If there's a default route through the LAN interface on the PPP host
then remove it. Kppp is a frontend to pppd and the standard pppd
won't set a default route if one already exists. How you remove it
permanently depends on the distribution.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* The wealth of a nation is created by the productive labor of its
* citizens. */
 
Reply With Quote
 
Leon.
Guest
Posts: n/a

 
      11-30-2003, 10:59 AM

"Scott" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Need some pointers at configuring a linux laptop to be able to access
> a local network while making a ppp connection to the WAN.



The local ethernet would be accessable by default, if the firewall isnt
customised to stop it.
(eg turn off the firewall first and test, to see ? )

IF the local lan is at work and you have a group of ethernets to access,
then you need to add routes to these ethernets (specified by their network
adress and netmask) to go via the gateway on the ethernet you plug into


if network 192.168.1.0 is connected to gw1 and 192.168.2.0 is connected to a
different gateway, then


route add 192.168.1.0/255.255.255.0 gw 192.168.10.1
route add 192.168.2.0/255.255.255.0 gw 192.168.10.2


often you just need the full list of networks and netmasks, and just one
gateway that can reach them all.

The PPP then has the default route, and can access the entire internet...




>
> using:
> mdk9.2
> kppp
>
> THX



 
Reply With Quote
 
Scott
Guest
Posts: n/a

 
      11-30-2003, 02:38 PM
Clifford Kite <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Scott <(E-Mail Removed)> wrote:
>
> > I will check these links for hints. I am thinking that I need to route
> > the lan, or "eth0" for my 192.168.*.* somehow and to keep it that way
> > while when kppp is brought up to become the route for anything else.

>
> Something's really wrong if you don't have a network route such as
>
> # route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
>
> on each LAN host.
>
> That's all you need for the LAN hosts to communicate with one another.
>
> If there's a default route through the LAN interface on the PPP host
> then remove it. Kppp is a frontend to pppd and the standard pppd
> won't set a default route if one already exists. How you remove it
> permanently depends on the distribution.


Ok,
I have them both working, but, and perhaps this might have been a good
thing to say before,, I have a pcmcia ethernet. kppp will dial out and
do it's thing but not be able to start the pppd with the ethernet
pugged in. I have tried selecting and unselecting the "Default Route"
check box within kppp to no avail. Now, if I unplug the pcmcia
ethernet and then start kppp it will log on and start pppd. To get
both working simultaneously as they are at this moment, I must start
kppp with the ethernet unplugged and then after the ppp0 is up,
hotplug the pcmcia ethernet.

Here's route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
216.231.162.14 0.0.0.0 255.255.255.255 UH 0 0
0 ppp0
192.168.1.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 216.231.162.14 0.0.0.0 UG 0 0
0 ppp0

THX
 
Reply With Quote
 
P.T. Breuer
Guest
Posts: n/a

 
      11-30-2003, 02:50 PM
Scott <(E-Mail Removed)> wrote:
> thing to say before,, I have a pcmcia ethernet. kppp will dial out and
> do it's thing but not be able to start the pppd with the ethernet


Of course it can! You don't mean to say that at all! You mean to say
that it won't set a default route, since one is already set.

Well, unset it first! Or don't set it! What's the point of having
a serial connection up when you already have an ethernet?

> pugged in. I have tried selecting and unselecting the "Default Route"
> check box within kppp to no avail.


Who cares! Just unset your default route to eth0, since you don't want
it!

> Now, if I unplug the pcmcia
> ethernet and then start kppp it will log on and start pppd. To get


It'll do so anyway.

> both working simultaneously as they are at this moment, I must start
> kppp with the ethernet unplugged and then after the ppp0 is up,
> hotplug the pcmcia ethernet.


Please don't dissemble. You know perfectly well that this is a tissue
of imagined falsehoods. Both eth0 and ppp start fine - all that is
happening is that pppd won't set a default route when there is already
one set (to WHERE!!!!??? What's the point in setting a default route to
nowhere? don't set it if you don't want it!). So don't set it! Unset
it, and then start your serial connection.

> Here's route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 216.231.162.14 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0


There you are - your lie is exposed. You can see both eth0 and ppp0.


> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 216.231.162.14 0.0.0.0 UG 0 0 0 ppp0


And here you can see a correct default route through ppp0. So nothing to worry
about!

Peter
 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      11-30-2003, 05:24 PM
Scott <(E-Mail Removed)> wrote:

> I have them both working, but, and perhaps this might have been a good
> thing to say before,, I have a pcmcia ethernet. kppp will dial out and
> do it's thing but not be able to start the pppd with the ethernet
> pugged in. I have tried selecting and unselecting the "Default Route"
> check box within kppp to no avail. Now, if I unplug the pcmcia


Yeah, that's not what I meant by default route through the LAN interface.
Selecting that almost certainly tells kppp to use the pppd defaultroute
option and you'll need that - unless you choose the alternative suggested
below.

> ethernet and then start kppp it will log on and start pppd. To get
> both working simultaneously as they are at this moment, I must start
> kppp with the ethernet unplugged and then after the ppp0 is up,
> hotplug the pcmcia ethernet.


> Here's route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref
> Use Iface
> 216.231.162.14 0.0.0.0 255.255.255.255 UH 0 0
> 0 ppp0
> 192.168.1.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 216.231.162.14 0.0.0.0 UG 0 0
> 0 ppp0


The last line shows a default route through the PPP interface (ppp0).

There's no default route through the LAN interface there, but it still
sounds like it's an existing default route problem. Pppd won't add
a default route through the PPP interface if a default route already
exists to anywhere, even with the defaultroute option. What does the
routing look like when the LAN is active but before the PPP link is
ever brought up? In particular, is there a default route through eth0?

It may be that there is a LAN default route that is not set when there
is an existing default route at the time the LAN is activated - in the
manner of pppd. That could most likely be changed by a distribution
network configuration script.

Alternately, you could just add the line

/sbin/route add default $IFNAME

to /etc/ppp/ip-up, which should override any existing LAN default route
for the duration of the PPP link. See man pppd for an explanation of
IFNAME.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
 
Reply With Quote
 
Scott
Guest
Posts: n/a

 
      11-30-2003, 10:37 PM
(E-Mail Removed) (P.T. Breuer) wrote in message news:<(E-Mail Removed)>...
> Scott <(E-Mail Removed)> wrote:
> I have a pcmcia ethernet. kppp will dial out and
> > do it's thing but not be able to start the pppd with the ethernet

>
> Of course it can! You don't mean to say that at all! You mean to say
> that it won't set a default route, since one is already set.


>
> Please don't dissemble. You know perfectly well that this is a tissue
> of imagined falsehoods.
> There you are - your lie is exposed. You can see both eth0 and ppp0.




http://www.oneway.com/scooter/liar.jpg

Perhaps I should just had said,, I have no idea what I am doing and
should just pack up like all the others living well and outside in the
world and leave this to you. Unfortunately in many other ways it is
not possible for me, yet could use the extra time towards something
more my inclanation.

Sorry for the inconvenience,
Scott
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
simultaneous AP & AD HOC & ICS ??? mike Wireless Networks 3 10-14-2006 11:03 PM
Simultaneous Ethernet & WiFi connections - Help.....! Steve Walker Home Networking 5 12-19-2003 08:20 AM
access internet via dial up modem, other computer via ethernet card Patrick Brouckxon Windows Networking 0 09-01-2003 12:42 PM
Dial Up vs Ethernet beale Linux Networking 2 08-22-2003 11:20 PM
Dial-up networking problem after ethernet card install D Crews Windows Networking 4 07-08-2003 04:26 AM



1 2 3 4 5 6 7 8 9 10 11