Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
internet -> router -> pc -> laptop
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
demento
n00b
n00b


Joined: 03 Nov 2004
Posts: 42

PostPosted: Fri Nov 19, 2004 8:46 pm    Post subject: internet -> router -> pc -> laptop Reply with quote

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
View user's profile Send private message
Twiggy794
Guru
Guru


Joined: 21 Jun 2004
Posts: 321
Location: Hershey, PA

PostPosted: Fri Nov 19, 2004 9:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
befa
Apprentice
Apprentice


Joined: 28 Oct 2004
Posts: 208
Location: rennes

PostPosted: Fri Nov 19, 2004 11:46 pm    Post subject: Reply with quote

check that
Code:
route -n

if you don't have a line with default gw ip_router
then add this
Code:
route add default gw ip_router


or in
Code:
 /etc/conf.d/net

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
View user's profile Send private message
demento
n00b
n00b


Joined: 03 Nov 2004
Posts: 42

PostPosted: Sat Nov 20, 2004 10:30 am    Post subject: Reply with quote

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
View user's profile Send private message
befa
Apprentice
Apprentice


Joined: 28 Oct 2004
Posts: 208
Location: rennes

PostPosted: Sat Nov 20, 2004 11:49 am    Post subject: Reply with quote

what is the ip of the router?
_________________
Open Minds! Open Sources! Open Future!
think_tux@jabber.org
Back to top
View user's profile Send private message
demento
n00b
n00b


Joined: 03 Nov 2004
Posts: 42

PostPosted: Sat Nov 20, 2004 11:55 am    Post subject: Reply with quote

router ip = 192.168.0.1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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