View previous topic :: View next topic |
Author |
Message |
Zarathustra[H] Guru
Joined: 30 Dec 2002 Posts: 389 Location: Cambridge, MA, USA
|
Posted: Thu Feb 06, 2003 3:37 am Post subject: not that great with networking... |
|
|
I'm almost sure this is a dep, but searching the forums doesnt help me, casue I dont know exactly what to search for, so please bear with me on this one...
In order to get the inet to work on my gentoo install I had to set the following strings:
iface_eth0="XXX.XXX.XXX.XXX broadcast XXX.XXX.XXX.XXX netmask XXX.XXX.XXX.X"
and
gateway="eth0/XXX.XXX.XXX.XXX"
Now I dont know what all these mean except the first one which is my IP adress, but it wouldnt work without all of them there.
I originally got these numbers by looking at my dual boot windows winipcfg screen. (it assigned all of these automatically...
Now here is where my real problem starts. I am converting a Red Hat 7.3 box of mine into a Gentoo box, but I can only find the numbers for the iface string above. (I get these from ifconfig) I cant seem to find the gateway info anywhere.
Redhat doesnt seem, to have a /etc/conf.d/net file like gentoo does, (heck it doesnt even have the /etc/conf.d dir)
Anyone have any clue on how I can find out what the default gateway is?
Thanks,
Matt _________________ ----
Athlon 64 3000+ / 1Gb Kingston Hyperx PC3500 / MSI K8N Neo / Geforce 6800GT
---- |
|
Back to top |
|
|
darktux Veteran
Joined: 16 Nov 2002 Posts: 1086 Location: Coimbra, Portugal
|
Posted: Thu Feb 06, 2003 3:58 am Post subject: |
|
|
How do you connect to the internet? Is it via another computer? If it is, then you are using a gateway, thus you need to get it's IP address and put it in there. _________________ Lego my ego, and I'll lego your knowledge
www.tuxslare.org - My reborn website |
|
Back to top |
|
|
BlackBart Apprentice
Joined: 07 Oct 2002 Posts: 252
|
Posted: Thu Feb 06, 2003 5:13 am Post subject: |
|
|
easy method:
just specify the IP adress and let ifconfig sort out the defaults |
|
Back to top |
|
|
Zarathustra[H] Guru
Joined: 30 Dec 2002 Posts: 389 Location: Cambridge, MA, USA
|
Posted: Thu Feb 06, 2003 7:31 am Post subject: |
|
|
BlackBart wrote: | easy method:
just specify the IP adress and let ifconfig sort out the defaults |
Hah! I knew there had to be an easier method...
to do that, do I just set:
iface_eth0="XXX.XXX.XXX.XXX" ?
thanks,
Matt _________________ ----
Athlon 64 3000+ / 1Gb Kingston Hyperx PC3500 / MSI K8N Neo / Geforce 6800GT
---- |
|
Back to top |
|
|
fifo Guru
Joined: 14 Jan 2003 Posts: 437
|
Posted: Thu Feb 06, 2003 1:35 pm Post subject: |
|
|
If you have a working Windows setup that can access the net, you can find out your gateway address by typing "ipconfig" at a command prompt. |
|
Back to top |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Thu Feb 06, 2003 6:11 pm Post subject: Re: not that great with networking... |
|
|
Zarathustra[H] wrote: |
Now here is where my real problem starts. I am converting a Red Hat 7.3 box of mine into a Gentoo box, but I can only find the numbers for the iface string above. (I get these from ifconfig) I cant seem to find the gateway info anywhere.
Redhat doesnt seem, to have a /etc/conf.d/net file like gentoo does, (heck it doesnt even have the /etc/conf.d dir)
Anyone have any clue on how I can find out what the default gateway is?
|
Redhat has /etc/sysconfig/ instead of /etc/conf.d/ The info you want is in one of two places in Redhat 7.3
/etc/sysconfig/network-scripts/ifcfg-eth0 (assuming your main interface is eth0)
/etc/sysconfig/network
Check those two files and they should tell you what you need to know.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
|
krt Tux's lil' helper
Joined: 27 Nov 2002 Posts: 102 Location: Earth
|
Posted: Fri Feb 07, 2003 8:44 am Post subject: Re: not that great with networking... |
|
|
Zarathustra[H] wrote: | I'm almost sure this is a dep, but searching the forums doesnt help me, casue I dont know exactly what to search for, so please bear with me on this one...
In order to get the inet to work on my gentoo install I had to set the following strings:
iface_eth0="XXX.XXX.XXX.XXX broadcast XXX.XXX.XXX.XXX netmask XXX.XXX.XXX.X"
and
gateway="eth0/XXX.XXX.XXX.XXX"
Now I dont know what all these mean except the first one which is my IP adress, but it wouldnt work without all of them there.
I originally got these numbers by looking at my dual boot windows winipcfg screen. (it assigned all of these automatically...
Matt |
If windows received them automatically, so can Linux. Try running dhcpcd, like so:
You should see your interface configure automaticatlly (if you have a linksys or some other router, i.e. gateway, its most likely running a dhcp server too)
If you want this to occur on bootup automatically, just edit /etc/conf.d/net such that the only line not commented out is iface_eth0="dhcp" _________________ Everyone has something clever for a signature but me. |
|
Back to top |
|
|
|