Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Internet configuration post-install.

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
dr pepper
n00b
n00b
Posts: 4
Joined: Tue Mar 16, 2010 11:44 pm

Internet configuration post-install.

  • Quote

Post by dr pepper » Tue Mar 16, 2010 11:53 pm

My gentoo system is fully fuctioning with the exception of the internet. The only problem that i have right now is the fact that i forgot to install dhcpcd. How do I configure my internet from here?

with ifconfig i get:


eth0 Link encap:Ethernet HWaddr 00:07:e9:c6:44:72
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask: 255.255.255.0
UP CROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Lo Link encap:Local loopback
inet addr:127.0.0.1 Mask: 255.255.255.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:93 errors:0 dropped:0 overruns:0 frame:0
TX packets:93 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4410 (4.3 kiB) TX bytes:4410 (4.3 kiB)

When i ping gentoo (ping -c3 www.gentoo.org, I get an error message that states

ping: unknown host www.gentoo.org
Last edited by dr pepper on Wed Mar 17, 2010 12:41 am, edited 1 time in total.
Sigs are cool!
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Wed Mar 17, 2010 12:18 am

Assuming
  • /etc/hosts
  • /etc/conf.d/hostname
  • /etc/resolv.conf
  • /etc/conf.d/net
are configured as per the Gentoo Handbook, you can do it now (adjust to match your net.eth<number>):

Code: Select all

emerge dhcpcd
/etc/init.d/net.eth0 start
Check it with:

Code: Select all

ifconfig
Test it with:

Code: Select all

ping -c3 www.gentoo.org
Top
dr pepper
n00b
n00b
Posts: 4
Joined: Tue Mar 16, 2010 11:44 pm

  • Quote

Post by dr pepper » Wed Mar 17, 2010 12:29 am

i think i may have made an error when I configurated /etc/conf.d/net because it is configurated like:

config_eth0=( "192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" )
routes_eth0=( "default via 192.168.0.1" )

but when i look at my ip config in windows i get:

IP adress 192.168.1.96
default gateway 192.168.1.254

how should my files be configurated if this they are incorrect
Sigs are cool!
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Wed Mar 17, 2010 1:10 am

Then it should be (assuming you are using stable Gentoo):

Code: Select all

config_eth0=( "192.168.1.2 netmask 255.255.255.0 brd 192.168.1.255" )
routes_eth0=( "default via 192.168.1.1" ) 
And /etc/resolv.conf should be

Code: Select all

nameserver 192.168.1.1
And /etc/hosts accordingly.

That's assuming that no other computer connected to the same router is using 192.168.1.2

In the case that it still doesn't work, then go ahead and use the same numbers as the windows box:

Code: Select all

config_eth0=( "192.168.1.96 netmask 255.255.255.0 brd 192.168.1.255" )
routes_eth0=( "default via 192.168.1.254" ) 
And /etc/resolv.conf

Code: Select all

nameserver 192.168.1.254
Top
96140
Retired Dev
Retired Dev
Posts: 1324
Joined: Sun Jan 23, 2005 9:18 pm

  • Quote

Post by 96140 » Wed Mar 17, 2010 2:32 am

--
Last edited by 96140 on Wed Sep 11, 2013 7:49 am, edited 1 time in total.
Top
dr pepper
n00b
n00b
Posts: 4
Joined: Tue Mar 16, 2010 11:44 pm

  • Quote

Post by dr pepper » Wed Mar 17, 2010 9:25 pm

when you say configure /etc/hosts accordingly, do you mean
192.168.1.2 localhost
::1 localhost

also with the alternetive liveCD method, i have deleted the tarballs as per the manuel. Must i download the tarballs and remount my hd to chroot into it?
Sigs are cool!
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Wed Mar 17, 2010 9:45 pm

/etc/hosts should have at least a line something like this (of course adjust hostname accordingly):

Code: Select all

 127.0.0.1 mybox.at.myplace mybox localhost
or even something like this:

Code: Select all

127.0.0.1      localhost.localdomain    localhost
192.168.1.2    mybox.at.myplace         mybox
192.168.1.3    otherbox.at.myplace      otherbox
I'm not quite sure if you need any ipv6 configuration. You do if you know that you do.
Top
dr pepper
n00b
n00b
Posts: 4
Joined: Tue Mar 16, 2010 11:44 pm

  • Quote

Post by dr pepper » Wed Mar 17, 2010 10:01 pm

bear with my lack of knowledge, but how do i find my domain domain name, mybox...
are they just the names of my router and my dsl box
does my connection-specific DNS Suffix matter?
Sigs are cool!
Top
eXess
Apprentice
Apprentice
Posts: 243
Joined: Sun Aug 17, 2003 2:21 pm
Location: Belgium

  • Quote

Post by eXess » Fri Mar 19, 2010 2:12 pm

"myplace" and "localdomain" stand for local domain.
The name of this lomain depends on your need to match existing Windows domains / workgroups.
If you do, use correct names. Otherwise, "local" or anything seems fine.
It's set (by you) in /etc/conf.d/net

"mybox" stands for the name you decide to give to your machine.
It must (should?) be unique on the local network and respect classic naming conventions (no spaces, etc).
It's set (by you) in /etc/conf.d/hostname

To set all this, read : http://www.gentoo.org/doc/en/handbook/h ... #doc_chap2

Hope this helps.
. . . . . . . .
eXess
Top
Post Reply

9 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic