You are not logged in.
Pages: 1
EDIT: I'VE CHANGED THE TITLE FROM setting up dual nic's for a local pulseaudio sink TO setting up dual nic's
Because it makes more sense that the two lines of questions are separated
Hi,
Hope that I can get a little help here.
I am trying to setup a pulseaudio network sink so I can stream audio from my other devices in the house and have it output on the sound system setup to my rig.
This is my setup.
Eth0: connects directly to the internet with a static ip. 82.211.225.xxx
Eth1: connects to my local lan 192.168.0.xxx
I have made a new profile for eth1 in /etc/network.d/ called eth1
CONNECTION='eth1'
DESCRIPTION='eth1 for local network sink'
INTERFACE='eth1'
ADDR='192.168.0.2'
#ROUTES=('192.168.0.0/24 via 192.168.0.1')
GATEWAY='192.168.0.1'
#DNS=('8.8.8.8')
I have then added the profile to /etc/conf.d/netcfg
NETWORKS=(eth0 eth1)
WIRED_INTERFACE="eth0 eth1"
I know that I now have to setup some routes but I am unsure how.
Also as soon as I physically installed the new network interface to my rig (eth1) eth0 stopped to work.
let me know what info i need to provide
route -n gives me
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 82.211.225.1 0.0.0.0 UG 0 0 0 eth0
82.211.225.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Last edited by odp (2013-08-10 20:42:52)
Offline
A couple of things to start with: netcfg is dead, use netctl. And for multiple network devices, use the (not-so-)new persistent device naming functionality provided by systemd. Both are documented in the wiki.
And just for my own curiosity, why are you connected directly to the internet? Do you not have a router? It would definitely simplify things for you.
Offline
thanks for the hints, I couldnt really find anything recent
Well I do but its wack and only suitable for my wifi. nat/pat is not supported (its a Jensen router one my GF brought from her appartment when we moved together)
I also have an Astaro Security Gateway , but its too noisy to have running in a little appartment hehehe, GF would kill me.
Offline
hmm i guess im still running netcfg. so I need to update to netctl
I get this though when runnning pacman -S netctl
error: failed to commit transaction (conflicting files)
netctl: /usr/bin/wifi-menu exists in filesystem
netctl: /usr/lib/network/connections/bond exists in filesystem
netctl: /usr/lib/network/connections/bridge exists in filesystem
netctl: /usr/lib/network/connections/ethernet exists in filesystem
netctl: /usr/lib/network/connections/pppoe exists in filesystem
netctl: /usr/lib/network/connections/tunnel exists in filesystem
netctl: /usr/lib/network/connections/tuntap exists in filesystem
netctl: /usr/lib/network/connections/vlan exists in filesystem
netctl: /usr/lib/network/connections/wireless exists in filesystem
netctl: /usr/lib/network/globals exists in filesystem
netctl: /usr/lib/network/network exists in filesystem
netctl: /usr/lib/network/rfkill exists in filesystem
will I not loose connection if i pacman -R netcfg first?
Last edited by odp (2013-08-09 14:32:05)
Offline
I couldnt really find anything recent
Where were you looking??
will I not loose connection if i pacman -R netcfg first?
No - pacman will simply follow your instruction and remove the netcfg package from your system.
You should, of course, be able to set up your net connection manually, in case of mishaps, but you should know how to do that anyway, not just for this operation.
General question - is your system way out of date?
Offline
well if I google linux dual nics or arch dual nics i get tuts and posts using netcfg.
No my system is not way out of date, though the netctl update must have passed over my head.
netctl is now installed no problem, just wanted to know if i would be locked out over ssh, you feel me?
Last edited by odp (2013-08-10 11:46:43)
Offline
Sorry, I feel nothing.
Try that last sentence again, I can't figure it out.
Offline
try again
Offline
I have created a new profile for eth0 to start with in /etc/netctl/ called eth0
Description='A basic static ethernet connection using iproute'
Interface=eth0
Connection=ethernet
IP=static
Address=('82.211.226.183/24')
#Routes=('192.168.0.0/24 via 192.168.1.2')
Gateway='82.211.226.1'
DNS=('8.8.8.8')
then I start by stopping the the net-auto-wired.service profile
systemctl stop net-auto-wired.service
I executes without problems but if I do systemctl --type=service it shows up as,
UNIT LOAD ACTIVE SUB DESCRIPTION
net-auto-wired.service error failed failed net-auto-wired.service
furthermore if I then try to start the new profile I created, netctl start eth0
the same happens
UNIT LOAD ACTIVE SUB DESCRIPTION
net-auto-wired.service error failed failed net-auto-wired.service
netctl@eth0.service loaded failed failed Networking for netctl profile eth0
so i rebooted, and started the profile and it worked. So I enabled it
Now I will do the same with eth1 so I have a question in that regard.
Is there a way to make sure that eth0 is always nic with mac xx.xx.xx.xx.xx.xx and eth1 mac yy.yy.yy.yy.yy.yy ?
Second, how will I proceed to make the correct routing so eth1 will be a part of the local network (192.168.0.0/24) but my computer will use eth0(82.211.225.0/24) for internet connectivity?
Last edited by odp (2013-08-10 13:28:43)
Offline
Is there a way to make sure that eth0 is always nic with mac xx.xx.xx.xx.xx.xx and eth1 mac yy.yy.yy.yy.yy.yy ?
Since I could not find anything for this scenario in man netctl.profile, should I create an udev rule - /etc/udev/rules.d/70-network.rules or use the existing 80-net-name-slot.rules
and follow this convention?
SUBSYSTEM=="net", ATTR{address}=="ab:cd:ef:12:34:56", NAME="eth0"
SUBSYSTEM=="net", ATTR{address}=="65:43:21:fe:dc:ba", NAME="eth1"
Offline
That was exactly what I had to do
Offline
As I mentioned above, you should be using systemd's persistent network device naming functionality, which s designed for your exact use case.
Offline
show me
Offline
well needless to say, while I now have connectivity on eth1 to the local network I will try to figure out this pulseaudio thing
Last edited by odp (2013-08-12 23:04:45)
Offline
Pages: 1