Completely Different range of IPs obtained from Dhcp server
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.
Completely Different range of IPs obtained from Dhcp server
Currently I am facing a strange problem.
- If I connect my windows laptop to internet(ethernet), it happily gets an ip, gateway, dns etc through dhcp and works fine. These are the values fetched:
windows configuration
----------------------
IP Address: 77.222.237.154
Subnet Mask: 255.255.254.0
Default Gateway: 77.222.236.1
DNS Servers: 83.143.40.14, 83.143.40.53
- When I try to connect my linux deskop to the internet, it gets a complete different set of ip, gateway etc. and I am also not able to access internet. I am completely lost for any logical reason.
Can somebody please explain?
I am listing some info that I collected from linux machine
The values obtained are:
ifconfig eth0
----------------------------------------
eth0 Link encap:Ethernet HWaddr 00:16:36:57:6C:A2
inet addr:10.10.0.247 Bcast:10.10.1.255 Mask:255.255.254.0
inet6 addr: fe80::216:36ff:fe57:6ca2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:143048 errors:0 dropped:0 overruns:0 frame:0
TX packets:420 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15166544 (14.4 MiB) TX bytes:46409 (45.3 KiB)
Interrupt:17 Base address:0xe000
The set of dns addresses are same (as those obtained for windows).
Even from this 10.* range of address, I am able to ping Gateway obtained for windows configuration (77.222.236.1).
--------------------
[root@farfaraway debug]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.0.0 * 255.255.254.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 wlan0
192.168.0.0 * 255.255.0.0 U 0 0 0 wlan0
default 10.10.0.1 0.0.0.0 UG 0 0 0 eth0
-----------------------------------
[root@farfaraway debug]# traceroute 77.222.236.1
traceroute to 77.222.236.1 (77.222.236.1), 30 hops max, 40 byte packets
1 (77.222.236.1) 0.866 ms 0.936 ms 1.052 ms
-----------------------------------
tethereal -i eth0
...
206.350249 QuantaCo_f9:23:5f -> Broadcast ARP Who has 77.222.237.60? Tell 77.222.236.1
206.416877 QuantaCo_f9:23:5f -> Broadcast ARP Who has 77.222.236.141? Tell 77.222.236.1
206.430226 QuantaCo_f9:23:5f -> Broadcast ARP Who has 77.222.237.67? Tell 77.222.236.1
206.464941 CiscoLin_e8:37:21 -> Broadcast ARP Who has 10.10.128.1? Tell 10.10.128.44
206.513564 QuantaCo_f9:23:5f -> Broadcast ARP Who has 77.222.236.227? Tell 77.222.236.1
206.607127 QuantaCo_f9:23:5f -> Broadcast ARP Who has 77.222.236.179? Tell 77.222.236.1
....
From the tethereal output, it is pretty much visible, that machine can see packets on 10.10.* and 77.222.* n/w.
I really want to get the internet working on my machine, but clueless as of know. Can somebody please provide some pointers?
Thanks.
Last edited by sanjay.krk; 08-01-2008 at 03:22 AM.
Reason: some incorrect informatino (different subnet mask) removed).
Let me know, in case my description is not clear and more information may be required.
BTW, I tried looking for old cached ip information in /etc (just to check if this 10.10.* is picked up from there and not from dhcp), but it's not there.
Still stuck and not able to solve this problem.
But I got some additional information. May be some networking guru can see some pattern .
--- On Windows ----
C:\Documents and Settings\Administrator>arp -a 77.222.236.1
Interface: 77.222.237.154 --- 0x2
Internet Address Physical Address Type
77.222.236.1 00-16-36-f9-23-5f static
---- On Linux ----
[root@farfaraway ~]#arp 10.10.0.1
Address HWtype HWaddress Flags Mask Iface
10.10.0.1 ether 00:16:36:F9:23:5F C eth0
--------
Basically, the 'mac address' of gateway I obtain on both the machines is same (though ips are different).
I have had this problem happen to me.. it is not your linux machine but rather the modem. For some reason my modem will not give me access to the internet if I just switch machines. What you need to do is plug your desktop and power off the modem for a few seconds, turn it back on and it will resend your mac over to the dhcp server.
the best solution is to get a router so you don't have to do this procedure constantly every time that you switch machines.
When you first connected to the Ethernet port with your PC, did you have to use a browser to configure your network ?
I'm thinking their network may be running a Captive Portal, where you have to sign-on via browser, and once signed-on, you get a new/usable IP address.
When you first connected to the Ethernet port with your PC, did you have to use a browser to configure your network ?
I'm thinking their network may be running a Captive Portal, where you have to sign-on via browser, and once signed-on, you get a new/usable IP address.
No, no. It's not like that. There is no sign-up required. You can simply get connected by plugging in the cable and wait for dhcp to setup necessary info.
Its no surprise the MAC addresses of the gateway device are the same - the wire goes to the same place regardless of which machine you plug into the jack.
Some intelligent switches (with some layer 3 capabilities) and routers can be configured to allow only a single MAC address during the span of a DHCP lease or other period. Your PC gets a public (usable) IP address, while you get an RFC 1918 (private) IP address otherwise. It seems like you're getting put on a VLAN under these circumstances.
Get the MAC address of your PC, and spoof your Linux system's Ethernet MAC address to the same as the PC, and try to obtain a lease after that.
This may be a simple programming problem with their switch/router, or could be a security configuration they've employed.
Excellent. I thought it would. I think it is clear what they are doing.
Indeed.
Quote:
Originally Posted by Mr. C.
Place a NATing router between the port and your systems. Then, it presents itself as one MAC address, giving you the ability to use multiple systems.
Ok, thats useful information, may be I will try it some day.
As of know, I just want to work on setting my linux machine as the host for Internet connection sharing (ICS). The only other machine in the n/w (sharing this internet connection) will be running windows.
Last edited by sanjay.krk; 08-02-2008 at 09:31 PM.
Reason: Quotes placed correctly
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.