1 |
Worked great! |
2 |
Thanks very much. |
3 |
Todd |
4 |
|
5 |
On 07 Mar 2002 13:08:27 +0200 |
6 |
Martin Schlemmer <azarah@g.o> wrote: |
7 |
|
8 |
> On Thu, 2002-03-07 at 09:05, Todd Punderson wrote: |
9 |
> > Hello, |
10 |
> > After doing a update --world to upgrade about 2 months worth of |
11 |
> > packages, I ran into this problem. I was following the directions to set |
12 |
> > up multiple network cards. Here is what I have done so far and some |
13 |
> > snippets of my config files. |
14 |
> > |
15 |
> > I edited /etc/conf.d/net to look like this: (edited for clarity, the |
16 |
> > rest of the file is commented lines) |
17 |
> > |
18 |
> > iface_eth0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" |
19 |
> > iface_eth1="dhcp" |
20 |
> > dhcpcd_eth1="-R" |
21 |
> > |
22 |
> > NOTE: eth0 configures correctly on bootup. The drivers for the network |
23 |
> > card are also loaded properly. If I run dhcpcd manually, it works fine. |
24 |
> > |
25 |
> > I copied net.eth0 to net.eth1 as per the directions. |
26 |
> > >From net.eth1: |
27 |
> > if [ "`eval echo "\$\{iface_${IFACE}\}"`" != "dhcp" ] |
28 |
> > then |
29 |
> > eval /sbin/ifconfig "$IFACE" "\$iface_$IFACE" >/dev/null 2>&1 || return $? |
30 |
> > else |
31 |
> > eval /sbin/dhcpcd "\$\{dhcpcd_${IFACE}\}" "$IFACE" >/dev/null 2>&1 || return $? |
32 |
> > fi |
33 |
> > |
34 |
> > The problem is that net.eth1 will not start up as dhcp. I edited the |
35 |
> > net.eth1 to see what it was trying to do by throwing some echo's in just |
36 |
> > to see where it was...Everytime no matter what the setting is in |
37 |
> > conf.d/net, it will only hit the "then" off that if statement. I hacked |
38 |
> > the script to look like this: |
39 |
> > |
40 |
> > if [ "`eval echo "\$\{iface_${IFACE}\}"`" != "dhcp" ] |
41 |
> > then |
42 |
> > eval /sbin/dhcpcd -R eth1 >/dev/null 2>&1 || return $? |
43 |
> > else |
44 |
> > eval /sbin/ifconfig "$IFACE" "\$iface_$IFACE" >/dev/null 2>&1 || return $? |
45 |
> > fi |
46 |
> > |
47 |
> > This works for the time being, but I'd like to correct the root cause of |
48 |
> > the problem. While starting up, it says "Bringing eth1 up" so I know |
49 |
> > $IFACE has the correct value. But I am stumped as to why the rest isn't |
50 |
> > working. |
51 |
> > |
52 |
> > Any help is appreciated! |
53 |
> |
54 |
> Hiya there |
55 |
> |
56 |
> Looks like I made a slight "type-o" when I was fixing up the form of the |
57 |
> scripts. Anyhow, try the attatched version, and let me know. |
58 |
> |
59 |
> |
60 |
> Greetings, |
61 |
> |
62 |
> -- |
63 |
> Martin Schlemmer |
64 |
> Gentoo Linux Developer, Desktop Team |
65 |
> Cape Town, South Africa |
66 |
|
67 |
-- |
68 |
Todd Punderson <todd@××××××.net> |