LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Linux behind W2K with ICS (https://www.linuxquestions.org/questions/linux-networking-3/linux-behind-w2k-with-ics-136058/)

pgb204 01-18-2004 12:58 PM

Linux behind W2K with ICS
 
have 2 boxes. Win2K connected to the cable modem. Linux RH9 connected to win2K. Win2K has ICS enabled on the external NIC. With RH9 I went to 'Network configuration' and tried changing options such as settign IP to 192.168.0.1 adn DNS servers to what ipconfig gave me udner windows etc. But no matter what combinations I try it doesn't work. I'de disabled ZA but still no cigar. I'm jsut looking for someone to give me exact isntructions on what settings to change on my win2K and linux boxes so that i can connect my Linux box to the internet.

tia./

david_ross 01-18-2004 01:08 PM

Welcome to LQ.

Make sure you set the gateway to the IP address of the windows system.

pgb204 01-18-2004 01:14 PM

the internal LAN address=192.168.0.1
OR do i set it to:
the ip address provided by ISP--the external IP?

thanx for replying

david_ross 01-18-2004 01:16 PM

The internal LAN address.

pgb204 01-18-2004 01:22 PM

did that. What values do i give other boxes: DNS, DHCP enables or not?
localhost value etc..
thanx

david_ross 01-18-2004 01:27 PM

DNS=Whatever your ISP uses
DHCP=Depends on your network - I would doubt you are using DHCP since you needed to specify a gateway.

By localhost I assume you mean hostname? Just leave it at localhost.

pgb204 01-18-2004 03:46 PM

my dhcp is provided by my ISP so i have dynamic configuration on my windows box's external NIC.

So. The only thing I've done on my windows box is to enable ICS on my exernal NIC. So my settings on my internal NIC now look like:

IP Address: 192.168.0.1
SubNet Mask: 255.255.255.0
Gateway: [Empty] <- Do I need to enter something here manually.

On my linux box I did the following:

Network Configuration=>Devices Tab=>Select 'Eth0'=>
Statically Setup Ip Address: 192.168.0.2
SubNet Mask : 255.255.255.0
Default Gateway Address: 192.168.0.1

Network Configuration=>DNS Tab=>
HostName: LocalHost.LocalDomain
Primary DNS: 234.234.2.234
Secondary DNS: 234.234.2.235
Tertiary DNS: 234.234.2.236
DNS Search Path: localdomain

DNS servers ip addresses above i got by doing 'ipconfig -all' in windows.

Again, Zone Alarm is not running.
I can ping the windows machine from linux box without problems but still can't use browser.

Thanks a bunch for helping me out.
pgb204

pgb204 01-18-2004 03:50 PM

Also tried pinging the Gateway on my external NIC and the DNS servers given on 'ipconfig-all' without any response.

kalikoder 01-18-2004 05:08 PM

This might sound a bit weird, and probably you already know this. But, how are you connecting your linux box to the w2k box ? Is it via a hub in between ? or are you connecting via a cable to the internal card in w2k box ? If so, what kind of cable is it ? Is it a straight through or a cross over cable ?

Also, ICS provides the ability to provide DHCP with the settings needed. On your linux box, set it to get the ip via DHCP and it should get all the right settings. If you get a failure, that means linux box is not talking to the W2K box. Give that a try, and then try going to the internet from the linux box, and when you do get the ip, ping the gateway that you see when you do ipconfig /all

Kali

pgb204 01-18-2004 05:14 PM

what kind of cable do i need and how do i know which kind i haev. Yes I did connect 2 computers directly no hub or switch.

kalikoder 01-18-2004 05:25 PM

Usually you need whats called a "crossover" cable to connect the two NICs in the two computer, a crossover cable looks exactly the same like a CAT5 straight through cable but its ends are reversed.

When you look at both ends of the crossover cable placing them side by side, the colored wires inside the end should be exactly opposite in order, if they are the same sequence, then you have a straight through cable not a crossover cable.

Here is a url that shows you how the crossover cable look like at its ends

http://www.information-integrity.net/2mr/crossover.htm

david_ross 01-19-2004 12:54 PM

If you can ping between the 2 then it is probably ok.

It may be a DNS issue - do you get a reply from either of:
ping www.linuxquestions.org
ping 64.179.4.146


All times are GMT -5. The time now is 04:24 AM.