LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2003, 11:11 AM   #16
mark_booze
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0

Well I tried pinging the PC that hosts the connection and that is fine. I also pinged the loopback address and that is fine also. I tried pinging Google's IP (which I think is 66.102.11.99) and got "Network is unreachable"
All very frustrating.
Any other thoughts anyone?

Cheers

M
 
Old 12-18-2003, 12:05 PM   #17
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Interesting....

ICS simply turns the Win2K box into a simple router and DHCP server, and provided that eth0 is configured to use DHCP it should get all relative info from the Win2K box. I believe that you can set it to use DHCP in the mandrake control center, but I don't use Mandrake so I am not positive. If you can set it to DHCP, the eth0 should broadcast a DHCP_REQUEST packet and get all of the info needed from tthe Win2K box.

That's my best advice. The settings can be done manually as well, but DHCP should work just fine.

slight
 
Old 12-18-2003, 02:46 PM   #18
mark_booze
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0
Aha. Now that makes a lot of sense. I will explore the Mandrake Control Panel to see if it has a "Obtain IP address automatically" setting.

If anyone knows how to do this, that would be really helpful.

Cheers

M
 
Old 12-18-2003, 04:41 PM   #19
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
that would make things get along better, in the meantime, resend your route table, there should be a line for
destination default gateway 192.168.0.1 genmask (whatever your router uses..)
or something similar, there is an example in man route, or man routeadd
 
Old 12-18-2003, 05:44 PM   #20
mark_booze
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0
Route table now shows:
Destination:192.168.0.0; Gateway: 0.0.0.0; Genmask: 255.255.255.0 iface eth0
Destination: 127.0.0.0: Gateway: 0.0.0.0: Genmask: 255.0.0.0 iface l0
Destination: 0.0.0.0: Gateway: 192.168.0.1: Genmask 0.0.0.0 iface eth0

The last entry was as a result of me entering "route -v add default gw 192.168.0.1" I hope that was right; I was trying to set a default gateway.

Just to recap, 192.168.0.1 is the IP of the W2K PC hosting the internet connection. It is set up to run Windows ICS.
Any idea how I can get the Linux PC to obtain its IP address automatically?

Thanks again

Cheers

M
 
Old 12-18-2003, 06:11 PM   #21
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
you could always set static ips for both machines and add the gateway as a nameserver to resolv.conf of the linux machine.
 
Old 12-18-2003, 06:21 PM   #22
mark_booze
LQ Newbie
 
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0
Well team, you will be glad to hear that I am typing this on my linux box. I found the DHCP configuration on a freeBSD site (www.freebsd.peon.net/quickies/14/) It is buried in etc/sysconfig/network-scripts/ifcfg-eth0. It seemed to require a re-boot (I thought linux didn't need those) to enable connection, but it seems fine now.

A really big thank you to all those who took the time to respond. I hope you will all be as patient for the inevitable "next time".

Bye for now.

Cheers

M
 
Old 01-02-2004, 12:37 AM   #23
esmithbss
LQ Newbie
 
Registered: Jan 2004
Posts: 2

Rep: Reputation: 0
I don't know if you have found your solution yet, but I have a very similar network using Mandrake 9.2, Win2KPro, WinXP, and Familiar Linux (Ipaq)

Here's what I have done. Hopefully it will help.

Here are the machines:
1) Win2K -- Internet Connection box.
a) Network Card 1 : ethernet connection to house network
IP Address -- static (192.168.0.101)
Netmask -- 255.255.255.0
Broadcast -- 192.168.0.255
Internet Connection Sharing disabled
b) Network Card 2 : internet connection
IP Address -- dynamic (generated by ISP)
Internet Connection Sharing enabled

2) Mandrake 9.2 / Win XP dual boot notebook (only mandrake config shown)
a) eth0 : ethernet connection to house network
IP Address -- dynamic (usually 192.168.0.99)
Netmask -- 255.255.255.0
Broadcast -- 192.168.0.255

Now on the Mandrake box I have the following in my /etc/resolv.conf file:

nameserver 192.168.0.101

Until you get things running I would suggest that you disable shorewall completely. This may require you to add the following to the /etc/shorewall/

eth0 -

Then make sure the following is in your routing table (type route to find out)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.0.101 0.0.0.0 UG 0 0 0 eth1

This is all I required to get things going. Most are set up properly when you install Mandrake, or turn on ICS on the Windows box.

Last edited by esmithbss; 01-02-2004 at 12:40 AM.
 
  


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
Internet connection sharing fdawy Linux - Networking 22 10-06-2005 09:23 AM
sharing my internet connection berrance Linux - Networking 1 02-25-2005 11:33 AM
SHaring internet connection bart59 Linux - Networking 1 01-27-2005 07:24 AM
Internet Connection Sharing geekbyday Linux - Networking 9 11-19-2004 10:59 PM
Internet Connection Sharing Chijtska Linux - Networking 7 09-02-2002 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration