You are not logged in.

#1 2008-03-01 23:13:49

Dogs1985
Member
Registered: 2008-03-01
Posts: 201

how do i auto load "dhcpcd eth1"?

i have network card in my pc, but i use usb modem for internet. i add eth1="dhcp" in rc.conf, every time i need to type in terminal "dhcpcd eth1" then i can get work my internet. is that edit anything can skip that step?

Offline

#2 2008-03-01 23:53:46

AlmaMater
Member
Registered: 2007-02-28
Posts: 97

Re: how do i auto load "dhcpcd eth1"?

a quick fix would be to add
dhcpcd eth1

to the file: rc.local

Offline

#3 2008-03-02 03:10:52

ebirtaid
Member
From: USA
Registered: 2007-11-18
Posts: 52

Re: how do i auto load "dhcpcd eth1"?

do you have network set in your daemons array?

Offline

#4 2008-03-02 12:28:51

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: how do i auto load "dhcpcd eth1"?

Silly question - did you add eth1 to the INTERFACES array in rc.conf?

Offline

#5 2008-03-02 19:15:09

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: how do i auto load "dhcpcd eth1"?

Cerebral wrote:

Silly question - did you add eth1 to the INTERFACES array in rc.conf?

I had the same silly question. smile

Offline

#6 2008-03-02 19:30:29

praxis
Member
Registered: 2008-01-30
Posts: 16

Re: how do i auto load "dhcpcd eth1"?

you should have something along the lines of this:

lo="lo 127.0.0.1"
eth1="dhcp"
INTERFACES="lo eth1"

Offline

#7 2008-03-02 20:13:03

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: how do i auto load "dhcpcd eth1"?

praxis wrote:

you should have something along the lines of this:

lo="lo 127.0.0.1"
eth1="dhcp"
INTERFACES="lo eth1"

Hrmm... no that's not quite it either... There's no need for 'lo' so you can ditch that along with the lo="blah" statement.  Also, the INTERFACES is an array declaration, so it should look like this:

eth0="dhcp"
INTERFACES=(eth0)

thayer williams ~ cinderwick.ca

Offline

#8 2008-03-04 01:30:10

rusty
Member
Registered: 2008-03-04
Posts: 9

Re: how do i auto load "dhcpcd eth1"?

As long as eth1 is listed before lo, then you should get auto connection
make sure that the same applies in INTERFACE, ie (eth1 lo) and not vice versa

Offline

#9 2008-03-04 07:05:13

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: how do i auto load "dhcpcd eth1"?

That is incorrect, rusty.

The order of network interface entries in /etc/rc.conf is irrelevant. Also, as already noted by thayer, lo is no longer required in /etc/rc.conf.

Offline

Board footer

Powered by FluxBB