LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-01-2001, 10:08 AM   #1
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Rep: Reputation: 30
Question Setup help needed


Hi guys

I was wondering if there is anybody out there that can help me in what i,m sure is a relatively simple task.

Ok here goes.

I just purchased two network cards and have installed one each in two pc,s with a crossover cable connection (the linux box has succesfully setup the card as eth0 and i,ve installed the drivers for windows).

One pc is running Windows 98 the other is running Mandrake 8.0.

I want to setup the Mandrake box with Apache (I can install apache allready I put this in so you would know what I would like) so that it can serve webpages to the Windows box for testing purposes. I also want to connect to the internet from both machines via one dial up modem.

How would I go about doing this, as I am completely new to networking and am a little confused about the IP adresses and such. Does it matter what IP addresses I specify etc?.

Thx guys in advance

RecoilUK
 
Old 09-01-2001, 01:04 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
two pooters, one modem. easy. ipchains is what you want set up on the modem machine. it copies certain tcp packets from the modem interface to the eth interface and vice versa. it's meanat to eb configured all cleverly, but i just have...

/sbin/ipchains -A forward -i ppp0 -j MASQ
echo 1 > /proc/sys/net/ipv4/ip_forward

which blindly copies everythign in sight, arse to security (i think). The second line enables the ip forwarding to occur in the kernel. I've put these two lines in the /etc/rc.local file, and that's all you need. then you should be able to ping t'net from the other machine.

alsop, you'll probably want masqserver. http://w3.cpwright.com/mserver/
which allows remote dialling and such like from windows or linux to a linux box. (yeah, i'd recommend puttnig the modem in linux.)

As far as IP addresses go, i just use 10.0.0.x it's nice and simple and fast to type!

email me if you want any more help (assuming this is at all useful!), you helped me with my geforce...
 
Old 09-01-2001, 03:09 PM   #3
Larry S
LQ Newbie
 
Registered: Sep 2001
Location: Texas
Distribution: Mandrake 8 at this time, who knows next week :-)
Posts: 5

Rep: Reputation: 0
One note on IP addys.

To avoid any sort of conflict with internet addresses...use class c addresses.
192.xxx.xxx.xxx is always good for private networks.

If you need furthur clarification, just email me.

Good Luck
Lar
 
Old 09-01-2001, 04:03 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
oh can we start a war? 192 is obscure and annoying i think, 10 is also reservered so why not just use that? isn't it offically meant to be 192.168.xxx.xxx anyway? :-)
 
Old 09-01-2001, 04:23 PM   #5
Larry S
LQ Newbie
 
Registered: Sep 2001
Location: Texas
Distribution: Mandrake 8 at this time, who knows next week :-)
Posts: 5

Rep: Reputation: 0
Nope, not tryin to start anything. 192 etc may be annoying to you , but it IS reserved for private nets and as such can be used safely in any circumstances.
10.x.x.x. is a class A addy and is an assigned address range.(AFAIK)

As for my sig, whatever.
its how I feel, having to deal with the crap day in and day out.
If you think its lame and tokenistic, you are entitled to your opinion. but you know what they say about opinions.
 
Old 09-01-2001, 04:28 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
your quote? all mighty personal... calm down bud.

i've had this sig for ages for what it's worth and this was your erm... 3rd post ever?
 
Old 09-01-2001, 04:37 PM   #7
Larry S
LQ Newbie
 
Registered: Sep 2001
Location: Texas
Distribution: Mandrake 8 at this time, who knows next week :-)
Posts: 5

Rep: Reputation: 0
I'm not upset, so dont take it that way
I was just mentioning something I thought to be worth considering. Unless something has changed the addy range I was referring to is recommended for private nets because InterNIC does not (AFAIK) assign IP addresses in that range.
but if I'm wrong, by all means correct me..I am always up to learning something new.


as for the quote, I am used to getting attacked on BBs when posting as a newbie, but don't let that throw you.
I mean no disrespect and I am not tryin to start sh*t. So..let's let it go at that and move on.

edit: and yes you are right..I should have said 192.168.X.X

Last edited by Larry S; 09-01-2001 at 04:39 PM.
 
Old 09-01-2001, 04:45 PM   #8
Larry S
LQ Newbie
 
Registered: Sep 2001
Location: Texas
Distribution: Mandrake 8 at this time, who knows next week :-)
Posts: 5

Rep: Reputation: 0
from InterNIC:

10 Internet Assigned Numbers Authority (IANA) (RESERVED-6)
This is reserved for private internet use, without connection to the global network


192.168.0.0 - 192.168.255.0 Internet Assigned Numbers Authority, CA (IANA-CBLK-RESERVED) - reserved for private internet use (see RFC 1918)


so basically, 10.x.x.x is reserved for private nets that are not connected to the global net.

and 192.168.x.x is for private nets but it doesn't say that they shouldn't be connected to the global net
just for clarifiction, we were both right in a fashion.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mic setup and testing it (Help Needed) TitaniumTaz Debian 5 09-25-2005 09:30 PM
FTP Setup Help Needed. pdsst2 Linux - Networking 11 09-22-2005 09:18 AM
Needed: Mandrake 10 Raid 1 Setup How To hektor Mandriva 2 01-21-2005 03:29 AM
Mail Server Setup Help needed Hotwire Linux - Software 1 08-30-2003 03:39 PM
Setup help needed 2 RecoilUK Linux - Networking 12 09-05-2001 12:08 PM

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

All times are GMT -5. The time now is 09:16 PM.

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