View previous topic :: View next topic |
Author |
Message |
cyberfunk007 n00b
Joined: 11 Oct 2002 Posts: 23
|
Posted: Fri Oct 11, 2002 2:39 am Post subject: installing stage 1 behind gateway |
|
|
Hi guys,
I admit i have not got verry far but i am at the stage where i need to manually configure my IP and Routing table. The IP i have assigned to eth0 on my gentoo box is 192.168.0.4 and the gateways internal IP is 192.168.0.2.
It seems the route they have put in the install instructions if for a PC that is directly connected to the internet. I have tried copying some of the other routes on other internal machines i have at home, and the best I could do was for PING to resolve the domain i typed in (e.g www.gentoo.org) with 100% packet loss *blush*
I was wondering if someone tell me what the route is supposed to be for a machine that is connecting to the net through a gateway?
Cheers
Cyber |
|
Back to top |
|
|
rincewind Apprentice
Joined: 16 Aug 2002 Posts: 172 Location: Essen, Germany
|
Posted: Fri Oct 11, 2002 5:10 am Post subject: |
|
|
try: route add -net default gw 192.168.0.2 netmask 0.0.0.0 metric 1
and please post output from route -a and ifconfig ? |
|
Back to top |
|
|
medic n00b
Joined: 08 Oct 2002 Posts: 7 Location: Johnstown, PA
|
Posted: Fri Oct 11, 2002 5:21 am Post subject: cyber |
|
|
Cyber,
have you ran the net-setup utility, not selecting the dhcp setup, and answered the questions?
if not try running
ifconfig eth0 192.168.0.4 broadcast 192.168.0.255 netmask 255.255.x.x
then run
route add -net default gw 192.168.0.2 netmask 0.0.0.0 metric 1
my netmask for ifconfig is 255.255.255.0 your may very slightly...
Tom |
|
Back to top |
|
|
cyberfunk007 n00b
Joined: 11 Oct 2002 Posts: 23
|
Posted: Fri Oct 11, 2002 5:49 am Post subject: |
|
|
thanks guys, i will give it a go when I get home tonight...
I did the ifconfig part, but I think where i went wrong was in the route part... I think i put
route add -net gw 192.168.0.2 netmask 255.255.255.0 metric 1
the netmask being the part i got wrong... I will give it another try tonight and let you know how i go.
Cheers
Cyber |
|
Back to top |
|
|
|