Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Netzwerk geht nicht >dhcp [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Tammo
n00b
n00b


Joined: 12 Jun 2005
Posts: 22

PostPosted: Mon Jun 13, 2005 8:37 am    Post subject: Netzwerk geht nicht >dhcp [SOLVED] Reply with quote

hallo!

ich habe mein gentoo und kde soweit fertig aber das netzwerk geht noch nicht.
mein router vergibt die IPs automatisch. dhcp habe ich emerged.
ich kann halt nicht google.de oder gentoo.de anpingen..im browser geht das dann natürlich auch nicht.

hier meine /etc/conf.d/net
Code:

# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
iface_eth0="dhcp"
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"
# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
#gateway="eth0/192.168.0.1"




wäre gut wenn ihr mir helfen könnt!


gruß, tammo


Last edited by Tammo on Mon Jun 13, 2005 10:22 am; edited 1 time in total
Back to top
View user's profile Send private message
slick
Bodhisattva
Bodhisattva


Joined: 20 Apr 2003
Posts: 3495

PostPosted: Mon Jun 13, 2005 8:46 am    Post subject: Reply with quote

Tammo wrote:
dhcp habe ich emerged

dhcp ist der dhcp-server, den brauchst Du nicht. Du benötigt dhcpcd, den Client. Hast Du den?
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3943
Location: Hamburg

PostPosted: Mon Jun 13, 2005 9:08 am    Post subject: Reply with quote

Mit dem neuen baselayout nimm dies:
Code:

n22 /usr/src # cat /etc/conf.d/net
# net.eth0

config_eth0=( "dhcp" 192.168.0.2/24 )

dhcpcd_eth0="-t 15"
dhcp_eth0="release nontp"

Damit wird eth0 eine IP Adresse zugewiesen und gleichzeitig ein Alias auf eth0:1 angelegt mit statischer IP-Adresse 192.168.0.2 und Netzmaske 255.255.255.0, asußerdem wird /etc/resolv.conf automatisch angepaßt, aber die NTP-Konfiguration nicht verändert.

In Deiner Konfigurationsdatei könntest Du , wenn DU nur DHCP verwendest, die Zeile
Code:

iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"

auskommentieren. Es empfiehlt sich aber auch, dhcpcd_eth0="..." mit den entsprechenden Parametern zu füllen (z.B. -D -N -Y etc, siehe man dhcpcd).
Back to top
View user's profile Send private message
Tammo
n00b
n00b


Joined: 12 Jun 2005
Posts: 22

PostPosted: Mon Jun 13, 2005 9:25 am    Post subject: Reply with quote

also ich hab dhcpcd emerged und nu gehts. THX!
Back to top
View user's profile Send private message
slick
Bodhisattva
Bodhisattva


Joined: 20 Apr 2003
Posts: 3495

PostPosted: Mon Jun 13, 2005 9:56 am    Post subject: Reply with quote

Dann sei doch bitte so nett und setze den Thread auf [SOLVED]. Dann sehen die anderen gleich dass das Problem gelöst wurde und brauchen nicht mehr lesen. Ist besser für die Übersicht. Ich könnte das zwar auch machen, aber da Du noch relativ wenige Posts hast dachte ich mal ich weise Dich darauf hin (und außerdem kann man als "Außenstehender" immer schlecht beurteilen obs wirklich gelöst ist).

EDIT: @Anarcho :P


Last edited by slick on Mon Jun 13, 2005 9:57 am; edited 1 time in total
Back to top
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Mon Jun 13, 2005 9:56 am    Post subject: Reply with quote

Dann mach noch ein SOLVED in den Titel.
_________________
...it's only Rock'n'Roll, but I like it!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum