Click to See Complete Forum and Search --> : My PC can't get online


dr_gonzo
04-29-2004, 05:57 AM
hello,

my setup at home is, i've got a pc with debian on it with 2 ethernet cards
in it. eth0 is connected to a router with dhcp and the eth1 is connected to
my laptop with a crossover cable. for some reason i can't access the
internet with my pc, but when i connect my laptop directly to the router,
my laptop can access the internet no problems.

when my laptop and pc are connected together and i try to ping my pc from
my laptop i get this:
gary [~] ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
ping: sendto: Host is down
ping: wrote 192.168.0.1 64 chars, ret=-1
ping: sendto: Host is down
ping: wrote 192.168.0.1 64 chars, ret=-1
ping: sendto: Host is down
ping: wrote 192.168.0.1 64 chars, ret=-1
^C
--- 192.168.0.1 ping statistics ---
28 packets transmitted, 0 packets received, 100% packet loss

when i try to ping iol's dhcp server from my pc i get this:
root[~] ping 194.125.2.240
PING 194.125.2.240 (194.125.2.240): 56 data bytes
ping: sendto: Operation not permitted
ping: wrote 194.125.2.240 64 chars, ret=1
ping: sendto: Operation not permitted
ping: wrote 194.125.2.240 64 chars, ret=1

--- 194.125.2.240 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
what's up with this? afaik i don't have any firewall rules except for the
ones that came with ipmasq.

btw, here's my /etc/network/interfaces

auto lo

iface lo inet loopback

auth eth0

iface eth0 inet dhcp

auto eth1

iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0

any help, pointers, suggestions would be greatly appreciated, cheers! :)

viperlin
04-29-2004, 08:36 AM
you need to use your debian PC as a gateway

and maybe look at iptables forwarding rules to allow that, i'm not sure i've never done it, but hopefully that can help a bit :-)

bradfordgd
04-29-2004, 08:43 AM
Also, what do you get from typing "ifconfig -a" on the command line? The eth card connected to your laptop should have a private IP address like 192.168.0.1 and the eth card connected to your modem should have a public one, either static or DHCP assigned from you ISP.

dr_gonzo
04-29-2004, 09:39 AM
my laptop's got an IP of 192.168.0.2

i'm not at home now so i can't give you the output of ifconfig -a but everything was working up until about a week ago and i hadn't done anything with the PC (install software, change settings) to make it go like this.

i installed a package called ipmasq a few months ago when i initially set it up, this package configured the ip fowarding and stuff in the firewall. i have not altered the firewall since.


could this be a hardware problem?