LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   cannot reach internet from private LAN (https://www.linuxquestions.org/questions/linux-networking-3/cannot-reach-internet-from-private-lan-374169/)

toodr 10-18-2005 02:27 AM

cannot reach internet from private LAN
 
I am running Slack10.2 and WinXP on the same box and my ISP delivers internet on a local LAN 172.16.1.0. Until recently my box was assigned a private address like 172.16.1.7 and I was logging onto the local LAN via pptp and eth0 and was able to reach internet from both - WinXP and Linux.
But some days ago I asked my ISP to assign to my box a routable address and he did - 213.145.112.41
Since then I cannot reach beyond the gateway of the Lan and cannot ping anything in the internet or even in the local LAN from Linux but I still have internet from WinXP.
route gives me:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.3.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
172.16.1.2 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
10.10.3.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 172.16.1.2 0.0.0.0 UG 0 0 0 ppp0
route print in WinXP gives:
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 0d 9d 43 84 b4 ...... Realtek RTL8139 Family PCI Fast Ethernet NIC - Packet Scheduler Miniport
0x20004 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.10.3.1 10.10.3.7 21
0.0.0.0 0.0.0.0 213.145.112.41 213.145.112.41 1
10.10.0.1 255.255.255.255 10.10.3.1 10.10.3.7 20
10.10.3.0 255.255.255.0 10.10.3.7 10.10.3.7 20
10.10.3.7 255.255.255.255 127.0.0.1 127.0.0.1 20
10.255.255.255 255.255.255.255 10.10.3.7 10.10.3.7 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
213.145.112.41 255.255.255.255 127.0.0.1 127.0.0.1 50
213.145.112.255 255.255.255.255 213.145.112.41 213.145.112.41 50
224.0.0.0 240.0.0.0 10.10.3.7 10.10.3.7 20
224.0.0.0 240.0.0.0 213.145.112.41 213.145.112.41 1
255.255.255.255 255.255.255.255 10.10.3.7 10.10.3.7 1
255.255.255.255 255.255.255.255 213.145.112.41 213.145.112.41 1
Default Gateway: 213.145.112.41
===========================================================================
Persistent Routes:
None

Then ifconfig gives:
eth0 Link encap:Ethernet HWaddr 00:0D:9D:43:84:B4
inet addr:10.10.3.7 Bcast:10.10.3.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:401 errors:0 dropped:0 overruns:0 frame:0
TX packets:142 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:47676 (46.5 Kb) TX bytes:10848 (10.5 Kb)
Interrupt:10 Base address:0x6f00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:672 (672.0 b) TX bytes:672 (672.0 b)
ppp0 Link encap:Point-to-Point Protocol
inet addr:213.145.112.41 P-t-P:172.16.1.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:342 (342.0 b) TX bytes:2644 (2.5 Kb)


And finally the pptp log file gives:
using channel 66
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x47221996> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x47221996> <pcomp> <accomp>]
sent [LCP ConfNak id=0x1 <magic 0xdebfc506>]
rcvd [LCP ConfNak id=0x1 <magic 0xdebfc506>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0xef929fbf> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0xef929fbf> <pcomp> <accomp>]
sent [LCP ConfNak id=0x2 <magic 0xe7eb0a7a>]
rcvd [LCP ConfNak id=0x2 <magic 0xe7eb0a7a>]
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0x9b38d64a> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0x9b38d64a> <pcomp> <accomp>]
sent [LCP ConfNak id=0x3 <magic 0x60d855d4>]
rcvd [LCP ConfNak id=0x3 <magic 0x60d855d4>]
sent [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0x34694ca> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0x34694ca> <pcomp> <accomp>]
sent [LCP ConfNak id=0x4 <magic 0x2da3a2de>]
rcvd [LCP ConfNak id=0x4 <magic 0x2da3a2de>]
sent [LCP ConfReq id=0x5 <asyncmap 0x0> <magic 0xc247e11d> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x5 <asyncmap 0x0> <magic 0xc247e11d> <pcomp> <accomp>]
sent [LCP ConfNak id=0x5 <magic 0x75b952a1>]
rcvd [LCP ConfNak id=0x5 <magic 0x75b952a1>]
sent [LCP ConfReq id=0x6 <asyncmap 0x0> <magic 0xd30655b4> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x6 <asyncmap 0x0> <magic 0xd30655b4> <pcomp> <accomp>]
sent [LCP ConfNak id=0x6 <magic 0x45c72b10>]
rcvd [LCP ConfNak id=0x6 <magic 0x45c72b10>]
sent [LCP ConfReq id=0x7 <asyncmap 0x0> <magic 0xfae8a2bd> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x7 <asyncmap 0x0> <magic 0xfae8a2bd> <pcomp> <accomp>]
sent [LCP ConfNak id=0x7 <magic 0xd27e21f5>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0xa9ea49f0> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0xa9ea49f0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x7 <asyncmap 0x0> <magic 0xfae8a2bd> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x7 <asyncmap 0x0> <magic 0xfae8a2bd> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0xfae8a2bd]
sent [PAP AuthReq id=0x1 user="t_takov" password=<hidden>]
rcvd [LCP EchoRep id=0x0 magic=0xa9ea49f0]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15>]
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 172.16.1.2>]
sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 172.16.1.2>]
rcvd [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15>]
Deflate (15) compression enabled
rcvd [IPCP ConfNak id=0x1 <addr 213.145.112.41> <ms-dns1 213.145.112.2> <ms-dns3 212.116.128.2>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 213.145.112.41> <ms-dns1 213.145.112.2> <ms-dns3 212.116.128.2>]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 213.145.112.41> <ms-dns1 213.145.112.2> <ms-dns3 212.116.128.2>]
local IP address 213.145.112.41
remote IP address 172.16.1.2
primary DNS address 213.145.112.2
secondary DNS address 212.116.128.2
Modem hangup
Connect time 26.6 minutes.
Sent 20260 bytes, received 5674 bytes.
Connection terminated.
Waiting for 1 child processes...
script /usr/sbin/pptp 10.10.3.1 --nolaunchpppd nodeflate, pid 4734
Terminating on signal 15
sending SIGTERM to process 4734


