LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-23-2005, 02:05 AM   #1
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Rep: Reputation: 30
Question Workgroup Suse 9.3 & Win XP :(


Like alway Thank you in advance for any help.

Currently i am trying to set up a linux DHCP, Samba (and I guess included in that is CUPS). I am very quickly getting out of my depth and would like to know if anyone can point me to a very clear and obvious How to! This is what I am trying to achieve:

3/4 Win XP home computers on a workgroup
1Linux 9.3 Suse Server.
I have internet cable coming into the server on a USB cable. From there I hope to have a DHCP server with Firewall, so that everything in the network is 'protected'. From the server will be a regular LAN to a router (wireless). The router will connect the Win XP computers.

Is there anything else in the way of servers that I need to add? Also When I go to set up the DHCP Yast wants a domain name, but it's going to be a workgroup. I know! Still getting use to the linux world, came because of SQL/Perl and dislike of Microsoft.
I have read so much that my head is in a twist . So thank you


Cheers!!!!!!!!!
 
Old 07-24-2005, 11:26 AM   #2
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
it really shouldnt be that complicated. Yast will do just about everything for you. I have an identical setup but i use an ethernet cable instead of usb for my internet connection.

First configure your external network settings (in your case its the usb cable)
setup your dns settings, gateway and domain name. The domain name can be anything. At work i use office, at home i use home. Suse 9.3 will accept just about anythng you want to name your domain. - You can do all of this in Yast under network devices.

Once your server can see the web, go into your network device settings, click on the routing option and check the box that says "Enable IP Forwarding"

Setup your internal network card (the one that connects your server to your lan). Whatever ip you assign your internal card will be the default gateway for your xp machines. I usually use 192.168.0.1 or 192.168.1.1

Now go to Security and Users and click on Firewall. Click on Interfaces and make sure your server has your internal network card set to the internal zone, and usb connection set to the external zone. Go to Masquerading and check "Masquerade Networks". Save your settings.

Now go to one of your xp machines and enter a static ip. Remember the gateway will be the ip address of your internal network card. so use something like:
192.168.0.100
255.255.255.0
192.168.0.1
You should now be able to ping your server at 192.168.0.1

Now go back to your server and in Yast go to Network Services, Select DHCP server, then select your interal network card from the list of ethernet devices. This will be the interface that hands out dynamic ips to your lan.

Once youve done that you can load in the dns and gateway settings that your server will assign. you can also specifcy the lease time for the dynamic ips. and finally you can specify the range of ips that should be given out. Save your settings and you should be all set.

Set your xp machine back to "Obtain an IP Address automatically" release and renew the ip settings using ipconfig/release ipconfig/renew and you should receive a dynamic ip from your dhcp server. After that your xp machine should be able to see the web.

Hope this helps.
 
Old 09-22-2005, 05:51 PM   #3
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Original Poster
Rep: Reputation: 30
Umm tried it and it didn't work. I have read many different books and stuff now and still to no luck.

What i would like is to have the linux computer connect directly to the internet. Then out of the 2nd NIC I would like the linux computer connecting to the Netgear wireless router. The wireless rounter has some software already on it. So you can log into it and play around with the DHCP settings and firewall. But I would like to host and do a few other things icluding haveing more control over the firewall then the router. Is this possible or do I need to get rid of the router and put a wireless card into the Linux computer?

Thank you,

PB
 
Old 11-04-2005, 02:39 PM   #4
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Original Poster
Rep: Reputation: 30
ok So I sorted it. Just for anyone who wants to do the same thing, like msound said it really shouldn't be too hard. Sorry msound you were right, I just needed to take out the router.
So for other newbies like me. Here it is:

1. If you already have a rounter don't bother use the linux box as a print server or something cool like HTTP server.
2. If you haven't got the router, then you will have the internet comming into the NIC (Network Interface Card) and then use the wireless card in the server as the broadcast.
3. Set up the wireless as 'Ad-Hoc' mode! This lets it transmit the internet to the other pc's.
4. Then follow the directions given by msound above, ie setting up iptables, and ip forwarding.
5. I would also buy another regular NIC to make a wired LAN and put a switch at the end of it.

So to all the people that I have bugged by this I am sorry for being so slow. But for other newbies here it is.

PB
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
win xp & suse 9.2 networking mouldy_punk SUSE / openSUSE 6 06-12-2005 07:06 PM
Dual Boot Win xp & Suse 9.2 Pro lankan Linux - Newbie 9 11-26-2004 03:40 PM
Suse 9.1 &Win XP Frank Gervase Linux - Newbie 0 10-18-2004 06:23 AM
Adding suse to mdk & win dual boot! Daunted Linux - Software 1 10-13-2004 08:25 AM
Win Xp & Win 2000 & Mandrake 9.1 (ntoskrnl missing for xp) mcbaboon Linux - Newbie 8 10-14-2003 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration