Solved-How do I add eth1 ?

Ask questions about Arch Linux ARM. Please search before making a new topic.

Solved-How do I add eth1 ?

Postby jeajea » Tue Mar 05, 2013 11:01 pm

I currently have two subnets. One is all wired and the second has both wired and wirelessly connected devices. I want to connect a Dockstar to both subnets using a USB wired Ethernet adapter for the second connection. I need to add eth1 so that netcfg will start both eth0 and eth1 automatically. I have created a profile for eth1. What else do I need to add/change?
Last edited by jeajea on Wed Mar 06, 2013 10:56 pm, edited 1 time in total.
Jim Anderson
3 Dockstars, 3 Pogoplug V2 and a Zyxel NSA325
Treasure Island, Fl
jeajea
 
Posts: 121
Joined: Wed Aug 25, 2010 4:00 pm

Re: How do I add eth1 ?

Postby pepedog » Tue Mar 05, 2013 11:59 pm

Edit /etc/conf.d/netcfg
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: How do I add eth1 ?

Postby jeajea » Wed Mar 06, 2013 12:20 am

What is the syntax?
WIRED_INTERFACE="eth0",”eth1”
WIRED_INTERFACE="eth0" ”eth1”
WIRED_INTERFACE=("eth0" ”eth1”)
Or ?
I don’t want to accidentally kill eth0.
Jim Anderson
3 Dockstars, 3 Pogoplug V2 and a Zyxel NSA325
Treasure Island, Fl
jeajea
 
Posts: 121
Joined: Wed Aug 25, 2010 4:00 pm

Re: How do I add eth1 ?

Postby pepedog » Wed Mar 06, 2013 1:42 am

It's the network= line
The filenames in /etc/network.d/ that describe the 2 interfaces (use example folder for templates) go there.
I'm not online but it's something like
Network="filename1 filename2"
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: How do I add eth1 ?

Postby jeajea » Wed Mar 06, 2013 10:55 pm

Thanks
It works :D :D
Here is my new networks line in /etc/conf.d/netcfg

NETWORKS=(wired-eth0 wired-eth1 air3)

I also discovered (or maybe rediscovered) that you can’t specify a gateway for the second interface. The third profile “air3” is for wlan0.
Jim Anderson
3 Dockstars, 3 Pogoplug V2 and a Zyxel NSA325
Treasure Island, Fl
jeajea
 
Posts: 121
Joined: Wed Aug 25, 2010 4:00 pm

Re: Solved-How do I add eth1 ?

Postby pepedog » Thu Mar 07, 2013 12:42 am

You could have POST_UP line on second interface to mess with routes
eg
POST_UP="command1 ; command2"
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK


Return to User Questions

Who is online

Users browsing this forum: No registered users and 2 guests

cron