Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ifconfig and DHCP.
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
White Star
n00b
n00b


Joined: 14 Jan 2004
Posts: 37

PostPosted: Wed Apr 28, 2004 7:00 am    Post subject: ifconfig and DHCP. Reply with quote

Okay. Long story short. I'd like to bring up this network card and have it use DHCP. The Gentoo scripts don't work, so I'd like to know how to go about using ifconfig or whatever else to bring it up and grab a DHCP service. Anyone know how to do that?
_________________
I am a born hunter and you are my prey. Can the deer defeat the wolf?
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Wed Apr 28, 2004 7:07 am    Post subject: Reply with quote

why wont the gentoo scripts work? any error msgs?

to start dhcp manually, run 'dhcpcd eth0'
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
White Star
n00b
n00b


Joined: 14 Jan 2004
Posts: 37

PostPosted: Wed Apr 28, 2004 7:33 am    Post subject: Reply with quote

Well, here's where the Gentoo scripts stand. In the Gentoo Handbook, it tells me to make a symlink to net.eth0 called net.eth1. Works for me. Run the script,

#/etc/init.d/net.eth1 start
* WARNING: "net.eth0" has already been started

Kay fine. Remove the link. So I thought, I'll just make a copy of net.eth0 and call it net.eth1. I changed both instances in the file where it said eth0 to eth1, and ran it.

* Could not get dependancy info for "net.eth1"!
* Could not get dependancy info for "net.eth1"!
* Bringing up eth1
* Failed to bring up eth1 [!!]

So that was the end of that one.
Also that dhcpcd eth1, that worked just fine. Thank you very very much for that.
_________________
I am a born hunter and you are my prey. Can the deer defeat the wolf?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Apr 28, 2004 8:04 am    Post subject: Reply with quote

White Star wrote:
Well, here's where the Gentoo scripts stand. In the Gentoo Handbook, it tells me to make a symlink to net.eth0 called net.eth1. Works for me. Run the script,

#/etc/init.d/net.eth1 start
* WARNING: "net.eth0" has already been started


You don't get that (or shouldn't) when you create a soft link instead of a hard link
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
ynef
n00b
n00b


Joined: 14 Jan 2004
Posts: 69
Location: Lund, Sweden

PostPosted: Wed Apr 28, 2004 8:05 am    Post subject: Reply with quote

White Star wrote:
Well, here's where the Gentoo scripts stand. In the Gentoo Handbook, it tells me to make a symlink to net.eth0 called net.eth1. Works for me. Run the script,

#/etc/init.d/net.eth1 start
* WARNING: "net.eth0" has already been started

Kay fine. Remove the link. So I thought, I'll just make a copy of net.eth0 and call it net.eth1. I changed both instances in the file where it said eth0 to eth1, and ran it.

* Could not get dependancy info for "net.eth1"!
* Could not get dependancy info for "net.eth1"!
* Bringing up eth1
* Failed to bring up eth1 [!!]

So that was the end of that one.
Also that dhcpcd eth1, that worked just fine. Thank you very very much for that.

Is your configuration for net.eth1 correct in /etc/conf.d/net ?
Back to top
View user's profile Send private message
White Star
n00b
n00b


Joined: 14 Jan 2004
Posts: 37

PostPosted: Wed Apr 28, 2004 8:25 am    Post subject: Reply with quote

First things first..

To UberLord:
I don't think I quite follow as to the differences between soft and hard link, however it was the link that I was told to do in the Gentoo Handbook, which if I remember correctly was ln -s. I do remember I checked it the other day when I was goin all out, trying to make sure I was doing things correctly.

To ynef:
I tried a couple of different configurations in /etc/conf.d/net. First I tried the manual setting:

iface_eth1="10.0.0.13 broadcast 10.0.0.255 netmask 255.255.255.0"

Then the dhcp setting:

iface_eth1="dhcp"

Neither setting liked me. :( Makes me feel abandoned and unloved.
_________________
I am a born hunter and you are my prey. Can the deer defeat the wolf?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Apr 28, 2004 8:37 am    Post subject: Reply with quote

You can always run /sbin/depscan.sh to fix any dependancy errors
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
White Star
n00b
n00b


Joined: 14 Jan 2004
Posts: 37

PostPosted: Wed Apr 28, 2004 8:56 am    Post subject: Reply with quote

Neet. Does that tell me if it changed anything or not, like in a log file or something?
_________________
I am a born hunter and you are my prey. Can the deer defeat the wolf?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Apr 28, 2004 9:01 am    Post subject: Reply with quote

I don't know :oops:
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Davitelj
n00b
n00b


Joined: 23 Jan 2004
Posts: 13
Location: Beograd

PostPosted: Wed Apr 28, 2004 4:38 pm    Post subject: Reply with quote

Is the eth1 interface even reckonized? check it in dmesg,
_________________
Nemanja Jakovljevic
www.jakovljevic.net
+381(64)1782230
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