View previous topic :: View next topic |
Author |
Message |
eivfur n00b
Joined: 14 Jul 2003 Posts: 10
|
Posted: Mon Jul 14, 2003 10:33 pm Post subject: network configurtaion |
|
|
I hav installed gentoo , but i havent configured my network connection. I want to do this. I know the: dns server adress, network mask,gateway and my ip adress, but i dont know how to configure the network so i can get connected to internet. |
|
Back to top |
|
|
slartibartfasz Veteran
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Mon Jul 14, 2003 10:38 pm Post subject: |
|
|
see sections 19, 20 and 21 in the installation guide - if u have problems with this ask again... _________________ To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be. |
|
Back to top |
|
|
eivfur n00b
Joined: 14 Jul 2003 Posts: 10
|
Posted: Mon Jul 14, 2003 10:45 pm Post subject: dnsdomainname and nisdomainname |
|
|
what is the difference between the dnsdomainname and nisdomainname?
i have the ip adress to the dns server is it this i should write into the dnsdomainname fil? |
|
Back to top |
|
|
devon l33t
Joined: 23 Jun 2003 Posts: 943
|
Posted: Mon Jul 14, 2003 10:52 pm Post subject: |
|
|
eivfur wrote: | i have the ip adress to the dns server is it this i should write into the dnsdomainname fil? |
You put the IP address(es) of your DNS server(s) into /etc/resolv.conf |
|
Back to top |
|
|
eivfur n00b
Joined: 14 Jul 2003 Posts: 10
|
Posted: Mon Jul 14, 2003 10:57 pm Post subject: gateway |
|
|
i have wrote the dns to resolv.conf. where do i write th gatway? |
|
Back to top |
|
|
slartibartfasz Veteran
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Mon Jul 14, 2003 11:07 pm Post subject: |
|
|
u have to edit /etc/conf.d/net _________________ To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be. |
|
Back to top |
|
|
eivfur n00b
Joined: 14 Jul 2003 Posts: 10
|
Posted: Mon Jul 14, 2003 11:39 pm Post subject: conf.d/net |
|
|
i have added thes e lines to the net file:
iface_eth0="192.168.0.33 broadcast 0.0.0.0 netmask 255.255.255.0"
gateway="eth0/192.168.0.44"
is this correct?
but when i run ifconfig eth0 it displays:
eth0
Link encap:Ethernet HWaddr 00:10:A7:17:01:53
BROADCAST 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:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Inbterrupt:5 Base adress:0x6000
what can be wrong? |
|
Back to top |
|
|
devon l33t
Joined: 23 Jun 2003 Posts: 943
|
Posted: Mon Jul 14, 2003 11:46 pm Post subject: |
|
|
The line
iface_eth0="192.168.0.33 broadcast 0.0.0.0 netmask 255.255.255.0"
Should read
iface_eth0="192.168.0.33 broadcast 192.168.0.255 netmask 255.255.255.0" |
|
Back to top |
|
|
eivfur n00b
Joined: 14 Jul 2003 Posts: 10
|
Posted: Tue Jul 15, 2003 12:02 am Post subject: ok done that |
|
|
have added 192.168.0.255 instead of 0.0.0.0 but ifconbfig eth0 displays the same info. |
|
Back to top |
|
|
devon l33t
Joined: 23 Jun 2003 Posts: 943
|
Posted: Tue Jul 15, 2003 12:09 am Post subject: |
|
|
obvious question Is there a cable plugged into the NIC? A green light should light on the NIC and/or the port you plug the NIC into indicating there is a link. |
|
Back to top |
|
|
eivfur n00b
Joined: 14 Jul 2003 Posts: 10
|
Posted: Tue Jul 15, 2003 12:13 am Post subject: the cable is ..... |
|
|
the cable is plugged in an there are lighting a green light on the nic and one green light on the switch |
|
Back to top |
|
|
devon l33t
Joined: 23 Jun 2003 Posts: 943
|
Posted: Tue Jul 15, 2003 12:19 am Post subject: |
|
|
Okay. Did you restart eth0 after fixing your broadcast address? Do "/etc/init.d/net.eth0 restart". |
|
Back to top |
|
|
eivfur n00b
Joined: 14 Jul 2003 Posts: 10
|
Posted: Tue Jul 15, 2003 12:23 am Post subject: thanks for your help |
|
|
i hadnt started the net.eth0.
Thanks for your help everyone |
|
Back to top |
|
|
|