You are not logged in.

#1 2015-05-01 12:24:05

volumetricsteve
Member
Registered: 2014-09-08
Posts: 50
Website

goofy NIC setup

I've got a quad port nic and I'm hoping to get dhcp on each of the ports...the idea being to have each port issue addresses within the same subnet.

The overall plan is based on the idea that from my server (with the quad port nic) a user could walk up with their laptop, plug into one of the four ports and get a dhcp address that'd be in the same subnet as what the other ports would be available.

I'm also hoping that I can get each port to provide PXE booting but I thought I'd start with dhcp.

I've googled around for similar configurations but I keep finding things that are just different enough they don't really cover what I'm trying to do.
Thoughts?

Last edited by volumetricsteve (2015-05-01 12:27:35)

Offline

#2 2015-05-04 16:59:00

volumetricsteve
Member
Registered: 2014-09-08
Posts: 50
Website

Re: goofy NIC setup

I didn't connect the dots that what I was hoping to do was essentially make my NICs into a switch.

Explained roughly, here:
http://www.cyberciti.biz/faq/debian-net … eth1-eth2/

I got it working:

#! /bin/bash
mount -o loop,ro archlinux-2015.05.01-dual.iso /mnt/archiso
brctl addbr br0
brctl addif br0 enp0s8
brctl addif br0 enp0s9
brctl addif br0 enp0s10
brctl addif br0 enp0s17
brctl setfd br0 4
ip link set enp0s8 up
ip link set enp0s9 up
ip link set enp0s10 up
ip link set enp0s17 up
ip link set br0 up
ip addr add 192.168.0.1/24 dev br0
systemctl start dnsmasq
sudo -v
sudo darkhttpd /mnt/archiso &

So now, any client can attach to the 4 available nic ports...though it seems to go a little nuts if they all try to boot at once.  As long as booting is staggered, it's fine.  This is all based on the arch PXE documentation, not shown here.  I did all that stuff first, then ran this all from a script.

Last edited by volumetricsteve (2015-05-07 13:23:17)

Offline

Board footer

Powered by FluxBB