Gentoo Archives: gentoo-user

From: James <wireless@×××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Router 3rd and 4th net interface problem
Date: Thu, 28 Sep 2006 14:18:33
Message-Id: loom.20060928T155718-676@post.gmane.org
In Reply to: [gentoo-user] Router 3rd and 4th net interface problem by Grant
1 Grant <emailgrant <at> gmail.com> writes:
2
3
4 > I've added two ethernet cards and I'm trying to connect from another machine
5 > to one of the new cards (eth1 and eth2).
6
7 Hello Grant,
8
9 If you look at /etc/conf.d/net.example, you'll get some ideas.
10
11 I have a machine with (4) interfaces and here is what I use
12 for /etc/conf.d/net :
13
14
15 mac_eth0="00:50:DA:61:31:1C"
16 mac_eth1="00:48:54:62:64:FD"
17 mac_eth2="00:40:F4:D0:B1:96"
18 mac_eth3="00:48:54:62:64:FC"
19 iface_eth0="192.168.2.20 broadcast 192.168.3.255 netmask 255.255.255.0"
20 iface_eth1="192.168.3.11 broadcast 192.168.3.255 netmask 255.255.255.0"
21 iface_eth2="14.173.99.102 broadcast 14.173.99.103 netmask 255.255.255.252"
22 iface_eth3="192.168.4.11 broadcast 192.168.4.255 netmask 255.255.255.0"
23
24 I had troubles with the machine inconsistently assiging a given ip
25 address to a specific card. The 'mac' statements seem to nail this
26 down for me. The is for a single static IP address but there are
27 examples for dhcp in the /etc/conf.d/net.example file too.
28
29 Note, this experimental router is using the old syntax and is scheduled
30 for lots of upgrades, so I post it here, as an example that seemed to
31 work for the problems I encountered a year ago. I'd be open to other
32 ideas..... and comments.
33
34 hth && ymmv,
35 James
36
37 --
38 gentoo-user@g.o mailing list