The termination of the script is done normally by the user.
I am missing something but what is it and how can I fix it?
Is there something to do with the addresses been from different domains?
Why WinXP is reaching internet and Linux does not?

Barserk 10-18-2005 08:48 AM

Hey toodr

Can you please do ipconfig /all from cmd on the xp box when it is connected and post it

Paul

toodr 10-18-2005 03:53 PM

Windows IP Configuration



Host Name . . . . . . . . . . . . : bt

Primary Dns Suffix . . . . . . . :

Node Type . . . . . . . . . . . . : Unknown

IP Routing Enabled. . . . . . . . : No

WINS Proxy Enabled. . . . . . . . : No

DNS Suffix Search List. . . . . . : recbg.net



Ethernet adapter Local Area Connection:



Connection-specific DNS Suffix . : recbg.net

Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Ethernet NIC

Physical Address. . . . . . . . . : 00-0D-9D-43-84-B4

Dhcp Enabled. . . . . . . . . . . : Yes

Autoconfiguration Enabled . . . . : Yes

IP Address. . . . . . . . . . . . : 10.10.3.7

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . : 10.10.3.1

DHCP Server . . . . . . . . . . . : 10.10.3.1

DNS Servers . . . . . . . . . . . : 10.10.0.1

Lease Obtained. . . . . . . . . . : 18 Октомври 2005 г. 23:44:08

Lease Expires . . . . . . . . . . : 19 Октомври 2005 г. 11:44:08



PPP adapter recbg:



Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface

Physical Address. . . . . . . . . : 00-53-45-00-00-00

Dhcp Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 213.145.112.41

Subnet Mask . . . . . . . . . . . : 255.255.255.255

Default Gateway . . . . . . . . . : 213.145.112.41

DNS Servers . . . . . . . . . . . : 213.145.112.2

212.116.128.2

This is it.As far as I can make it out the IP is harwired and Ishould not use DHCP?

Barserk 10-18-2005 06:12 PM

Can you please dial up on your linux box and do an ifconfig

toodr 10-19-2005 06:38 AM

This is what ifconfig gives with the connection pptp established.




eth0 Link encap:Ethernet HWaddr 00:0D:9D:43:84:B4
inet addr:10.10.3.7 Bcast:10.10.3.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:401 errors:0 dropped:0 overruns:0 frame:0
TX packets:142 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:47676 (46.5 Kb) TX bytes:10848 (10.5 Kb)
Interrupt:10 Base address:0x6f00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:672 (672.0 b) TX bytes:672 (672.0 b)
ppp0 Link encap:Point-to-Point Protocol
inet addr:213.145.112.41 P-t-P:172.16.1.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:342 (342.0 b) TX bytes:2644 (2.5 Kb)

Barserk 10-19-2005 06:20 PM

You have several problems here. You are obviously trying to use static ips which is fine.
1 Your dns address is wrong on your xp box for you lan. It is in the wrong subnet. eg current dns address is
10.10.0.1 and should be 10.10.3.1

Barserk 10-19-2005 06:35 PM

You have several problems here. You are obviously trying to use static ips which is fine.
1 Your dns address is wrong on your xp box for you lan. It is in the wrong subnet. eg current dns address is
10.10.0.1 and should be 10.10.3.1

2 The static ip for your linux box for etho0 is set to the same as your xp box (they must be dirrerent). eg xp is currently set to 10.10.3.7 and linux is also 10.10.3.7. Change linux to 10.10.3.8.

3 Add a DNS entry to your linux box 10.10.3.1 (10.10.3.1 is obviously your router and doing dns lookups)

4 When you dial your isp from your linux box it is much easier to allow your isp to assign ip addresses. (dynamic) rather than trying to set them yourself (static).

5 Do you have a seperate router or is one of your pc,s routing

Try this and c how u go !

toodr 10-19-2005 08:05 PM

Thank you for posting back.


Here is what happens really:

On count 1. I agree that WinXp is using the wrong dns address and that it is in the wrong subnet but nethertheless it compansates for this somehow because it is working (there is connection to the internet when in WinXP).

On count 2. I think that it may not be exactly a DNS problem because I dont get response from beyond the gateway , not even if pinging in quad decimal number.


On count 3.I did as you advised but to no avail, still no response when working in Linux

On count 4.The addresses are assigned DHCP from the peer but maybe I did not put it clear enough - I am working from a single host with two systems on it - WinXP and Linux.When in WinXP it is OK but when in Linux there is no internet. My connection to the internet is through eth0 and a local LAN with private addresses 172.16.1.0 . The problem is that my ISP's peer assigns to my computer a real internet address 213.145.112.41 but assigns itself a private address 172.16.1.2 and this messes things up for Linux, while WinXP manages somehow inthis situation.


Will appreciate any ideas...

Barserk 10-19-2005 09:48 PM

Sorry, didnt realise you were dual booting. Please explain how your lan is set up. Is your host connected to a seperate router. I have to assume this because you keep talking about a local lan. If it is a local lan, you are telling me that you have a network set up in your house/office with more than 1 computer and/or a router. Please explain fully.

toodr 10-20-2005 07:32 PM

I now realise I didn't explain it right.

The setup is simple . I have one box at home and a LAN cable comes to it from my ISP.
The ISP operates in town and supplies internet over LAN to a lot of other people as well.
I am connected to one of his servers on this LAN.

BOOTING LINUX
When I start my box , it is only the eth0 interface from my side that is initialized and I recieve an address that is 10.10.3.7 and network mask 255.255.255.0 and the adress of the ISP's server side is 10.10.3.1
There also is a default route 10.10.3.1

At this point I still do not have access to the internet . Then I have to start a pptp connection as a result of which a ppp0 comes up with an IP address for my side of the line 213.145.112.41 and !!! the poin-to-point address of the peer 172.16.1.2 !!! which is what baffles me! and the default gateway changes to 0.0.0.0 ( also destination is 0.0.0.0 and genmask 0.0.0.0) .

From this moment on I don't know what to do ! I cannot ping anything except the peer i.e. 10.10.3.1 on eth0 and 172.16.1.2 on ppp0 . the DNS server is set by the peer to 213.145.112.2 but I cannot ping it as well.


NOW BOOTING WINXP
I recieve my address 10.10.3.7 and the address of the ISP's server 10.10.3.1 and the default gateway to 10.10.3.1

Then start VPN and the routing becomes as given in the fist posting.

And the access to the Internet is OK!

So what might be it?

toodr 10-20-2005 07:35 PM

Forgot about the ISP's server.

It is running Linux as well 2.4.x

Pptp is used probably because the majority of the users on this LAN are operation Windows.

Barserk 10-23-2005 07:40 PM

By way of interest I would like to see the physical connection from your isp. It is obviously different technology to ours.

Forget about your pptp for the time being and get your eth0 working 1st.
If you are setting your ip statically you must have the following set or it wont work.
1 ip address (213.145.112.41)
2 Subnet mask
3 Default Gateway
4

Barserk 10-23-2005 07:44 PM

By way of interest I would like to see the physical connection from your isp. It is obviously different technology to ours.

Forget about your pptp for the time being and get your eth0 working 1st.
If you are setting your ip statically you must have the following set or it wont work.(regardless of xp is doing)
1 ip address (213.145.112.41)
2 Subnet mask
3 Default Gateway
4 Dns server
Get these details from your isp. Please do this and try and connect then give me ifconfig.

If you choose dynamic settings, your isp will provide all these for you and you should be able to
connect immediately.


All times are GMT -5. The time now is 08:06 AM.