SOLVED:two ethernet port and bridge on a pogoswineV2

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

SOLVED:two ethernet port and bridge on a pogoswineV2

Postby g8jvm » Wed May 21, 2014 4:56 pm

Hi, I've been told it should work, But its beating me at the moment.

eth0 dhcp, gets it address OK
eth1 comes up straight away with no address, even though its set up
BR0 is set to link eth0 and eth1
No matter what I try I cannot get eth1 to accept the address in /etc/netctl/eth1
its enables and the sym link is in
iplugd/iplugd.conf
is set for one interface eth0
I've tried pulling eth1 down, but not effect
netctl stop eth1
ifconfig eth1 down crashes the pogoplug

netctl start eth1, just give the error eth1 is already up
netctl start bridge crashes the system
ifconfig eth1 192.168.101.254 up chashes the pogopig

Cant get at at the moment as a last resort tried spilting the CAT5 to two pairs, but niether want to play now :)

Any ideas why eth1 is comming up at startup and why it wont shut down so netctl start eth1 will work.

ps ax showed two instances of iplugd one for each NIC: killed eth1 and sent a kill -SIGHUP eth0 pid.
still sits there !!!!!!!!!!!
Last edited by g8jvm on Thu May 22, 2014 6:24 pm, edited 1 time in total.
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: two ethernet port and bridge on a pogoswineV2

Postby pepedog » Wed May 21, 2014 6:43 pm

Do not do any config for eth1, only referenced if the bridge profile.
Disable any netctl or systemctl services to do with network
netctl enable bridge
That's it, btw the built in Ethernet does automatic reversal so you don't need hub or crossover cable
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: two ethernet port and bridge on a pogoswineV2

Postby g8jvm » Wed May 21, 2014 8:42 pm

OK
so delete /etc/netctl/eth1
will netctl disable eth1 remove the symlinks to systemd ?$this->bbcode_second_pass_code('', '
┌─[root@Pogopig]─[~]
└──> rm -rf /etc/netctl/eth1
┌─[root@Pogopig]─[~]
└──> netctl enable bridge
A unit file for profile 'bridge' already exists
┌─[root@Pogopig]─[~]
└──> netctl disable eth1
rm '/etc/systemd/system/multi-user.target.wants/netctl@eth1.service'
┌─[root@Pogopig]─[~]
└──> netctl start bridge
')

now my flashing cursor has stopped and it does talk anymore. :(

and opening up another terminal and trying to connect to it
$this->bbcode_second_pass_code('', 'richard@richard-laptop ~ $ ssh root@192.168.101.13
ssh: connect to host 192.168.101.13 port 22: No route to host
')

My router wasn;t happy either, I had to reboot , strange,

pogopig now just sitting there, been rebooted several times, I cant get a ping from it or get in to it now, it s doing something as the led on the USB stick is flashing

The only way I can do anything now is to mount the USB stick on this smachine and edit files
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: two ethernet port and bridge on a pogoswineV2

Postby pepedog » Wed May 21, 2014 8:56 pm

So you only changed BindsToInterfaces=(eth0 eth1) in the bridge profile?
A tip, if you plug in a USB keyboard you can type blind, ie login and carefully do things
Even a careful poweroff is helpful
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: two ethernet port and bridge on a pogoswineV2

Postby g8jvm » Wed May 21, 2014 9:14 pm

hi
/etc/netctl/bridge
$this->bbcode_second_pass_code('', 'Description="Bridge connection"
Interface=br0
Connection=bridge
BindsToInterfaces=(eth0 eth1)
IP=dhcp
## Ignore (R)STP and immediately activate the bridge
#SkipForwardingDelay=yes')
/etc/netctl/eth0
$this->bbcode_second_pass_code('', 'Description='A basic dhcp ethernet connection'
Interface=eth0
Connection=ethernet
IP=dhcp
## for DHCPv6
#IP6=dhcp
## for IPv6 autoconfiguration
#IP6=stateless

ExecUpPost='/usr/bin/ntpd -gq || true'
DhcpcdOptions='-A'
ExecUpPost='/usr/bin/ntpdate -u pool.ntp.org'
ExecUpPost='/usr/bin/ntpdate -u pool.ntp.org'')

nothing else in /etc/netctl/

I cant get at the logs, they wont open in GC or Gedit, where are the systemctl symlinks to enable services so I can at lest try and get in to it ?
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: two ethernet port and bridge on a pogoswineV2

Postby g8jvm » Wed May 21, 2014 9:50 pm

I've deleleted the symlinks for ifplugd eth1
and both the symlinks for bridge, but its not talking at all,
I can still login if I pull the USB stick, so not bricked,

But I cant get into it , it has not made a dhcp request, I dont have a serial cable either .
The install tar ball is still on the stick, unless anyones got any suggestion, I guess its reload the system :(
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: two ethernet port and bridge on a pogoswineV2

Postby pepedog » Wed May 21, 2014 10:22 pm

Not in front of a machine right now. If you fschk'd the drive and unmounted, can you get a USB keyboard? If so log in a minute after powering up, and type this
netctl enable bridge

Actually, dhcpcd eth0 could brung it up so you can ssh
And of course it's not bricked, you can format the drive and extract the rootfs if it's that bad
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: two ethernet port and bridge on a pogoswineV2

Postby g8jvm » Thu May 22, 2014 8:54 am

Maybe a bit of progress

when bridge is enabled eth0 is no longer the primary interface eth1 becomes that , and requests and address from the router.

anything connected to eth0 just gets ignored.
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: two ethernet port and bridge on a pogoswineV2

Postby pepedog » Thu May 22, 2014 9:46 am

This is good news
Is eth0 the built in port? As I said that interface is capable of connecting without hub or crossover cable.
If it's not that port, reverse entries in bridge file.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: two ethernet port and bridge on a pogoswineV2

Postby g8jvm » Thu May 22, 2014 10:24 am

I tried putting eth1 before eth0, made no difference.

Should I run netctl disable eth0 ?, , and eth0 is the built in port

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

Next

Return to User Questions

Who is online

Users browsing this forum: Google [Bot] and 12 guests