Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-01-2001, 10:08 AM
|
#1
|
Member
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270
Rep:
|
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
|
|
|
09-01-2001, 01:04 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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...
|
|
|
09-01-2001, 03:09 PM
|
#3
|
LQ Newbie
Registered: Sep 2001
Location: Texas
Distribution: Mandrake 8 at this time, who knows next week :-)
Posts: 5
Rep:
|
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
|
|
|
09-01-2001, 04:03 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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? :-)
|
|
|
09-01-2001, 04:23 PM
|
#5
|
LQ Newbie
Registered: Sep 2001
Location: Texas
Distribution: Mandrake 8 at this time, who knows next week :-)
Posts: 5
Rep:
|
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.
|
|
|
09-01-2001, 04:28 PM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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?
|
|
|
09-01-2001, 04:37 PM
|
#7
|
LQ Newbie
Registered: Sep 2001
Location: Texas
Distribution: Mandrake 8 at this time, who knows next week :-)
Posts: 5
Rep:
|
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.
|
|
|
09-01-2001, 04:45 PM
|
#8
|
LQ Newbie
Registered: Sep 2001
Location: Texas
Distribution: Mandrake 8 at this time, who knows next week :-)
Posts: 5
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 09:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|