LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-24-2005, 08:59 AM   #1
islord
LQ Newbie
 
Registered: Apr 2004
Location: Slovenia
Distribution: Slackware 10.0
Posts: 4

Rep: Reputation: 0
Sharing internet connection between Slackware and XP via crossover cable


Hello!

I've been searching the forums for the last three days without any resoults. Ok, the thing im trying to do should be a no-brainer, but i can't seem to find the problem. I wanna do the following:
internet <----- WinXP Pro box <-----> Slack10.0 box

Ok. I enable ICS on NIC thats connected to the internet.
Ethernet adapter Local Area Connection 4:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : RCA USB Cable Modem
Physical Address. . . . . . . . . : 00-10-95-A5-16-40
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 194.249.xxx.xxx
Subnet Mask . . . . . . . . . . . : 255.255.255.xxx
Default Gateway . . . . . . . . . : 194.249.xxx.1
DNS Servers . . . . . . . . . . . : 193.2.1.66
193.2.1.72

Then on my second NIC i set the following:
Ethernet adapter Local Area Connection 5:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : 3Com EtherLink XL 10/100 PCI For Complete PC Management NIC (3C905C-TX)
Physical Address. . . . . . . . . : 00-0A-5E-22-63-32
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.0.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

And as for the final stage of this setup, i go to Slack box and edit /etc/rc.d/rc.inet1.conf
IPADDR[0]="192.168.0.2"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Default gateway IP address:
GATEWAY="192.168.0.1"

and also /etc/resolv.conf where i set both dns servers:
193.2.1.66
193.2.1.72

Oh yea just on more thing: ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:04:61:701:0F
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:318 errors:0 dropped:0 overruns:0 frame:0
TX packets:323 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:36347 (35.4 Kb) TX bytes:34219 (33.4 Kb)
Interrupt:11 Base address:0xe600


I can ping linux box from XP and vice-versa. I cannot ping google.com which means im not connected to internet.
I can also SSH in my Slack box from XP.

I also read that i should do it the other way around ( configuring linux to act as a router, but i cant since my school is M$ oriented and i need it + im fairly new to linux and need to adjust first )


Any suggestions ?


Thank you!
 
Old 01-24-2005, 09:31 AM   #2
guzzi
Member
 
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 313

Rep: Reputation: 40
your Linux box will need then ip address of the XP box as its gateway
this is in /etc/rc.d/rc.inet1.conf

and, the linux box will need the dns address of your isp
which will go in /etc/resolv.conf
 
Old 01-24-2005, 09:38 AM   #3
kumochisonan
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora Core
Posts: 12

Rep: Reputation: 0
You seem to have everything you need on the Linux box, and you can connect to the XP box fine, it has to be either a problem with the gateway configuration (which looks fine to me), or with the routing on the XP box... but I don't know anything about Internet Connection Sharing on XP... I'm not sure that is within the scope of this forum, unless we have some XP wizards lurking about.

I am in agreement with what you have read, Linux makes a far better router than a Windows box.
 
Old 01-24-2005, 10:38 AM   #4
islord
LQ Newbie
 
Registered: Apr 2004
Location: Slovenia
Distribution: Slackware 10.0
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by guzzi
your Linux box will need then ip address of the XP box as its gateway
this is in /etc/rc.d/rc.inet1.conf

and, the linux box will need the dns address of your isp
which will go in /etc/resolv.conf

@ guzzi

As you probably read from my first post both of those files have already been edited (i think correctly).
Im wondering tho if i need to change anything else, that might not have been metioned in other posts that i've read so far.
I still can't find the missing puzzle to my solution, will have to search harder.

:edit:
Could my problem be in USB connected cable modem ? ( because the pc thats connected to internet is running XP and it has modem connected through USB and a NIC with witch i connect to Linux box )


Thanks for fast replys.

Last edited by islord; 01-25-2005 at 04:25 AM.
 
  


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
Internet sharing through crossover cable iamtux Linux - Networking 3 09-01-2005 07:53 AM
internet connection sharing between two computers using crossover cable farnell_mark Debian 1 06-04-2005 04:44 PM
Win98 and RedHat 6.0 Internet Connection Sharing with a crossover cable lorisdaboris Linux - Networking 3 03-13-2005 10:24 AM
Crossover cable network between XP and Gentoo to shace internet connection rcbarnes Linux - Networking 2 12-24-2004 10:49 PM
Slackware 9, Windows XP, crossover cable and an internet connection dxdad Linux - Networking 37 11-11-2003 08:45 PM

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

All times are GMT -5. The time now is 03:59 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