pogo V2 adding USB/ethernet dongle

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

pogo V2 adding USB/ethernet dongle

Postby g8jvm » Wed May 14, 2014 4:38 pm

Hi
added a second ethernet port as I need it to route.
dynamic ifconfig settings look OK using eth1

I'm guessing that a file " eth1 " needs to be added to /etc/netctl
the example file $this->bbcode_second_pass_code('', 'Description='A basic static ethernet connection'
Interface=eth0
Connection=ethernet
IP=static
Address=('192.168.1.23/24' '192.168.1.87/24')
#Routes=('192.168.0.0/24 via 192.168.1.2')
Gateway='192.168.1.1'
DNS=('192.168.1.1')

## For IPv6 autoconfiguration
#IP6=stateless

## For IPv6 static address configuration
#IP6=static
#Address6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
#Routes6=('abcd::1234')
#Gateway6='1234:0:123::abcd'
')

As the IP address for eth0 is asigned dynamically, it will always be 192.168.101.13 as thats reserved in the router
router address =192.168.101.1
So the routing doesn't get screwed up if the router mises its reserved address and gives it something else
can I do this
$this->bbcode_second_pass_code('', 'Description='A basic static ethernet connection'
Interface=eth1
Connection=ethernet
IP=static
Address=('192.168.100.1')
Routes=('192.168.100.0/24 via eth1')
Routes=('0.0.0.0/8 via eth0')
Gateway=eth0
DNS=('192.168.101.1')

## For IPv6 autoconfiguration
#IP6=stateless

## For IPv6 static address configuration
#IP6=static
#Address6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
#Routes6=('abcd::1234')
#Gateway6='1234:0:123::abcd'
')

I'm not sure why the addresses are in brackets ??????
AND the routing doesn't look right to me,
whats wanted is anything on subnet 192.168.100.0 out on eth1
everything else out through eth0, (default route)
TIA
Best wishes
Richard
richard@g8jvm.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ham Call: G8JVM , QRA IO82SP38 interests weak signal propagation
VHF to microwave, http://www.g8jvm.com
g8jvm
 
Posts: 93
Joined: Mon Apr 22, 2013 4:40 pm
Location: United Kingdom

Re: pogo V2 adding USB/ethernet dongle

Postby WarheadsSE » Wed May 14, 2014 5:20 pm

Here is the wiki page: https://wiki.archlinux.org/index.php/Netctl
And the manual explains all the reason for the formatting of the profiles.

You're on the right track, though
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: pogo V2 adding USB/ethernet dongle

Postby g8jvm » Thu May 15, 2014 8:25 am

Thanks,
I've read the sections on netctl and routing and note the section on uname and making sure the interfaces are correctly named on boot up.
in the section
$this->bbcode_second_pass_code('', '/etc/udev/rules.d/10-network.rules

SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="aa:bb:cc:dd:ee:ff", NAME="net1"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="ff:ee:dd:cc:bb:aa", NAME="net0"
')
Is there any reason why the name shouldn't be eth0 and eth1
TIA
Best wishes
Richard
richard@g8jvm.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ham Call: G8JVM , QRA IO82SP38 interests weak signal propagation
VHF to microwave, http://www.g8jvm.com
g8jvm
 
Posts: 93
Joined: Mon Apr 22, 2013 4:40 pm
Location: United Kingdom

Re: pogo V2 adding USB/ethernet dongle

Postby g8jvm » Thu May 15, 2014 5:39 pm

Its definately not playing !
$this->bbcode_second_pass_code('', '-- Unit netctl@eth1.service has begun starting up.
May 15 18:26:28 Pogopig network[472]: Starting network profile 'eth1'...
May 15 18:26:28 Pogopig network[472]: The interface of network profile 'eth1' is already up
May 15 18:26:28 Pogopig systemd[1]: netctl@eth1.service: main process exited, code=exited, status=1/FAILURE
May 15 18:26:28 Pogopig systemd[1]: Failed to start Networking for netctl profile eth1.
-- Subject: Unit netctl@eth1.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit netctl@eth1.service has failed.
--
-- The result is failed.
')

But
that was from
#netctl restart eth1
It also does exactly the same if i pull eth1 down before starting again.

/etc/netctl/eth1
$this->bbcode_second_pass_code('', '[root@Pogopig ~]# cat /etc/netctl/eth1
Description='A basic static ethernet connection'
Interface=eth1
Connection=ethernet
IP=static
Address='192.168.100.1'
#Routes=('0.0.0.0/8' via eth0)
Gateway=eth0
DNS=('192.168.101.1')
')

if I use ifconfig eth1 192.168.100.1 up

the address is accepted and it can be pinged from a device on that port.

rebooting has no effect on this, I haven't set up ip forwading yet until the port will come up on its own.
dnsmasq works OK on that port.


it seems daft putting a switch on the line when the pogopig can be used as a 2 port router, only 2 ports are needed .
Best wishes
Richard
richard@g8jvm.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ham Call: G8JVM , QRA IO82SP38 interests weak signal propagation
VHF to microwave, http://www.g8jvm.com
g8jvm
 
Posts: 93
Joined: Mon Apr 22, 2013 4:40 pm
Location: United Kingdom


Return to User Questions

Who is online

Users browsing this forum: No registered users and 23 guests