Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-17-2008, 03:05 PM
Luis P. Mendes
 
Posts: n/a
Access to two different networks

Hi,

I've read a few documents as
http://linux-ip.net/html/index.html and
http://www.tldp.org/HOWTO/Adv-Routin...db.simple.html
and configured the network access of my Slackware
box. Still, there is something that I cannot get to work.

Here's the problem:
Through ppp0 I want to connect to the Internet

eth0 is connected to a local network 10.72.37.0/24.
The gateway to the rest of the intranet is 10.72.37.254

Through eth0 I need to have access to a number of http and other protocol's services in
addresses 10.*.*.*

When I only have eth0 up, I have access to the intranet via a proxy server at 10.191.10.117.
/etc/resolv.conf doesn't need to have any nameserver defined.

I defined routes as:
# ip route show
10.64.64.64 dev ppp0 proto kernel scope link src 87.103.105.28
10.72.37.0/24 dev eth0 proto kernel scope link src 10.72.37.242
127.0.0.0/8 dev lo scope link
default dev ppp0 scope link

I can ping the local gateway:
# ping 10.72.37.254
PING 10.72.37.254 (10.72.37.254) 56(84) bytes of data.
64 bytes from 10.72.37.254: icmp_seq=1 ttl=255 time=2.08 ms

I've succeded in connecting to the internet vi ppp0.

But how can I configure my network in order to have access to the proxy server and all the other
machines in the big intranet when pp0 is working with 'default dev ppp0 scope link'?

I would appreciate any help on this. By the way, where can I find another tutorial or book for
advanced linux networking where I can learn by example?


Luis

Reply With Quote
  #2 (permalink)  
Old 07-17-2008, 04:51 PM
Bill Marcum
 
Posts: n/a
Re: Access to two different networks

On 2008-07-17, Luis P. Mendes <luis_lupeXXXX@gmailXXXX.com> wrote:
>
>
> Hi,
>
> I've read a few documents as
> http://linux-ip.net/html/index.html and
> http://www.tldp.org/HOWTO/Adv-Routin...db.simple.html
> and configured the network access of my Slackware
> box. Still, there is something that I cannot get to work.
>
> Here's the problem:
> Through ppp0 I want to connect to the Internet
>
> eth0 is connected to a local network 10.72.37.0/24.
> The gateway to the rest of the intranet is 10.72.37.254
>
> Through eth0 I need to have access to a number of http and other
> protocol's services in addresses 10.*.*.*
>
> When I only have eth0 up, I have access to the intranet via a proxy
> server at 10.191.10.117. /etc/resolv.conf doesn't need to have any
> nameserver defined.
>
> I defined routes as:
> # ip route show
> 10.64.64.64 dev ppp0 proto kernel scope link src 87.103.105.28
> 10.72.37.0/24 dev eth0 proto kernel scope link src 10.72.37.242

You need to add a route to 10.191.*, whatever the netmask is for that
network, or just to 10.191.10.117.

> 127.0.0.0/8 dev lo scope link
> default dev ppp0 scope link
>
> I can ping the local gateway:
> # ping 10.72.37.254
> PING 10.72.37.254 (10.72.37.254) 56(84) bytes of data.
> 64 bytes from 10.72.37.254: icmp_seq=1 ttl=255 time=2.08 ms
>
> I've succeded in connecting to the internet vi ppp0.
>
> But how can I configure my network in order to have access to the
> proxy server and all the other machines in the big intranet when pp0
> is working with 'default dev ppp0 scope link'?
>

Configure the proxy server address in your browser.


> I would appreciate any help on this. By the way, where can I find another tutorial or book for
> advanced linux networking where I can learn by example?
>
>
> Luis
>

Reply With Quote
  #3 (permalink)  
Old 07-17-2008, 05:59 PM
Clifford Kite
 
Posts: n/a
Re: Access to two different networks

Luis P. Mendes <luis_lupeXXXX@gmailxxxx.com> wrote:
> Hi,


> I've read a few documents as
> http://linux-ip.net/html/index.html and
> http://www.tldp.org/HOWTO/Adv-Routin...db.simple.html
> and configured the network access of my Slackware
> box. Still, there is something that I cannot get to work.


> Here's the problem:
> Through ppp0 I want to connect to the Internet


> eth0 is connected to a local network 10.72.37.0/24.
> The gateway to the rest of the intranet is 10.72.37.254


> Through eth0 I need to have access to a number of http and other
> protocol's services in addresses 10.*.*.*


> When I only have eth0 up, I have access to the intranet via a proxy
> server at 10.191.10.117. /etc/resolv.conf doesn't need to have
> any nameserver defined.


> I defined routes as:
> # ip route show
> 10.64.64.64 dev ppp0 proto kernel scope link src 87.103.105.28
> 10.72.37.0/24 dev eth0 proto kernel scope link src 10.72.37.242
> 127.0.0.0/8 dev lo scope link
> default dev ppp0 scope link


This network default route should work:

ip route add 10.0.0.0/8 via 10.72.37.242 dev eth0

> I can ping the local gateway:
> # ping 10.72.37.254
> PING 10.72.37.254 (10.72.37.254) 56(84) bytes of data.
> 64 bytes from 10.72.37.254: icmp_seq=1 ttl=255 time=2.08 ms


> I've succeded in connecting to the internet vi ppp0.


> But how can I configure my network in order to have access to the
> proxy server and all the other machines in the big intranet when
> pp0 is working with 'default dev ppp0 scope link'?


> I would appreciate any help on this. By the way, where can I find
> another tutorial or book for advanced linux networking where I can
> learn by example?


Can't help here, my own learning is by the Adv-Routing-HOWTO, the man
pages and cut-and-try. :)

> Luis


Try keeping the lines in your posts to < 80 columns.

--
Clifford Kite
/* For every credibility gap, there is a gullibility fill.
-- R. Clopton */
Reply With Quote
  #4 (permalink)  
Old 07-17-2008, 07:37 PM
Clifford Kite
 
Posts: n/a
Re: Access to two different networks

Clifford Kite <kite@not.available.tld> wrote:
> Luis P. Mendes <luis_lupeXXXX@gmailxxxx.com> wrote:


> Here's the problem:
> Through ppp0 I want to connect to the Internet


> eth0 is connected to a local network 10.72.37.0/24.
> The gateway to the rest of the intranet is 10.72.37.254


> Through eth0 I need to have access to a number of http and other
> protocol's services in addresses 10.*.*.*


>> I defined routes as:
>> # ip route show
>> 10.64.64.64 dev ppp0 proto kernel scope link src 87.103.105.28
>> 10.72.37.0/24 dev eth0 proto kernel scope link src 10.72.37.242
>> 127.0.0.0/8 dev lo scope link
>> default dev ppp0 scope link


> This network default route should work:


> ip route add 10.0.0.0/8 via 10.72.37.242 dev eth0


Oops, that should be

ip route add 10.0.0.0/8 via 10.72.37.254 dev eth0

--
Clifford Kite
/* Slogan appropriate for a certain well-known software company:
FAILURE IS NOT AN OPTION - it is built into the operating system
and comes bundled with the software. And it attracts maggots. */
Reply With Quote
  #5 (permalink)  
Old 07-18-2008, 09:24 AM
Luis P. Mendes
 
Posts: n/a
Re: Access to two different networks

Thu, 17 Jul 2008 14:37:51 -0500, Clifford Kite wrote:

> Clifford Kite <kite@not.available.tld> wrote:
>> Luis P. Mendes <luis_lupeXXXX@gmailxxxx.com> wrote:

>
>> Here's the problem:
>> Through ppp0 I want to connect to the Internet

>
>> eth0 is connected to a local network 10.72.37.0/24. The gateway to the
>> rest of the intranet is 10.72.37.254

>
>> Through eth0 I need to have access to a number of http and other
>> protocol's services in addresses 10.*.*.*

>
>>> I defined routes as:
>>> # ip route show
>>> 10.64.64.64 dev ppp0 proto kernel scope link src 87.103.105.28
>>> 10.72.37.0/24 dev eth0 proto kernel scope link src 10.72.37.242
>>> 127.0.0.0/8 dev lo scope link
>>> default dev ppp0 scope link

>
>> This network default route should work:

>
>> ip route add 10.0.0.0/8 via 10.72.37.242 dev eth0

>
> Oops, that should be
>
> ip route add 10.0.0.0/8 via 10.72.37.254 dev eth0


Thank you both for your help. This command was successful.

The problem's solved.

Luis
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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



All times are GMT. The time now is 08:50 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109