|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
Networking redhat and XP
Hi (again)
![]() I just bought another computer, a windows xp machine which i want to share the internet connection from my redhat7.3 server, what settings should i go for (and where do i set the settings) on both machines? (IP's and subnets) i've always been agains windows and never wanted to try XP so im completly new to it, thx alot, James |
|
|
|
|
|
#2 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
Can someone step in here, im thinking that im gonna need to set the windowsXP computer like;
static ip: 192.168.0.2 Subnet Mask: 255.255.255.0 and the redhat computer as: static ip: 192.168.0.1 Subnet mask: 255.255.255.0 but i dont know if that is right, and i dont know how to enter those settings on redhat oh and i guess that i specify the windowsXP computer to automaticaly assign dns settings? Some help is really needed here |
|
|
|
|
|
#3 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
okay i think i've done it all okay now,
i can ping my networked computer (the XP box) how do i browse files from it now? |
|
|
|
|
|
#4 |
|
Member (4 bit)
|
use samba, might want to check their site on configuration and read the newsgroups...
|
|
|
|
|
|
#5 |
|
Member (11 bit)
Join Date: Feb 2001
Location: Blue Springs, MO
Posts: 1,766
|
Samba probably was installed when you installed Redhat 7.3. See if it is installed already. It is then just a matter of configuration. Look at any Redhat documentation you have. Let us know if you have any trouble. If it is already installed, you need to open your favorite web browser and type http://localhost:901/. You can also type http://192.168.0.1:901/ for the same result since you have assigned 192.168.0.1 to your linux computer's NIC. You should get SWAT. It will ask you for your name and password. Enter your root name and password. You will then be able to configure Samba. Don't do anything until you have read about Samba and it's uses. Like any network server, Samba comes with a bunch of options and variables. If you explore them in detail your liable to break the server. Keep a backup copy of /etc/smb.conf before you start messing around.
CH Last edited by Computer Hobbyist; 08-18-2002 at 08:03 PM. |
|
|
|
|
|
#6 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
Okay i've hit a lil snag, like i mentioned pinging works fine from one computer to the other,
and on the xp box (192.168.0.2) i use internet explorer and goto http://192.168.0.1 (the linux box) and the site opens, so the network link is opened but when i try to ping a site from the xp box it doesnt work, all i get is 'Destination Host Unreachable' I dont know what this is, if a setting on the linux box has to beticked to allow the xpbox to make web requests ? im really stuck here guys |
|
|
|
|
|
#7 |
|
Member (11 bit)
Join Date: Feb 2001
Location: Blue Springs, MO
Posts: 1,766
|
I don't know what your problem is, but I note from your posts that you have specified that your xp computer will automatically assign DNS settings. I don't think your xp computer is a DNS server. Based on what you have said, I don't think it is directly connected to the internet. I suggest you read this link. Especially the overview. It will tell you what a DNS server does.
How are you connected to the internet? Are you using a router? CH Last edited by Computer Hobbyist; 08-19-2002 at 09:59 AM. |
|
|
|
|
|
#8 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
i already thought about it being a dns problem, bu i dont think that is the case,
if i try to ping yahoo's ip then it should work, no matter if the dns is set up or not its like the xp box wont see anyting outside the network, i have set the dns correctly, using my ISP DNS servers (what i use for the linux box) but it still doesnt help any |
|
|
|
|
|
#9 |
|
Member (11 bit)
Join Date: Feb 2001
Location: Blue Springs, MO
Posts: 1,766
|
What you have to do is tell your XP computer to go to the Linux computer or the router (or what ever connects your private network to the internet) to find a gateway to the internet. Please tell us the TCP/IP properties on the XP machine.
CH |
|
|
|
|
|
#10 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
Okay here are ,y tcp/ip settings on the xp machine;
IP Address: 192.168.0.2 Subnet Mask: 255.255.255.0 Default Gateway: Primary DNS: 213.120.62.98 Secondary DNS: 192.168.0.1 I have tried setting the default gateway to 192.168.0.1 but i still dont get any web pages loading |
|
|
|
|
|
#11 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
dunno if this changes anything, but i just tried ifconfig ppp0 and it gave me this
inet addr: 217.36.16... P-tP: 212.32.60... Mask: 255.255.255.255 and the other usual stuff, the thinkg i thought might be usefull info was the mask address, would the Xp box's mask adddress being 255.255.255.0 and the linux box's being 255.255.255.255 cause a problem? |
|
|
|
|
|
#12 |
|
Member (11 bit)
Join Date: Feb 2001
Location: Blue Springs, MO
Posts: 1,766
|
Am I right, you are connecting to the internet from your Linux box and not a router?
I think you will find a handy utility in Redhat that guides you through the setup process to allow your Linux box to share its internet connection with your xp machine. Don't worry about the subnetmask business. The 255.255.255.255 submask net is part of the address of your modem (cable or dialup). The addresses you have entered for your Linux NIC and your XP NIC (which is its own little private network) look correct. I suggest you run the Redhat utility to allow your Linux machine to share its internet connection and see if that helps. CH |
|
|
|
|
|
#13 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
You are right, the linux box connects through a usb adsl modem, not a router
Do you know the name of that utility? - or does anyone know the name of it, sounds like it could be the answer to my problems |
|
|
|
|
|
#14 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
Done it
![]() I had to enable packet forwarding on the linux box, so i ; echo "1" > /proc/sys/net/ipv4/ip_forward and then had to allow the connections from the xp box; /sbin/ipchains -A forward -s 192.168.0.2/24 -j MASQ And all works fine, got a nice connection on my xp box ![]() Thx for everyones help |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|