Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have 2 notebooks:one has Linux Mandrake 9.0 the other WinXP home. I'm connected to LAN (cable)with a dynamic IP. Problem no1:
the Win machine refuses to automatically retrieve its IP address.
Problem no2:
I posses a hub, how do I set up a network sharing the internet connection between my two machines? Does one of them HAVE TO be configured as a DHCP server?

1. is Windows networking set to obtain an IP address automatically?
2. one of your laptops will require two ethernet connections and will need ICS or a proxy server to share the connection (or buy a router).
3. DHCP server? Nope - static addresses work as well (or better) than DHCP.

Yes,the Windows networking is set to obtain the IP address automatically. But my netw.card only succeeds to send packages not to recieve them. It has something to do with my dynamic IP and Win settings...I have checked how it worked on a static connection with manually set IP/DNS addresses. It worked fine.
My Internet connection demands a log-in. On my Linux machine I run a script that connects me automatically and reestablishes connection when the IP changes. I'm not so well familiar with Win Networking,let's say i just plugg my cable into a Win machine, do I have to log-in manually every time the IP changes (It happens rather often: up to 10-20 times a day)?

Okay, your Internet connection login only allows one computer (the computer that logs in and takes the single available IP address) on the Internet. The obvious way around this is to use a router or share the connection from one computer.
DHCP has nothing to do with this. When one machine logs on, the other machine cannot get an IP address, because your ISP account is allowed only one IP address. So share the connection through a device that can also login.
I know, PPPoE sucks.

it was a rather general answer... i'd like some details...i think i'll try proxy but the other question which has not been addressed is why my Win machine can not obtain an IP even when it's not connected to the hub but directly to the cable modem..? I've tried playing with TCP/IP settings and firewall but all my efforts where fruitless... what can be wrong? (the netw. card is functional, tha's for sure)

"in machine can not obtain an IP even when it's not connected to the hub but directly to the cable modem..?"
The hub makes no difference. It propogates the electronic signal - no more. If your ISP uses DHCP, set your computer to obtain an IP address automatically. Linux distributions also come with a DHCP client.
You need a device (a router or a computer [same thing really]) to accept the IP address your ISP sends you. This device will then share the connection. On Windows, you use Internet Connection Sharing (ICS). On Linux, you need to setup your machine for routing (usually not enabled by default in the kernel). Or you can just buy a router.
http://www.practicallynetworked.com/sharing/uselinux.htm

maamika,
To address the question you want answered, why won't the win machine get an IP address when it is directly connected to the modem, try this.
Have the linux machine release the IP address. Then connect the Windows machine to the modem and have it renew the address (do it manually using IPCONFIG /renew).
This might work because some ISPs log the MAC address of the computer applying for an IP address from the DHCP server. If it still remembers assigning an address to your linux box, it may not realize that address is not in use and will refuse a connection from your Windows box. By first releasing the lease on the linux box, you avoid this problem.
Bottom line -- get a router or signup for 2 dynamic IP addresses from your IP.

![]() |
disconected cable
|
ISDN modem and LAN NIC
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |