Solved

Sharing Internet connection with networked Windows box

Posted on 2004-09-22
11
286 Views
Last Modified: 2013-11-17
Can someone give me step by step directions to connect share the internet connection on my Mac (G4/450 w/cablemodem) with a Windows box via 100baseT?

Thanks,

O
0
Comment
Question by:olliefelde
  • 4
  • 3
  • 2
  • +2
11 Comments
 

Expert Comment

by:dobbyduck
ID: 12129445
For OS X
Open System Prefs - Sharing - Internet . Click on the on for the ethernet port and start.

On the windows machine say that the ip of your mac is you router.

OS 9 - Dunno never used it.

Dobby.
0
 
LVL 8

Expert Comment

by:Andrew Duffy
ID: 12132798
It's not quite as simple of that unfortunately.

Many cable connections connect via Ethernet - does yours? If so you'll need a spare Ethernet port on the Mac and a crossover cable which you'll use to connect the machines. I'm also assuming you're running OS X so excuse me if this isn't the case.

Set yourself a static IP on the Macintosh under System Prefs > Network and choose the relevant Ethernet connection. It's probably best to use 192.168.1.1 (with a subnet of 255.255.255.0). Do the same on the PC (Control Panel > Network Connections) but use the IP address 192.168.1.2. Then set the gateway address to that of the Mac. Enter the DNS server addresses on both machines. (you should have these with your cablemodem account details, or on your ISP's website)

Then you can enable Internet Sharing on the Mac (like dobbyduck said) and you should then be able to access the Internet from the PC. I've not personally done it before but in theory this is what you would need to do. Let me know if it works.
0
 
LVL 3

Author Comment

by:olliefelde
ID: 12139800
First, I have both machines connected via 100baseT through a hub. The cable modem is also connected this way. Second, I can't set a static IP. The ISP uses DHCP so the IP is assigned by the server.

Any more ideas?

0
 
LVL 5

Expert Comment

by:idarmadi
ID: 12140345
Olliefelde,

If Mac, PC and Cable Modem are all connected to hub, then the Cable Modem is the gateway (if it is a Cable Modem Router).

First, determine the local IP address of your Cable Modem.  For example, 192.168.0.1.  
Internet IP Address for the Cable Modem will be assigned by ISP.

On your Mac :
IP address : 192.168.0.2
Netmask : 255.255.255.0
Gateway : 192.168.0.1 <local ip address of the cable modem>

On your PC :
IP address : 192.168.0.3
Netmask : 255.255.255.0
Gateway : 192.168.0.1 <local ip address of the cable modem>

So, you don't share internet connection thru Mac, but thru Cable Modem (if it equipped with Router function).

Does your Cable Modem support Routing?  (let me know the brand and the model, I can check it out for you).

Good luck.
0
 
LVL 5

Accepted Solution

by:
idarmadi earned 125 total points
ID: 12140391
addition :

If you have a Cable Modem Router, then most likely it will have a simple DHCP server.  You can turn this on, so both your Mac and PC can have a DHCP assigned addresses instead of setting a local static IP address (such as 192.168.02).

0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 8

Expert Comment

by:Andrew Duffy
ID: 12141152
Yes - perhaps look at the manual of your modem first as this will have most of the information you need.
0
 
LVL 8

Expert Comment

by:Andrew Duffy
ID: 12198644
The fact the modem is assigned a dynamic IP shouldn't be a problem but it will need to be capable of NAT i.e. the router must be able to create its own 'private' network behind the connection to the Internet.

Any of this would be done from the configration program or web interface for the router itself. How do you normally configure the router?
0
 
LVL 3

Author Comment

by:olliefelde
ID: 12398926
I don't configure the "router". The ISP uses DHCP. According to my mac's network setup, my mac is the holder of the IP address.
0
 
LVL 8

Expert Comment

by:Andrew Duffy
ID: 12399773
Okay I see what's going on now.

The fact the Mac is allocated the IP means you have to share it from the Mac itself (although I'm still confused that the modem is plugged in via Ethernet).

You will need to install an additional Ethernet port in your machine. These are fairly easy to obtain - most common chipsets are supported by Mac OS X as far as I know but of course check the spec of the card in question.

Once you've installed the second card, you can follow the instructions in my first response and it should work.
0
 
LVL 5

Expert Comment

by:idarmadi
ID: 12408085
Olliefelde,

Perhaps it might help us, can you tell us what's the brand and the type of your Cable Modem?

I think I got the picture now.

It was : (internet) <---cable---> (cable modem) <---ethernet---> (G4/400 Mac).

You want to share it with Windows, so you changed the configuration to :

(internet) <--cable--> (cable modem) <--ethernet--> (switch/hub) <--ethernet--> (G4/400 Mac)
                                                                                  ^
                                                                                   |------ethernet---> (Windows)

Right?

You can do as suggested by in-effect.  It will become (starting with cable modem)

(cable modem) <--ethernet--> (g4/400) <--ethernet--> (switch/hub, or windows PC).

In this configuration, windows will share the internet connection on G4. (in other words, G4 as the gateway).

Good luck.
0
 
LVL 4

Expert Comment

by:andyoww
ID: 12670386
You need to do a few things:

1 IP aliasing see here for instructions:
http://developer.apple.com/documentation/Darwin/Conceptual/howto/network_config/network_config.html

2 add a route to let your mac route packets
you can use route add for temporary (look at the man page for details)
I can't remeber the file for mac os to edit, but it's /etc/rc.d/rc.local in linux.  Maybe you can find it somewhere.  Just add the route to the end of the file.

3 set the Ip address on the pc & mac (during step one) with the IP addy of the mac as the gateway for the pc.  make sure to use the same mask.

good luck!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Information security is a multi-billion dollar industry. Just as lucrative is the black market industry which trades stolen identities, credit card numbers and software exploits all over the world. Nothing is hack-proof. The best one can do is make …
iCloud Drive was introduced after iOS 8 was launched last year. This drive is Apple’s online storage device that lets users sync their files and access them from all their Apple devices.   There is a lot of data that is not automatically backed up…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now