Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OPGELOST] netwerk - wil eth1 niet gebruiken :(
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Dutch
View previous topic :: View next topic  
Author Message
roxxe
n00b
n00b


Joined: 04 Apr 2005
Posts: 6

PostPosted: Mon Apr 04, 2005 12:07 pm    Post subject: [OPGELOST] netwerk - wil eth1 niet gebruiken :( Reply with quote

juist een stage3 geinstalleerd, alles volgens het boekje

m'n conf.d/net :
m'n eth0 werkt via dhcp

Code:
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# 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"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
#dhcpcd_eth0=""
#iface_eth1="dhcp"
#dhcpcd_eth1=""

# For adding aliases to a interface
#
alias_eth0="192.168.0.3 192.168.0.4"
#alias_eth1="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"
#broadcast_eth1="192.168.0.255 192.168.0.255"
#netmask_eth1="255.255.255.0 255.255.255.0"


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

m'n eth0 = ethernet netwerkkaart
eth1 = wifi maar die gebruik ik niet

'k deed dan
Code:
rc-update add net.eth0 default

na reboot kon ik inloggen en probeerde "emerge --sync" uit, maar ie problemen, ook ping en zo werkt niet
'k deed dan ifconfig en ie gaf enkel m'n localloop of zo terug
"ifconfig eth0" gaf wel een ip terug

wat zou er nog ontbreken?
erg bedankt
Back to top
View user's profile Send private message
Vulpes_Vulpes
Apprentice
Apprentice


Joined: 10 Dec 2003
Posts: 264
Location: Amsterdam

PostPosted: Mon Apr 04, 2005 12:16 pm    Post subject: Re: netwerk - wil eth1 niet gebruiken :( Reply with quote

Hier vertel je de nic wel IP adres hij heeft enz. Jij wil DHCP gebruiken dus kan je deze lijn commenten.
roxxe wrote:
juist een stage3 geinstalleerd, alles volgens het boekje
m'n conf.d/net :
...
# 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"

Hier stel je in dat je DHCP wilt gebruiken. Laten staan dus. ;)
roxxe wrote:

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
#dhcpcd_eth0=""
#iface_eth1="dhcp"
#dhcpcd_eth1=""
...

Waarom wil je je kaart een alias geven?
roxxe wrote:

# For adding aliases to a interface
#
alias_eth0="192.168.0.3 192.168.0.4"
#alias_eth1="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"
#broadcast_eth1="192.168.0.255 192.168.0.255"
#netmask_eth1="255.255.255.0 255.255.255.0"

DHCP regelt je default gateway, dus commenten! :)
roxxe wrote:

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


Succes!
Back to top
View user's profile Send private message
roxxe
n00b
n00b


Joined: 04 Apr 2005
Posts: 6

PostPosted: Mon Apr 04, 2005 12:20 pm    Post subject: Reply with quote

oh ok erg bedankt
daar mochten ze in de handleiding toch wel duidelijker over zijn :oops: :twisted:

btw wat is het voor/nadeel van een alias?
Back to top
View user's profile Send private message
Vulpes_Vulpes
Apprentice
Apprentice


Joined: 10 Dec 2003
Posts: 264
Location: Amsterdam

PostPosted: Mon Apr 04, 2005 12:29 pm    Post subject: Reply with quote

roxxe wrote:
oh ok erg bedankt
daar mochten ze in de handleiding toch wel duidelijker over zijn :oops: :twisted:

btw wat is het voor/nadeel van een alias?


Volgens mij kan je een alias gebruiken om verschillende ip adressen naar verschillende services op je server te laten verwijzen. Dus bijvoorbeeld: 192.168.0.3 is de webserver en 192.168.0.4 de ftp server enz... Alleen heb je dan maar een nic nodig. Als je gewoon een thuisnetwerkje hebt heb je dit in princiepe niet nodig. Ik zou het gewoon commenten.
Back to top
View user's profile Send private message
roxxe
n00b
n00b


Joined: 04 Apr 2005
Posts: 6

PostPosted: Mon Apr 04, 2005 1:04 pm    Post subject: Reply with quote

ok thanx voor alles, emerging kde op het moment :p
Back to top
View user's profile Send private message
Zuti
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2003
Posts: 123
Location: The Netherlands

PostPosted: Mon Apr 04, 2005 1:14 pm    Post subject: Reply with quote

Alias is bedoeld om extra IP's aan een netwerk kaart toe te wijzen.
Back to top
View user's profile Send private message
abcdefg
Apprentice
Apprentice


Joined: 29 Feb 2004
Posts: 216
Location: The Netherlands

PostPosted: Mon Apr 04, 2005 2:26 pm    Post subject: Reply with quote

Zou ik je mogen aanraden om in de toekomst [ code] [/code ] blokken te gebruiken om de config bestanden in te zetten en de commentaar/lege regels eruit te filteren, leest wat makkelijker :)

Zo laat je het bestand zien zonder commentaar en lege regels:
Code:
cat /etc/conf.d/net | egrep -v '^$|^#'
Back to top
View user's profile Send private message
racoontje
Veteran
Veteran


Joined: 19 Jul 2004
Posts: 1290

PostPosted: Tue Apr 05, 2005 7:56 am    Post subject: Reply with quote

En graag [SOLVED] vooraan in je titel zetten als je probleem opgelost is ;-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Dutch 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