Networking Forums

Networking Forums > Computer Networking > Linux Networking > Access to two different networks

Reply
Thread Tools Display Modes

Access to two different networks

 
 
Luis P. Mendes
Guest
Posts: n/a

 
      07-17-2008, 03:05 PM
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
 
 
 
 
Bill Marcum
Guest
Posts: n/a

 
      07-17-2008, 04:51 PM
On 2008-07-17, Luis P. Mendes <(E-Mail Removed)> 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
 
Clifford Kite
Guest
Posts: n/a

 
      07-17-2008, 05:59 PM
Luis P. Mendes <(E-Mail Removed)> 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
 
Clifford Kite
Guest
Posts: n/a

 
      07-17-2008, 07:37 PM
Clifford Kite <(E-Mail Removed)> wrote:
> Luis P. Mendes <(E-Mail Removed)> 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
 
Luis P. Mendes
Guest
Posts: n/a

 
      07-18-2008, 09:24 AM
Thu, 17 Jul 2008 14:37:51 -0500, Clifford Kite wrote:

> Clifford Kite <(E-Mail Removed)> wrote:
>> Luis P. Mendes <(E-Mail Removed)> 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

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
Blocking access to wireless networks Michael Sovitzky Wireless Networks 1 01-11-2006 03:18 PM
ability to access different networks at same time Brad Morris Wireless Networks 3 12-18-2005 09:34 PM
No access from remote networks callmebill@gmail.com Linux Networking 2 01-29-2005 08:06 AM
Unable to access Wireless Networks after SP2 Adam Wireless Networks 1 11-04-2004 02:49 AM
Access to dual networks Marjan Omerzelj Windows Networking 6 10-29-2003 12:25 AM



1 2 3 4 5 6 7 8 9 10 11