my ISP has blocked grant access only to windows boxes????? could this be?????
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.
my ISP has blocked grant access only to windows boxes????? could this be?????
Hello everybody,
I'm building a router for my home lan, so I got a computer with two nics (rtl800 and realtek 8029), one 6 gig hdd, and dual boot win98 and redhat 9. First I set it up with win98 and everything worked great, then I tried to set it up with redhat but I had no luck. I got everything up and running, the nics are displayed with the ifconfig allright, but when I try ifup eth0 (dhcp), I receive this error:
Determining IP information for eth0...SIOCADDRT: Network is unreachable
done.
/sbin/ifup: line 268: [: : integer expression expected
My internal network works just fine, but I can't get outside. The extrange thing is that "ifup eth0" it assigns the correct ip to the nic (I have static ip). So I'm wondering if my ISP managed to let connect only windoze boxes...
The extrange thing is that "ifup eth0" it assigns the correct ip to the nic (I have static ip). So I'm wondering if my ISP managed to let connect only windoze boxes...
Well, since network traffic consists of TCP/IP it is HIGHLY unlikely that your ISP allows connections only to widows boxes. More than likely something isn't quite kosher with your RH setup.
What I don't get is why you are using DHCP when you have a static IP. However, I also don't know the setup of your lan, so a couple of answers would be helpful
1) Which card (eth0 or eth1) is the one connecting to the ISP?
2) Is it your ISP that assigned you a static IP or do they use DHSP?
I'm not sure what Snocked is on about. Yes, some ISPs block ports to prevent you from running servers, but that shouldn't get in the way of you surfing the net.
Thanks everybody for your quick response, I'll try to answer you all of your questions.
I have an old pc which I want to turn in to a router, I had it up and running with freesco linux configured as a router but since a while a go stopped working (with the same error message redhat gives me "SIOCADDRT... can't add default route"), so I decided to format my hdd and install win98 and redhat 9. First I got it up and running (the router) with win98. I got two windows xp boxes that connects to this (win98) router to be able to get internet, and both connected to the internet very well. I also could ping from the win98 router to 200.23.249.1 which is my ISP DNS. Then I tried to set it up with redhat 9, I install it as a server with no graphical interface. Everything works great, I mean, it recongizes both nics:
realtek 8029as = eth0 and is connected to my ISP
rtl800 = eth1 and is connected to my internal lan
my ISP has a mac restriction, so I had to spoof my mac with:
ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
then I tried to connect to my ISP:
ifup eth0
then I got the error:
Determining IP information for eth0...SIOCADDRT: Network is unreachable
done.
/sbin/ifup: line 268: [: : integer expression expected
but still updates the ip with the valid one, by the way, it always assigns me the same ip 192.168.51.40 but it has to be assign via dhcp or it won't work, I don't know why, even when I try to manually assign it with win98, and yes I did copy all the parameters exactly as when dhcp assigns the ip.
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:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:700 (700.0 b) TX bytes:700 (700.0 b)
The above is what gives me after I spoofed my mac and after I do an ifup eth0.
so as you can see it still updates my ip with the valid one but when I try to ping 200.23.249.1 I have a no go. So maybe they managed to let only win boxes to connect to their network, or maybe the dhcp client is different from the one that comes with windoze, what give me the creeps is the line that claims that line 268 in dhcp has a problem and was expecting an integer...
Thanks in advance. Any help would be appreciated...
P.S. any of you know how to make the mac spoofing permanent, I mean, to be able to change it at the activation of the interface at boot up?
not sure if this is relevant, but i ran a Realtek 8039, and got the same nonexistant ip prob when i wrote in my own stuff during the install network config gui. tried it with the Sundance card, and got the same thing! this is all on a compaq presario s5000 with 40+15 dual hd's and 1 gig of ram. i had absolutely NO hassle at all with the old 5304 (249 megahertz chip----whoopee), slow as snails tho.
no probs on SuSE, so i just left the defaults in place on my next try, the install scripts "discovered" the dhcp bleep, and everything worked fine. just that my system thought my host.domain was <ip68_123_4_567.hr.hr.cox.net> and wouldn't let me use <owensby.us> in the /etc/hosts at all. it's a RH bug, i guess.
just a little clumsy, eh?
Originally posted by acarri
but still updates the ip with the valid one, by the way, it always assigns me the same ip 192.168.51.40 but it has to be assign via dhcp or it won't work, I don't know why, even when I try to manually assign it with win98, and yes I did copy all the parameters exactly as when dhcp assigns the ip.
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:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:700 (700.0 b) TX bytes:700 (700.0 b)
The reason why you have to use DHCP is probably due to the MAC restriction. My guess is that your ISP wants to boost the security a bit by only allowing certain NIC's to connect. That is NIC's with a certain MAC address.
The reason why it doesn't work if you configure your NIC manually might be because your ISP has configured their DHCP server and the Router/firewall at their end block all ports by default and then open them up as the DHCP server lends out IP addresses.
My guess is that your routing table doesn't get right and thus you can't connect to the internet. It might work if you could get your NIC to spoof the MAC right at startup instead.
This is only alot of guesses from what you have been describing as your problem. As you say it can be the DHCP client that can't handle this particular DCHP server. You might have to try another SHCP client to see if it works. Also check with your ISP to get information how it works.
ok. try this: original OS-install dhcp setup with default entries etc in place: uncheck the default hostname autoconfig'ed by dhcp, write in your geek.frop.org or whatever, and leave the ip number addressing config part in default/dhcp-detect. this will work if you're on a "dynamic" address-issuing isp (something like what you would have to do in a dup modem config) such as Cox cable dsl uses.
luck -O
Distribution: Just about anything... so long as it is Debain based.
Posts: 297
Rep:
Couple things don't add up...
First off... the IP address you are getting is in the PRIVATE IP address range. It is also subnetted down so your network has only 2 address in it. What this means is that you NIC gets one of the 2 available address on the network and your cable modem has the other address.
Continuing on with the subnetting issue, the address you are being handed is not a valid address for the subnet.
Decimal ___ Binary
252 = 11111100
040 = 00101000
This tells us that 40 is the network address. 41 and 42 are valid addresses, and 43 is the network's broadcast address. The error that the you get with ifup could be related to this addressing issue. Are you absolutely certain that your Win box is getting this same address including the subnet mask? Also, what is your default gateway in windows? Use the ipconfig /all or winipcfg command to get this information. If you can't get te above info in windows by using those commands boot to Win and at a command prompt type: Ping 192.168.51.43. Once you get your 4 responses, type: arp -a and see what IP addresses are listed in your ARP table. This will tell you the address of your cable router's private interface. Let's assume it's .42 for argument's sake.
Next, boot back into Linux. Configure your NIC for the other ip address (41) and then manually add the default gateway:
route add default gw 192.168.51.42
That might get you out to the internet on your Linux box.
MAC filtering is probably not the problem. Remember, your Windows boot that works just fine is using the NIC's hard coded MAC address. You shouldn't need to spoof the address.
I would guess that the Windows box is just too stupid to know it's not getting a valid address...
if you are dual booting a win98 that connects to your ISP and linux that you are trying to get to connect then you shouldn't need to spoof anything, you should be able to just boot linux and have it use DHCP like win98 does and have it work. Why again are you spoofing the MAC if the same NIC works in 98? The MAC is part of the network card, and doesn't change from booting windows or linux.
If you can post the results of running "ipconfig /all" in a dos box under windows. try "ipconfig /all > c:\ipconfig.txt" then open c:\ipconfig.txt in a text editor like notepad.
First I guess that some things must be clear first:
Starting from the problem you describe, I mean the ifup crashes, lets remember that the ifup has two stages: the dhcp stage where you ask for a lease to your isp, and then the real ifup when routing, dns and all that stuff starts. If you get a valid dhcp lease then the first stage is compleeted.The proof is that your nic gets updated with the new IP. Now for the seccond stage, well could be that it fails to add the default gateway or the dns enties(resolv.conf). Check if one of them dont update and you get closer to the solution.
Do you get the same problem if you reverse the nics? (eth0 LAN, eth1 ISP)
If you enter manually your configurtation, be sure that you enter the defult gateway(route add bla bla bla), valid dns entries(resolv.conf). IF even with that you dont get it working its because the dhcp server from your isp forces you to get a lease, otherwise it simply doesnt route traffic to you. This is the most common security practice.
IF everything works fine in 98, well its for sure that it is about configuration in your linux. Are you spoofing your mac in 98 too? If not then you dont have to spoof anything in linux. If yes, then you need to spoof it in linux too. Lot of poeple think that the mac is permanent in the nic. Yes thats true BUT doesnt mean you cant use another. When you request dhcp lease to your isp, your dhcp daemon sends the mac from your nic OR the mac you provide(ifconfig eth? hw ether bla bla bla). Of course you loose it when your box resets. To make it permanent, simply modify your "network" start script and add the line just before the interface is brought up.
Now lets think that the lease from your ISP lasts long enough: get the lease and then change your nic to manual with the data you know(ip, mask), add your default gateway and try to ping any IP number in the internet, like your dns server. This will tell you if everything works in the rounting part of your linux box. And last, check if resolv.conf gets updated with your dns servers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.