Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
help to connect to net
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
falcrow
n00b
n00b


Joined: 11 Dec 2007
Posts: 1

PostPosted: Tue Dec 11, 2007 8:22 pm    Post subject: help to connect to net Reply with quote

hi im a newbie..i installed gentoo from a livecd with networkless feature..i want to connect to net using linux .. in windows i can do it.xD
some people told me to check these

#ifconfig
eth1 Link encap:Ethernet HWaddr 00:1B:24:73:23:3F
UP BROADCAST NOTRAILERS 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)
Interrupt:17 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask 255.0.0.0
inet6 addr: ::1/128 Scope:Host
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:784 (784.0 b) TX bytes:784 (784.0 b)

#vi /etc/conf.d/net
config_eth1=("192.168.1.237")
dhcpcd_eth1=""

#vi /etc/resolv.conf
nameserver 192.168.0.1
#/etc/init,d/net.eth1 restart
* Stopping eth1
* Bringing down eth1
* Shutting down eth1 ...
* Starting eth1
* Bringing up eth1
* dhcp
* Running dhcpcd ...
Error,timed out waiting for a valicd DHCP server responce
* 192.168.1.237

can u plz help me set things right ....
thanking you...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Tue Dec 11, 2007 8:38 pm    Post subject: Reply with quote

falcrow,

Welcome to gentoo.

You are trying to have both a static and dynamic network setup

Code:
#vi /etc/conf.d/net
config_eth1=("192.168.1.237")
dhcpcd_eth1=""
also it looks like your static address, is not in the same subnet as your nameserver.

Code:
#vi /etc/resolv.conf
nameserver 192.168.0.1
while this can be made to work, its not something a home network needs.

Use either static settings or dynamic - there is no need for you to mix them.
To change to dynamic (all dhcpcd), comment out everything in your /etc/conf.d/net file. dhcpcd is the defualt and it should just work when the interface is stared.

To change to all static, find out what subnet your router uses and allocate yourself an IP in its subnet but outside of the range it serves for dhcp. Remove the dhcpcd_eth1=""

You will also need to add a default route. See /etc/conf.d/net.example
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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