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