View previous topic :: View next topic |
Author |
Message |
demento n00b
Joined: 03 Nov 2004 Posts: 42
|
Posted: Fri Nov 19, 2004 8:46 pm Post subject: internet -> router -> pc -> laptop |
|
|
Yo,
I have a little problem, im connected to the internet with a router, now ive got a laptop so i want to share the internet, but i cant get it to work
can anyone help
tnx |
|
Back to top |
|
|
Twiggy794 Guru
Joined: 21 Jun 2004 Posts: 321 Location: Hershey, PA
|
Posted: Fri Nov 19, 2004 9:13 pm Post subject: |
|
|
Could you share a little more info with us? How many machines are you sharing through the router? What's the error? Whats the output of route? ifconfig? _________________ "Subtraction: Addition's tricky pal." --David Letterman
http://ferg.ath.cx == teh bL0g |
|
Back to top |
|
|
befa Apprentice
Joined: 28 Oct 2004 Posts: 208 Location: rennes
|
Posted: Fri Nov 19, 2004 11:46 pm Post subject: |
|
|
check that
if you don't have a line with default gw ip_router
then add this
Code: | route add default gw ip_router |
or in
check if you have that line
Code: | gateway="eth0/ip_router" |
if you don't have it then add it!
question, your router is a comp gateway?
p.s: sorry for my english _________________ Open Minds! Open Sources! Open Future!
think_tux@jabber.org |
|
Back to top |
|
|
demento n00b
Joined: 03 Nov 2004 Posts: 42
|
Posted: Sat Nov 20, 2004 10:30 am Post subject: |
|
|
ok, sorry for the bad info, but i wasnt at my own pc, so i couldnt see preferences and stuff
first of all, i dont have access to the router, it isnt mine. the output of ifconfig is this:
Code: |
demento # ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:F4:60:37:FA
inet addr:192.168.0.12 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1090 errors:0 dropped:0 overruns:0 frame:0
TX packets:1064 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:644538 (629.4 Kb) TX bytes:173852 (169.7 Kb)
Interrupt:18 Base address:0xd400
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:126 errors:0 dropped:0 overruns:0 frame:0
TX packets:126 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7924 (7.7 Kb) TX bytes:7924 (7.7 Kb)
|
now i want to get my laptop online using my eth1
this is the output of "route -n"
Code: |
demento # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
|
|
|
Back to top |
|
|
befa Apprentice
Joined: 28 Oct 2004 Posts: 208 Location: rennes
|
Posted: Sat Nov 20, 2004 11:49 am Post subject: |
|
|
what is the ip of the router? _________________ Open Minds! Open Sources! Open Future!
think_tux@jabber.org |
|
Back to top |
|
|
demento n00b
Joined: 03 Nov 2004 Posts: 42
|
Posted: Sat Nov 20, 2004 11:55 am Post subject: |
|
|
router ip = 192.168.0.1 |
|
Back to top |
|
|
|