LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Linux Networking Problem (https://www.linuxquestions.org/questions/linux-networking-3/linux-networking-problem-70334/)

raingutter 07-05-2003 03:53 PM

Linux Networking Problem
 
The scenerio:

Installed Linux 9.0 shrike as a server. Have 3 winxp boxes dependant on the linux box for internet connection. I have a cable modem.

Now I can ping both ways from any machine. I can share files both ways on any machine.

What my problem is........
I cannot get any of my xp boxes to access the internet. Linux can access it. I have tried the ip_forwarding. Installed Firestarter firewall utility, but with no luck.

Any help on this matter will be greatly appreciated.

acid_kewpie 07-05-2003 04:03 PM

i'd guess you've not set the gateway on the xp machines, if you've set up firestarter for a "complex" network i think it calls it...

raingutter 07-05-2003 04:32 PM

The gateway is setup as 192.168.0.1 but once I add it to the linux box under network setup area, the linux box no longer accesses the internet. The xp boxes are setup as

192.168.0.2 IP
255.255.255.0 Subnet
192.168.0.1 Gateway

192.168.0.1 Dns

chort 07-05-2003 05:05 PM

If the cable modem is connected to your Linux box, and in some way the WinXP boxes are connect to the Linux box, then you don't want to tell the Linux box that it's default gateway is 192.168.0.1, you want to set it to the cable modem. The cable modem will probably have a public IP from DHCP, so let the Linux box grab that external IP automatically. My question is, do you have two NICs in the Linux box, or just one?

Could you do an ifconfig -a on the Linux box (while it's connected to the Internet and working) and post the output? The Linux config will dictate what the XP config should be.

raingutter 07-05-2003 05:14 PM

No, no. :) I have 2 nics in the linux box and the one for the cable in automatically picking up the dhcp ip's. Its the internal nic, when I add 192.168.0.1 to the gateway settings that the linux box looses internet connection. Once I remove it again. Internet connection comes back. My main problem is to get the xp boxes to access the internet.

bax 07-05-2003 06:22 PM

"when I add 192.168.0.1 to the gateway settings that the linux box looses internet connection. "

You're adding the gateway setting to the wrong NIC. How are you setting up NAT? Is this a dedicated gateway/firewall? If so, OpenBSD maybe easier from my experience.

raingutter 07-05-2003 08:06 PM

Bax

Not sure what you meant by adding the gateway setting to the wrong nic. Everything is dhcp on the external. I add the 192.168.0.1 to the gateway of the internal nic and lose internet connect on the linux box.

I would post the ifconfig -a findings but the family is still using the internet and I can't shut down the 2003 server to boot linux.

raingutter 07-05-2003 08:58 PM

This is what I am getting with ifconfig -a

[root@server root]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:05:76:C3:10:43
inet addr:x.x.x.199 Bcast:x.x.x.255 Mask:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9012 errors:0 dropped:0 overruns:0 frame:0
TX packets:6226 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1485410 (1.4 Mb) TX bytes:680571 (664.6 Kb)
Interrupt:11 Base address:0xc000

eth1 Link encap:Ethernet HWaddr 00:04:76:C9:FC:DC
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:501 errors:0 dropped:0 overruns:0 frame:0
TX packets:217 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:47028 (45.9 Kb) TX bytes:16154 (15.7 Kb)
Interrupt:5 Base address:0xc400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:20049 errors:0 dropped:0 overruns:0 frame:0
TX packets:20049 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1124290 (1.0 Mb) TX bytes:1124290 (1.0 Mb)


Any ideas????

angelrod 07-05-2003 09:21 PM

all you have to do for your second NIC is:

ifconfig eth1 192.168.0.100 netmask 255.255.255.0 up

Just change it with the correct values.... you don't have to set a gateway for this NIC. This is just to allow other computers with the same IP range "see" your linux box.

raingutter 07-05-2003 09:40 PM

angelrod

I tried that and still can not connect to the internet with the xp boxes.

I tried pinging by ip from the linux to xp and xp to linux with no problems. I then tried to ping from the linux box to the xp box by hostnames with no problems. When I tried to ping the hostname of the linux box from the xp box, it couldn't find the hostname. Correct me if I am wrong, but this tells me the dns is not working correctly on one the boxes.

Also, how does one check the workgroup name on the linux box?

angelrod 07-05-2003 09:47 PM

I have to go now, but I'll be back on 2 hours....
Let me think in another answer for the gateway.....

P.S. Quick reply for the workgroup:
At smb.conf you'll find a line "workgroup = WORKGROUP". Change WORKGROUP to whatever is your workgroup.

And for resolving your linux box's host be sure that smbd and nmbd daemons are running.....

I'll be back ;)

raingutter 07-05-2003 10:19 PM

Ok, I have the workgroup names the same and the smbd and nmbd daemons are running, so I now can ping ip and hostname. Still I have failed to get the xp box to connect to the internet.

raingutter 07-06-2003 12:01 PM

Ok, time to update.

running linux 9.0 shrike that has two nics (cable modem and local network) I am able to ping/traceroute/network from the linux box to all xp boxes (3 of them). I am also able to do the same from the xp boxes to the linux box. I have firestarter installed.

My problem continues to be the xp boxes are unable to access the internet. Everything else works but that.

Any ideas? Thanks in advance.

bax 07-06-2003 02:29 PM

Are you running NAT? Try searching the forums a bit.

raingutter 07-06-2003 03:05 PM

Yes I am running nat and have searched the forums for the last 4 days hoping to find a solution.


All times are GMT -5. The time now is 06:00 PM.