SOLVED:two ethernet port and bridge on a pogoswineV2

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

Re: two ethernet port and bridge on a pogoswineV2

Postby pepedog » Thu May 22, 2014 10:51 am

$this->bbcode_second_pass_quote('g8jvm', 'I') tried putting eth1 before eth0, made no difference.

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

TIA

Yes, only bridge profile required
$this->bbcode_second_pass_code('', '# netctl enable bridge
(which outputs this)
ln -s '/etc/systemd/system/netctl@bridge.service' '/etc/systemd/system/multi-user.target.wants/netctl@bridge.service'')
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 11:12 am

my last posting went missing ???

rebooed with eth 1 connected to the router and eth0, built in port connected to the sat box .

dhcp request sent to router from eth1 for pogo pig,
dhcp request forwarded to router fro sat box , issues x.x.x.8 to pig and x.x.x.5 to sat box.
then etho goes to down state and sat box reports cable unplugged.
$this->bbcode_second_pass_code('', '
ifconfig
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.101.8 netmask 255.255.255.0 broadcast 192.168.101.255
inet6 fe80::21a:eeff:fe00:497d prefixlen 64 scopeid 0x20<link>
ether 00:1a:ee:00:49:7d txqueuelen 0 (Ethernet)
RX packets 682 bytes 56738 (55.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 630 bytes 93436 (91.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth0: flags=4355<UP,BROADCAST,PROMISC,MULTICAST> mtu 1500
ether 00:25:31:04:97:78 txqueuelen 1000 (Ethernet)
RX packets 1337 bytes 141561 (138.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1459 bytes 1469020 (1.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 11

eth1: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
inet6 fe80::21a:eeff:fe00:497d prefixlen 64 scopeid 0x20<link>
ether 00:1a:ee:00:49:7d txqueuelen 1000 (Ethernet)
RX packets 2384 bytes 1598667 (1.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1975 bytes 234334 (228.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 11 bytes 1232 (1.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 11 bytes 1232 (1.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
')

dmesg
$this->bbcode_second_pass_code('', '
[ 16.223653] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[ 16.231871] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 16.239633] systemd[1]: Expecting device dev-ttyS0.device...
[ 16.259746] systemd[1]: Starting Remote File Systems.
[ 16.279700] systemd[1]: Reached target Remote File Systems.
[ 16.285399] systemd[1]: Expecting device sys-subsystem-net-devices-eth0.device...
[ 16.309706] systemd[1]: Expecting device sys-subsystem-net-devices-eth1.device...
[ 16.339754] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[ 16.348044] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 16.356119] systemd[1]: Starting Paths.
[ 16.379694] systemd[1]: Reached target Paths.
[ 16.384162] systemd[1]: Starting Encrypted Volumes.
[ 16.409694] systemd[1]: Reached target Encrypted Volumes.
[ 16.415288] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[ 16.449706] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 16.459255] systemd[1]: Starting Swap.
[ 16.479706] systemd[1]: Reached target Swap.
[ 16.484095] systemd[1]: Starting Root Slice.
[ 16.529743] systemd[1]: Created slice Root Slice.
[ 16.534580] systemd[1]: Starting User and Session Slice.
[ 16.559711] systemd[1]: Created slice User and Session Slice.
[ 16.565592] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[ 16.589706] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ 16.596793] systemd[1]: Starting Delayed Shutdown Socket.
[ 16.619703] systemd[1]: Listening on Delayed Shutdown Socket.
[ 16.625567] systemd[1]: Starting Device-mapper event daemon FIFOs.
[ 16.649702] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[ 16.656348] systemd[1]: Starting LVM2 metadata daemon socket.
[ 16.679701] systemd[1]: Listening on LVM2 metadata daemon socket.
[ 16.685960] systemd[1]: Starting udev Kernel Socket.
[ 16.709702] systemd[1]: Listening on udev Kernel Socket.
[ 16.715157] systemd[1]: Starting udev Control Socket.
[ 16.739702] systemd[1]: Listening on udev Control Socket.
[ 16.745236] systemd[1]: Starting Journal Socket.
[ 16.769703] systemd[1]: Listening on Journal Socket.
[ 16.774850] systemd[1]: Starting System Slice.
[ 16.799712] systemd[1]: Created slice System Slice.
[ 16.804771] systemd[1]: Started File System Check on Root Device.
[ 16.811007] systemd[1]: Mounting Temporary Directory...
[ 16.846449] systemd[1]: Starting system-netctl.slice.
[ 16.879862] systemd[1]: Created slice system-netctl.slice.
[ 16.885849] systemd[1]: Starting system-devmon.slice.
[ 16.909825] systemd[1]: Created slice system-devmon.slice.
[ 16.915838] systemd[1]: Starting system-netctl\x2difplugd.slice.
[ 16.949800] systemd[1]: Created slice system-netctl\x2difplugd.slice.
[ 16.956410] systemd[1]: Starting system-getty.slice.
[ 16.979720] systemd[1]: Created slice system-getty.slice.
[ 16.985244] systemd[1]: Starting system-serial\x2dgetty.slice.
[ 17.009726] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 17.016191] systemd[1]: Mounting POSIX Message Queue File System...
[ 17.049750] systemd[1]: Started Load Kernel Modules.
[ 17.054884] systemd[1]: Mounted FUSE Control File System.
[ 17.061885] systemd[1]: Starting udev Coldplug all Devices...
[ 17.092736] systemd[1]: Mounted Huge Pages File System.
[ 17.098177] systemd[1]: Mounting Debug File System...
[ 17.123702] systemd[1]: Mounted Configuration File System.
[ 17.143000] systemd[1]: Starting Apply Kernel Variables...
[ 17.162850] systemd[1]: Starting Setup Virtual Console...
[ 17.203220] systemd[1]: Started Set Up Additional Binary Formats.
[ 17.212800] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[ 17.252689] systemd[1]: Starting Journal Service...
[ 17.299789] systemd[1]: Started Journal Service.
[ 17.882044] systemd-udevd[84]: starting version 212
[ 18.119398] systemd-journald[71]: Received request to flush runtime journal from PID 1
[ 18.728048] dm9601 1-1.2:1.0 eth1: register 'dm9601' at usb-orion-ehci.0-1.2, Davicom DM96xx USB 10/100 Ethernet, 00:1a:ee:00:49:7d
[ 18.829947] usbcore: registered new interface driver dm9601
[ 19.438965] random: nonblocking pool is initialized
[ 21.940136] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 22.049806] Bridge firewalling registered
[ 22.090549] dm9601 1-1.2:1.0 eth1: link up, 100Mbps, full-duplex, lpa 0xCDE1
[ 22.133278] device eth1 entered promiscuous mode
[ 22.253180] device eth0 entered promiscuous mode
[ 22.343325] IPv6: ADDRCONF(NETDEV_UP): br0: link is not ready
[ 22.945020] br0: port 1(eth1) entered forwarding state
[ 22.950271] br0: port 1(eth1) entered forwarding state
[ 22.969734] IPv6: ADDRCONF(NETDEV_CHANGE): br0: link becomes ready
[ 23.686889] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[ 23.697830] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 23.710354] br0: port 2(eth0) entered forwarding state
[ 23.715544] br0: port 2(eth0) entered forwarding state
[ 37.999182] br0: port 1(eth1) entered forwarding state
[ 38.719120] br0: port 2(eth0) entered forwarding state
[ 55.721933] br0: port 2(eth0) entered disabled state
[ 56.833614] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
')

ip a
$this->bbcode_second_pass_code('', '
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc mq master br0 state DOWN group default qlen 1000
link/ether 00:25:31:04:97:78 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP group default qlen 1000
link/ether 00:1a:ee:00:49:7d brd ff:ff:ff:ff:ff:ff
inet6 fe80::21a:eeff:fe00:497d/64 scope link
valid_lft forever preferred_lft forever
4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 00:1a:ee:00:49:7d brd ff:ff:ff:ff:ff:ff
inet 192.168.101.8/24 brd 192.168.101.255 scope global br0
valid_lft forever preferred_lft forever
inet6 fe80::21a:eeff:fe00:497d/64 scope link
valid_lft forever preferred_lft forever
')

issued ifconfig eth0 up$this->bbcode_second_pass_code('', '
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc mq master br0 state DOWN group default qlen 1000
link/ether 00:25:31:04:97:78 brd ff:ff:ff:ff:ff:ff
')

Still down

and the led on the RJ45 connector are out so its definitely been pulled down, as reported by the sat box

where to now ?????

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: two ethernet port and bridge on a pogoswineV2

Postby g8jvm » Thu May 22, 2014 11:49 am

I've deleted the symlink in systemd
iplugd@eth0.service,

and now the sat box gets its address and stays connected :)


and just to see if it will function as wanted, the sat box is now on eth1 and the router connection on eth0

And that works, so it looks like now it doesn't matter which port is connected to the router :)
the culprit was ifplugd .

Whats strange is the br0 is using the MAC address of eth1$this->bbcode_second_pass_code('', '
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq master br0 state UP group default qlen 1000
link/ether 00:25:31:04:97:78 brd ff:ff:ff:ff:ff:ff
inet6 fe80::225:31ff:fe04:9778/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP group default qlen 1000
link/ether 00:1a:ee:00:49:7d brd ff:ff:ff:ff:ff:ff
inet6 fe80::21a:eeff:fe00:497d/64 scope link
valid_lft forever preferred_lft forever
4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 00:1a:ee:00:49:7d brd ff:ff:ff:ff:ff:ff
inet 192.168.101.8/24 brd 192.168.101.255 scope global br0
valid_lft forever preferred_lft forever
inet6 fe80::21a:eeff:fe00:497d/64 scope link
valid_lft forever preferred_lft forever
')

I can alter the reserved addreses in the router easily, but it would be nice if it used the MAC address of eth0, the built in port.
:D
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

Previous

Return to User Questions

Who is online

Users browsing this forum: No registered users and 20 guests