|
Prev: mac, phy, network controller, Ethernet interface
Next: Problem with computer network dropping connection
From: Luis P. Mendes on 17 Jul 2008 11:05 Hi, I've read a few documents as http://linux-ip.net/html/index.html and http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.rpdb.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
From: Bill Marcum on 17 Jul 2008 12:51 On 2008-07-17, Luis P. Mendes <luis_lupeXXXX(a)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-Routing-HOWTO/lartc.rpdb.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 >
From: Clifford Kite on 17 Jul 2008 13:59 Luis P. Mendes <luis_lupeXXXX(a)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-Routing-HOWTO/lartc.rpdb.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 */
From: Clifford Kite on 17 Jul 2008 15:37 Clifford Kite <kite(a)not.available.tld> wrote: > Luis P. Mendes <luis_lupeXXXX(a)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. */
From: Luis P. Mendes on 18 Jul 2008 05:24
Thu, 17 Jul 2008 14:37:51 -0500, Clifford Kite wrote: > Clifford Kite <kite(a)not.available.tld> wrote: >> Luis P. Mendes <luis_lupeXXXX(a)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 |