Grant <emailgrant <at> gmail.com> writes:

> I've added two ethernet cards and I'm trying to connect from another machine
> to one of the new cards (eth1 and eth2). 

Hello Grant,

If you look at /etc/conf.d/net.example, you'll get some ideas.

I have a machine with (4) interfaces and here is what I use
for /etc/conf.d/net  :


mac_eth0="00:50:DA:61:31:1C"
mac_eth1="00:48:54:62:64:FD"
mac_eth2="00:40:F4:D0:B1:96"
mac_eth3="00:48:54:62:64:FC"
iface_eth0="192.168.2.20 broadcast 192.168.3.255 netmask 255.255.255.0"
iface_eth1="192.168.3.11 broadcast 192.168.3.255 netmask 255.255.255.0"
iface_eth2="14.173.99.102 broadcast 14.173.99.103 netmask 255.255.255.252"
iface_eth3="192.168.4.11 broadcast 192.168.4.255 netmask 255.255.255.0"

I had troubles with the machine inconsistently assiging a given ip
address to a specific card. The 'mac' statements seem to nail this
down for me. The is for a single static IP address but there are
examples for dhcp in the /etc/conf.d/net.example file too.

Note, this experimental router is using the old syntax and is scheduled 
for lots of upgrades, so I post it here, as an example that seemed to
work for the problems I encountered a year ago. I'd be open to other
ideas..... and comments.

hth && ymmv,
James

-- 
gentoo-user@gentoo.org mailing list

Reply via email to