internet connection down - error in net config?

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
gladi2k
Newbie
Posts: 5
Joined: Thu Nov 11, 2004 9:14 pm

internet connection down - error in net config?

Post by gladi2k »

Hey guys!

I emerged aMule, iptables, did two times magic and tried a emerge -u world but stopped it as it took very long time.
Now my internet connection doesn't work any longer.
Neither via DSL nor via connection sharing of Windows XP.
(both worked some days ago)
ADSL is able to connect but I can't ping any pages. Pinging my network PC works fine!
My net config looks like this:

iface_eth0="192.168.0.18 broadcast 192.168.0.0 netmask 255.255.255.0"
gateway="eth0/192.168.0.1"


Problem #2:
If I login to the X-Box on SSH with Putty it takes a long time ~20sec until I'm asked for the password - what could I do to fasten the login process?


Any solutions would be greatly appreciated!

Thanks in advance

gLaDi
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle »

for problem one check your /etc/resolv.conf make sure your nameservers are correct.

For problem two you need add the ip address of your PC that you are using to login via ssh to /etc/hosts like this

Code: Select all

192.168.0.1      mycomputer.domain.tld    mycomputer
If you keep an open mind, will your brain fall out?
gladi2k
Newbie
Posts: 5
Joined: Thu Nov 11, 2004 9:14 pm

Post by gladi2k »

Problem #1:
yes the nameservers are correct (tested on my PC)
Now I can ping IPs on the internet when I'm directly connected with my X-Box via T-DSL but it doesn't work over connection sharing of my PC even when I add
gateway="192.168.0.1"
to net config.
I get this error:
connect: Network is unreachable

How do I load the file /etc/conf.d/net while the X-Box is running? I think it only loads once when the box boots but how to load it when I've changed something while it is running for exemple the gateway?


Problem #2:
solved - THX!

New question:
I'm working with VNC and putty only and don't need to load any interface on my X-Box to show it on TV. Which service do I have to disable?
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle »

to reload eth0

Code: Select all

/etc/init.d/net.eth0 restart
gateway line should be

Code: Select all

gateway="eth0/192.168.0.1"
If you keep an open mind, will your brain fall out?
Post Reply