You are not logged in.

#1 2008-02-11 18:11:19

user1100100
Member
Registered: 2007-11-02
Posts: 13

Multiple NICs; Building Arch Router

Hi Group,

I know how to do this with Gentoo, but I'm new to Arch and was hoping to get a quick start down the path.

What's the best and/or procedurally correct way to add ethernet NICs to an Arch box.
I will install with 1 NIC just to make it simple and easy, but will add 2 more NICS to do routing to 2 different subnets on my network.

I know once the 2 additional nics are installed, I need the right nic driver/modules.
I also know how to configure them (i'll be using static ip's) using ifconfig.

But I'm not certain what files I need to edit to configure the other aspects of networking under Arch?
Is it rc.conf that needs additional entries?
Others too?

Thanks for your time and patience.

Offline

#2 2008-02-11 18:21:54

daf666
Member
Registered: 2007-04-08
Posts: 470
Website

Re: Multiple NICs; Building Arch Router

From my experience with Arch, just adding the new NICs to the motherboard and booting is enough, if its not some exotic hardware..
Then adding appropriate eth1, 2... lines to rc.conf
I recently installed an Arch router on a fit-PC.. working with it right now.. so cool smile

heres a pic of my Arch router beside my old 3com.. that died after firmware update mad

dsc00958ap7.jpg
By daf666, shot with DSC-W55 at 2008-02-11

Offline

#3 2008-02-11 18:31:21

user1100100
Member
Registered: 2007-11-02
Posts: 13

Re: Multiple NICs; Building Arch Router

daf666 wrote:

From my experience with Arch, just adding the new NICs to the motherboard and booting is enough, if its not some exotic hardware..
Then adding appropriate eth1, 2... lines to rc.conf

Hehe, no no, nothing exotic here, all standard and cheap.  :-)

Excellent, rc.conf and that's all.  This is helping me unclench my jaw, heh.


I recently installed an Arch router on a fit-PC.. working with it right now.. so cool smile

heres a pic of my Arch router beside my old 3com.. that died after firmware update mad

Very cool router setup; I've gotta take a look at these slim Fit jobbers.

Thanks a bunch for the speedy reply; huge help.

Offline

#4 2008-02-11 21:16:15

user1100100
Member
Registered: 2007-11-02
Posts: 13

Re: Multiple NICs; Building Arch Router

May I shoot for another since the last one was so easy for the Arch collective? :-)

Anyone have pointers, tips, or RTFM links for setting up DHCP when you have 2 subnet NICs.

Example:

eth0 - Internet/WAN
eth1 - Subnet/LAN  192.168.0.1
eth2 - Subnet/LAN  192.168.1.1

How do you get DHCP to give out addresses to 2 separate subnets in this example?

Thanks.

Offline

#5 2008-02-11 22:10:16

gorn
Member
Registered: 2008-02-01
Posts: 56

Re: Multiple NICs; Building Arch Router

The default /etc/dhcpd.conf contains an example for multiple subnets. It's easy.

Something like this though:

subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.100 192.168.0.255
  option routers 192.168.0.1;
}


subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.100 192.168.1.255
  option routers 192.168.1.1;
}

Offline

#6 2008-02-11 22:41:16

user1100100
Member
Registered: 2007-11-02
Posts: 13

Re: Multiple NICs; Building Arch Router

gorn wrote:

The default /etc/dhcpd.conf contains an example for multiple subnets. It's easy.

Shweet!  Thanks Mr. Gorn.

Offline

Board footer

Powered by FluxBB