View previous topic :: View next topic |
Author |
Message |
VoiDeR Tux's lil' helper
Joined: 11 Dec 2003 Posts: 122
|
Posted: Fri Dec 12, 2003 7:12 am Post subject: router/dhcp problem |
|
|
Ok new gentoo install everything went fine untill the usuall reboot and now theres now internet. Well i read though hundreds of posts here and at justlinux.com and i have tried everything that was suggested to no avail. Out of couriosity i decided to check my router setting and while i was in there i noticed that it wasnt assigning gentoo and ip. Now from gentoo if i type ifconfig it says that its getting up 192.168.0.2 and when i go in to my router settings it says that its only giving out the ip 192.168.0.3 which is for my xbox. So now im stuck i dont know where to go now. Im dual booting with xp and xp gets assigned 192.168.0.2 ive tryied knoppix, debian, slack, mandrake and all of them get the same ip. The module for the net cards loading the ive tried ive tried to give it a static address aswell and still the router doesnt see it. If you need more info just ask.
Thanks
Voider |
|
Back to top |
|
|
irf2003 Veteran
Joined: 10 Sep 2003 Posts: 1078
|
Posted: Fri Dec 12, 2003 8:12 am Post subject: |
|
|
does manually doing
work??
make sure that /etc/conf.d/net has only the following uncommented line:
HTH |
|
Back to top |
|
|
VoiDeR Tux's lil' helper
Joined: 11 Dec 2003 Posts: 122
|
|
Back to top |
|
|
Random Task Apprentice
Joined: 31 Mar 2003 Posts: 171 Location: Canada
|
Posted: Fri Dec 12, 2003 4:06 pm Post subject: |
|
|
when you try via iface_eth0="blah" do you enable anything else, because you need to uncomment the following line as well:
Code: | gateway="eth0/192.168.0.1" |
Other than that yours looks the same as mine (barring any ip differences) _________________ If you can't kill something with that, it ain't supposed to die...
You're so drunk you're seeing double...
I've got two guns, one for each of ya!
-Val Kilmer as Doc Holliday, Tombstone |
|
Back to top |
|
|
irf2003 Veteran
Joined: 10 Sep 2003 Posts: 1078
|
Posted: Fri Dec 12, 2003 4:13 pm Post subject: |
|
|
if your router is serving the ip's then let it's dhcp do it work
in this case
is all that is needed for your interface to be served an ip by
the router's dhcp server.
make sure that nothing else is un-commented in your /etc/conf.d/net
as rooot can you post the output of
HTH |
|
Back to top |
|
|
VoiDeR Tux's lil' helper
Joined: 11 Dec 2003 Posts: 122
|
Posted: Fri Dec 12, 2003 4:14 pm Post subject: |
|
|
when i uncomment that i get an error that says it failed to bring up eth0 and that netmount wasnt started. |
|
Back to top |
|
|
Random Task Apprentice
Joined: 31 Mar 2003 Posts: 171 Location: Canada
|
Posted: Fri Dec 12, 2003 4:17 pm Post subject: |
|
|
Is that your gateway's address? If it's not of course you'll get an error. I know for example my gateway is 192.168.1.1 so I have to edit the gateway line.
But as posted above, if dhcp works why not use that? _________________ If you can't kill something with that, it ain't supposed to die...
You're so drunk you're seeing double...
I've got two guns, one for each of ya!
-Val Kilmer as Doc Holliday, Tombstone |
|
Back to top |
|
|
VoiDeR Tux's lil' helper
Joined: 11 Dec 2003 Posts: 122
|
Posted: Fri Dec 12, 2003 4:22 pm Post subject: |
|
|
According to windows xp's ipconfig i get this
Connection-specific DNS Suffix . : suscom.net
IP Address. . . . . . . . . . . . . . . . : 192.168.0.2
Subnet Mask. . . . . . . . . . . . . . : 255.255.255.0
Default Gatway. . . . . . . . . . . . : 192.168.0.1
irf2003 is there anyway to print to a text file the output of ifconfig so i dont have to right it down. |
|
Back to top |
|
|
Random Task Apprentice
Joined: 31 Mar 2003 Posts: 171 Location: Canada
|
Posted: Fri Dec 12, 2003 4:29 pm Post subject: |
|
|
The output of any command can be redirected to a file as follows:
so for example:
Code: | ifconfig > ifconfigoutput.txt |
if there are errors in the output try this:
Code: | ifconfig 2>&1 > ifconfigoutput.txt |
_________________ If you can't kill something with that, it ain't supposed to die...
You're so drunk you're seeing double...
I've got two guns, one for each of ya!
-Val Kilmer as Doc Holliday, Tombstone |
|
Back to top |
|
|
VoiDeR Tux's lil' helper
Joined: 11 Dec 2003 Posts: 122
|
|
Back to top |
|
|
VoiDeR Tux's lil' helper
Joined: 11 Dec 2003 Posts: 122
|
Posted: Fri Dec 12, 2003 6:23 pm Post subject: |
|
|
Well im tired of searching this seems like a common problem in gentoo. Im gonna search for another hour and then rm -rf /* and go back to debian or mandrake.
Voider |
|
Back to top |
|
|
irf2003 Veteran
Joined: 10 Sep 2003 Posts: 1078
|
Posted: Fri Dec 12, 2003 6:28 pm Post subject: |
|
|
edit your /etc/rc.conf file, search for "PROTOCOLS" change it
to read like so
HTH |
|
Back to top |
|
|
VoiDeR Tux's lil' helper
Joined: 11 Dec 2003 Posts: 122
|
Posted: Fri Dec 12, 2003 6:36 pm Post subject: |
|
|
Heres my rc.config file http://thevoided.net/rc.conf.txt it was already set to protocols 1 2. I also tryed 1 2 10 to no avail.
Voider |
|
Back to top |
|
|
irf2003 Veteran
Joined: 10 Sep 2003 Posts: 1078
|
Posted: Fri Dec 12, 2003 9:28 pm Post subject: |
|
|
VoiDeR, don't give up, as root, try this
Code: |
ifconfig eth0 AF=inet
|
|
|
Back to top |
|
|
Akaihiryuu l33t
Joined: 08 May 2003 Posts: 798 Location: Columbus, OH
|
Posted: Fri Dec 12, 2003 10:55 pm Post subject: |
|
|
I had a similar issue. I had my router (the Gentoo machine) set to 192.168.0.1, with the other machines starting at 192.168.0.2. When I set my roommate's Win98SE machine to 192.168.0.3 (I'm lazy, haven't set up dhcpd yet), the two machines couldn't see each other at all, no ping responses even. I changed 192.168.0.x to 192.168.1.x and then everything worked fine. I can't say what the problem is...either the Gentoo machine or the Win98 machine just had a problem with an address being 192.168.0.x. |
|
Back to top |
|
|
VoiDeR Tux's lil' helper
Joined: 11 Dec 2003 Posts: 122
|
Posted: Fri Dec 12, 2003 11:06 pm Post subject: |
|
|
irf2003 ifconfig eth0 AF=inet returned this
AF=inet: Host name lookup failure. |
|
Back to top |
|
|
irf2003 Veteran
Joined: 10 Sep 2003 Posts: 1078
|
Posted: Fri Dec 12, 2003 11:40 pm Post subject: |
|
|
ok, let's try another hack, and see what happens, in your
/etc/rc.conf , change PROTOCOLS to the followings:-
Code: |
PROTOCOLS="1 2 10 17"
|
I have a question, is dhcp working? that is, has the router
successfully asigned an address to your interface?
HTH
on second thoughts I think I goophed, so try this first, before you try the above hack:-
bonne chance |
|
Back to top |
|
|
VoiDeR Tux's lil' helper
Joined: 11 Dec 2003 Posts: 122
|
Posted: Sat Dec 13, 2003 1:24 am Post subject: |
|
|
I tryied both and still nothing. Out of curiostiy i booted linux up on my xbox and loged into my router and the router isnt giving it an ip address. I gives my xbox one and any other os that i boot one but not gentoo. Now im stumped. |
|
Back to top |
|
|
mizery de aria Guru
Joined: 07 Dec 2003 Posts: 309
|
|
Back to top |
|
|
VoiDeR Tux's lil' helper
Joined: 11 Dec 2003 Posts: 122
|
Posted: Sat Dec 13, 2003 4:53 pm Post subject: |
|
|
Mizery de aria thanks but it didnt work.
I fear that if i dont get this working today ill be going back to debian. I would like to say that for all the crying poeple do about the install they must have never read the instructions becuase all three installs ive done have all when off with ot a hitch.
Thanks |
|
Back to top |
|
|
|