Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

nic problem....advice needed pls 1

Status
Not open for further replies.

TheVoiD

Technical User
Nov 20, 2001
3
US
I have a box with 2 NICs.
Lets say:
NIC #1 is 192.168.240.10
NIC #2 is 192.168.240.20
NIC #1 is connected to my ISP so it gets it's IP from a DCHP server. NIC #2 IP was pluged in manualy.

I have a cross over cable going from NIC #2 to another box with IP 192.168.240.30

What I'm trying to do is share my internet connection between to two boxes without a hub.
So I guess what I'm saying is that I want the outside world to see one IP but in reality I have 3.

Sorry if this gets confusing.
IP 192.168.240.30 can ping 192.168.240.20 and vis versa.
192.168.240.30 can't ping 192.168.240.10

I imagine I have to plug in a route.
Which box would I have to add the route too?
I want to route 192.168.240.30 to 192.168.240.10
And how would you type in your command?

Thanx in advance people....

The VoiD
 
You need more than a route.

You're easiest option would to get use an OS that handles all of this for you. Any MS OS after Win 98SE will share internet connections for you with just a couple mouse clicks. Try that...works great for home connections.

I'm not sure how close to the real world your example is, but if it's close then you're making more than a few mistakes and you need more than a route to make it work. It would be difficult to explain it all here.

Your problem, however, is not with your NICs so your title is a little misleading :)
 
Thanks 4 your reply iggy..

Its as real world as it gets....This is my scenario except the ip addresses are different...

Is the way of doing this? PLease tell me where I'm going wrong...

The VoiD
 
This is for a home network?

Is there any reason you are using an IP range on the same subnet for your inside as is on your outside? It is 'much less' secure to do this... Example, this is what I would do...

NIC #1 is to your ISP and gets its IP address from DHCP. From your perspective you want your configuration to be set so that the DHCP assigned address is not important. Go ahead and let your ISP have its way with NIC #1, the configuration of NIC #1 is not important as far as connnecting the rest of your network, as long as you are connected to your ISP properly.

NIC #2 is in the same machine. Give it the IP address of 192.168.1.1

NIC #3 is on the 2nd machine and connected via crossover. Give it the IP address 192.168.1.2

Configure NIC #2 with ICS (internet connection sharing) and ignore any errors it may give you regarding setting your IP address, because you are configuring your network manually (ICS wants to configure your network for you in Windows 2000 and I understand it tries to do it for you on some WinX machines as well).

With ICS configured on NIC #2, do not configure a gateway address. As long as you do not configure a gateway it will use your ISP unless you are calling the 192.168.1.2 machine.

On NIC #3, configure the Gateway to be 192.168.1.1 and use the DNS IP address of your ISP. The easiest way to get the DNS server address from your ISP is to connect with NIC #1, then on Windows 98, ME go to the command line and type winipcfg /all or use ipconfig /all from the command line in Windows 2000 or XP. The IP addresses of your ISP will be displayed and you can configure NIC #3 with these DNS server addresses.

Because you do not configure a gateway on NIC #2, this will allow your 'other' machine to go to NIC #2 when looking for the internet and ICS automatically forwards outbound connections.

For more information on Internet Connection Sharing and configuring it on your machine, go to Start | Help from your start menu, and search for Internet Connection Sharing. ICS is available on Windows 98, ME, Windows 2000, and Windows XP. It is not available on Windows NT Peofessional as ICS, but there are other ways to do this although I am not going to cover it here.

If this helps let me know, if you need more help let me know...

Galrahn
galrahn@galrahn.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top