View previous topic :: View next topic |
Author |
Message |
blkdragon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Nov 2006 Posts: 50
|
Posted: Thu Dec 21, 2006 2:20 am Post subject: Windows and Gentoo ICS |
|
|
hi, my problem is as follows:
i need to configure my pc so i can use it as a gateway.
my connection goes as follows:
modem-->PC (windows xp)-->Linux laptop
i've got two Ethernet ports on my pc, and one on my lappy.
I'm using a crossover cable to connect the two computers, and a normal CAT5 to connect the PC and modem, how would i be able to go on the internet with both computers at the same time?
Im having trouble getting this to work.
Gentoo doesnt seem to want to connect to the Windows machine, and on the odd occasion that it does, then it works fine. But i'm having problems connecting both machines. one doesnt like the other, or something like that. This worked fine in Ubuntu, by the way.
output of ifconfig:
Code: | eth0 Link encap:Ethernet HWaddr 00:00:39:F3:D5:27
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0x8f80
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) |
my /etc/conf.d/net:
Code: | # This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
dns_domain_lo="HOME"
nameserver="10.0.0.138"
### Static Configuration ###
config_eth0=( "192.168.0.2 netmask 255.255.255.0" )
routes_eth0=( "default gw 192.168.0.1" )
### DHCP Configuration ###
#config_eth0=( "dhcp" ) |
the only reason that i have both DHCP and Static in my /net is in case i wish to switch to one or the other.
Any suggestions??
Thanks. _________________ Lovin' Choc Cake...
Toshiba Portege 7020CT
PII, 366Mhz, 192Mb RAM, 30GB HDD, XP & Gentoo
Hewlett Packard 8833
PIII, 1Ghz, 512Mb RAM, 80+40Gb HDD, XP & Gentoo
Non-Branded Computer
P4, 1.6Ghz, 512Mb RAM, 160Gb HDD, XP & Gentoo |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
djay Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/11161914084398668601b94.jpg)
Joined: 18 Apr 2005 Posts: 188 Location: Israel
|
Posted: Thu Dec 21, 2006 7:34 pm Post subject: Re: Windows and Gentoo ICS |
|
|
blkdragon wrote: | hi, my problem is as follows:
i need to configure my pc so i can use it as a gateway.
my connection goes as follows:
modem-->PC (windows xp)-->Linux laptop
i've got two Ethernet ports on my pc, and one on my lappy.
I'm using a crossover cable to connect the two computers, and a normal CAT5 to connect the PC and modem, how would i be able to go on the internet with both computers at the same time?
Im having trouble getting this to work.
Gentoo doesnt seem to want to connect to the Windows machine, and on the odd occasion that it does, then it works fine. But i'm having problems connecting both machines. one doesnt like the other, or something like that. This worked fine in Ubuntu, by the way.
output of ifconfig:
Code: | eth0 Link encap:Ethernet HWaddr 00:00:39:F3:D5:27
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0x8f80
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) |
my /etc/conf.d/net:
Code: | # This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
dns_domain_lo="HOME"
nameserver="10.0.0.138"
### Static Configuration ###
config_eth0=( "192.168.0.2 netmask 255.255.255.0" )
routes_eth0=( "default gw 192.168.0.1" )
### DHCP Configuration ###
#config_eth0=( "dhcp" ) |
the only reason that i have both DHCP and Static in my /net is in case i wish to switch to one or the other.
Any suggestions??
Thanks. |
I suggest solving one problem at a time.
First, connect you laptop to a Windows computer, and make sure ping goes through, so returns successfully.
Before it happens every time you connect these two, there's no point wondering why internet doesn't work. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
blkdragon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Nov 2006 Posts: 50
|
Posted: Fri Dec 22, 2006 12:06 am Post subject: |
|
|
nope, ping doesnt work.
i think the first problem is that the computers cant recognize each other, or something like that.
when the windows computer boots up, the lights flash on the port of my lappy, but then, its like no-one's home...
i dont think they connect properly.
or something. _________________ Lovin' Choc Cake...
Toshiba Portege 7020CT
PII, 366Mhz, 192Mb RAM, 30GB HDD, XP & Gentoo
Hewlett Packard 8833
PIII, 1Ghz, 512Mb RAM, 80+40Gb HDD, XP & Gentoo
Non-Branded Computer
P4, 1.6Ghz, 512Mb RAM, 160Gb HDD, XP & Gentoo |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
djay Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/11161914084398668601b94.jpg)
Joined: 18 Apr 2005 Posts: 188 Location: Israel
|
Posted: Fri Dec 22, 2006 9:36 am Post subject: |
|
|
blkdragon wrote: | nope, ping doesnt work.
i think the first problem is that the computers cant recognize each other, or something like that.
when the windows computer boots up, the lights flash on the port of my lappy, but then, its like no-one's home...
i dont think they connect properly.
or something. |
OK, now we're getting somewhere.
I don't like to fight systems, so what I'd do, if its not too hard, is try and switch either the cross cable you're using (maybe it has bad wiring) or at least switch the net cards in windows, meaning trying to do all this with the other cards. From windows point of view it doesn't matter with which card to connect to the internet, you'll just have to change ICS settings.
If its too hard, not possible, or non-feasible from other reasons, I'd start checking the settings on both machines: checking that both cards are ok, and both are up, and both have the same network settings (IP should be in the same segment, and netmask should define them so).
Just get started, in the end it will be solved. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
GNUtoo Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1525345842447fdfa3b9717.jpg)
Joined: 05 May 2005 Posts: 1919
|
Posted: Fri Dec 22, 2006 11:01 pm Post subject: |
|
|
ok:
first get both cards up
then check if the light from your network adapter is on
if not mabe the cable is not a crosswire(don't know if the term is right) cable so buy one
then set up the network with the good ip and netmask
then share the connection in windows:
right cliek on the network icon
co to propriety
open your nic that has internt
go to share your internet connection
select your other nic
and normaly you have to set-up the routes and /etc/resolve.conf manualy
(i know that because i already set-up colinux) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
djay Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/11161914084398668601b94.jpg)
Joined: 18 Apr 2005 Posts: 188 Location: Israel
|
Posted: Sat Dec 23, 2006 7:40 am Post subject: |
|
|
GNUtoo wrote: | ok:
first get both cards up
then check if the light from your network adapter is on
if not mabe the cable is not a crosswire(don't know if the term is right) cable so buy one
then set up the network with the good ip and netmask
then share the connection in windows:
right cliek on the network icon
co to propriety
open your nic that has internt
go to share your internet connection
select your other nic
and normaly you have to set-up the routes and /etc/resolve.conf manualy
(i know that because i already set-up colinux) |
right.
Hold you horses, let him get ping between 2 computers first. ![Wink ;-)](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
blkdragon n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Nov 2006 Posts: 50
|
Posted: Mon Dec 25, 2006 6:35 am Post subject: |
|
|
both cards work fine, they just don't recognise each other...
and i do have a crossover cable. (cat 5e)
i use an Intel 10/100 Pro to connect to the internet, and a 3Com Maxi XL (or equivalent) to connect to my gentoo box.
the reason that i use the Intel card to connect to the net is cos thats the only one with ICS available as an option. i cant get ICS on the 3Com.
question: this worked before on my (former ubuntu, now) gentoo box, why doesnt it work now? _________________ Lovin' Choc Cake...
Toshiba Portege 7020CT
PII, 366Mhz, 192Mb RAM, 30GB HDD, XP & Gentoo
Hewlett Packard 8833
PIII, 1Ghz, 512Mb RAM, 80+40Gb HDD, XP & Gentoo
Non-Branded Computer
P4, 1.6Ghz, 512Mb RAM, 160Gb HDD, XP & Gentoo |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
djay Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/11161914084398668601b94.jpg)
Joined: 18 Apr 2005 Posts: 188 Location: Israel
|
Posted: Mon Dec 25, 2006 7:51 am Post subject: |
|
|
blkdragon wrote: | both cards work fine, they just don't recognise each other...
and i do have a crossover cable. (cat 5e)
i use an Intel 10/100 Pro to connect to the internet, and a 3Com Maxi XL (or equivalent) to connect to my gentoo box.
the reason that i use the Intel card to connect to the net is cos thats the only one with ICS available as an option. i cant get ICS on the 3Com.
question: this worked before on my (former ubuntu, now) gentoo box, why doesnt it work now? |
Different reasons - problem with cable included.
Regarding configuration in Windows and ICS - yes, that's how the damned thing works. In ICS configuration, it only allows you to use cards which aren't defined to be used in internet connection, in this case 3Com.
What I suggested, is first get you computers see each other, then connect to the internet with the other card that left. I mean, you could connect to the internet with 3Com, right?
Now, cards wouldn't "recognize" each other if you give IPs manually - they just work within settings you define. If ping doesn't pass, it may be the problem with one of the cards (hardware), IP settings (software) or cable. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
GNUtoo Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1525345842447fdfa3b9717.jpg)
Joined: 05 May 2005 Posts: 1919
|
Posted: Tue Dec 26, 2006 6:05 pm Post subject: |
|
|
do you have a switch?
if yes you could plug your crossover cable in the switch at both endpoint and see if the lights are on |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|