Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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?
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
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
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.
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.