1

Temat: bananaPI R2

przytuliłem  banaPI R2  - jako ze nie mam doswiadczenia z takimi  płytkami  mam pytanie
- podłaczyłem  zasilanie   
- podłaczyłem  sie serialem  w wyznaczonym miejscu na płytce 
- wciskam power
- migną 3 diody  i na terminalu cisza  nic nie leci
jak sprawdzić czy  płytka "żyje"   
dałem tak  w terminalu
picocom --baud 115200 --flow=none --parity=none --databits 8 /dev/ttyUSB0   
- coś powinno sie pokazac  chyba ??
sprawdzałem tez cutecom   tez cisza  -  podłaczełem sie wczesniej do routerów i działało

2

Odp: bananaPI R2

Najpierw zrób mu kartę z systemem. Coś tam się powinno pokazać.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: bananaPI R2

nie wiem  -  probowałem  wrzucac 3 razy  trzema sposobami  - albo ta karta  jest zjechana  albo  cos tu smierdzi  , zobacze jeszcze na innej karcie  tylko musze jeje poszukac  smile

4

Odp: bananaPI R2

dobra  jednak  karta  -  ruszyło  -  zobaczymy  co z tego będzie

5

Odp: bananaPI R2

do wyboru jest :

   ( ( ( OpenWrt ) ) )  [SD]    U-Boot 2021.10 (Dec 13 2021 - 12:48:08 +0000)

     1. Run default boot command.
     2. Boot system via TFTP.
     3. Boot production system from SD.
     4. Boot recovery system from SD.
     5. Load production system via TFTP then write to SD.
     6. Load recovery system via TFTP then write to SD.
     7. Install bootloader, recovery and production to eMMC.
     8. Reboot.
     9. Reset all settings to factory defaults.
     0. U-Boot console

no  to  tyle   wiem ze przynajmniej działa  smile
Jeszcze  jedno  - wgrywac na  pamiec wewnatrzna  ?  - czy potem  jeszcze trzeba  jakies zabiegi trzeba robic  w sumie jest 8GB

6

Odp: bananaPI R2

A  jak wolisz. Raczej na wewnętrznej jak masz możliwość.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: bananaPI R2

PS. Jak już się pobawisz to wgraj sobie na kartę openwrt i napisz jakąś recenzję jak to działa i jakie masz odczucia z zabawy z płytką. Zawsze się rozpisujemy o gotowych routerach a chyba trochę mało o SBC.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

8

Odp: bananaPI R2

Oczywiście , tym bardziej że info w sieci jest niby dużo ,a jednak można odczuć wrażenie że ogólnie to jakieś mity ,na plus , lub na minus. - możliwości  niby są spore , na pewno zdam relacje co działa a co nie działa itd.

9

Odp: bananaPI R2

odpaliłem openwrt - z oficjlnej strony z sd   .  problem jest taki ze nie dostaje adresu na lan z dhcp   -  wan mam podłaczony i mam internet na  BpR2   doinstalowałem  kilka pakietow     ale chyba nie ograniam tej nowej składni  ustawiałem tak  - zakładam ze źle hmm

root@OpenWrt:/tmp# cat /etc/config/network

config interface 'loopback'
    option device 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config globals 'globals'
    option ula_prefix 'fd44:aacf:b1ef::/48'

config device
    option name 'br-lan'
    option type 'bridge'
    list ports 'lan0'
    list ports 'lan1'
    list ports 'lan2'
    list ports 'lan3'

config interface 'lan'
    option device 'br-lan'
    option proto 'static'
    option ipaddr '192.168.3.1'
    option netmask '255.255.255.0'
    option ip6assign '60'      
    
config interface 'wan'
    option device 'wan'
    option proto 'dhcp'
     option ifname 'eth0'
    option proto 'static'
    option ipaddr '192.168.1.118'
    option netmask '255.255.255.0'
    option gateway '192.168.1.1'
    option dns '192.168.1.1'
    option macaddr 'cc:5D:4e:05:2d:e8'


config interface 'wan6'                   
        option device 'wan'               
        option proto 'dhcpv6' 
     

jak powinno byc prawidłowo  ?

root@OpenWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 56:42:01:A4:1B:C9  
          inet addr:192.168.3.1  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fd44:aacf:b1ef::1/60 Scope:Global
          inet6 addr: fe80::5442:1ff:fea4:1bc9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5322 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4364 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:458588 (447.8 KiB)  TX bytes:1938609 (1.8 MiB)

eth0      Link encap:Ethernet  HWaddr 56:42:01:A4:1B:C9  
          inet6 addr: fe80::5442:1ff:fea4:1bc9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1504  Metric:1
          RX packets:10230 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5327 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1626706 (1.5 MiB)  TX bytes:2051119 (1.9 MiB)
          Interrupt:50 

lan0      Link encap:Ethernet  HWaddr 56:42:01:A4:1B:C9  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan1      Link encap:Ethernet  HWaddr 56:42:01:A4:1B:C9  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan2      Link encap:Ethernet  HWaddr 56:42:01:A4:1B:C9  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan3      Link encap:Ethernet  HWaddr 56:42:01:A4:1B:C9  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5326 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4364 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:458796 (448.0 KiB)  TX bytes:1938609 (1.8 MiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1392 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1392 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:113238 (110.5 KiB)  TX bytes:113238 (110.5 KiB)

wan       Link encap:Ethernet  HWaddr CC:5D:4E:05:2D:E8  
          inet addr:192.168.1.118  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ce5d:4eff:fe05:2de8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4904 errors:0 dropped:0 overruns:0 frame:0
          TX packets:438 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:983770 (960.7 KiB)  TX bytes:31318 (30.5 KiB)

10

Odp: bananaPI R2

Składniowo jest dobrze, tak jak powinno być. Wywal tylko option ifname 'eth0' z wanu, tam tego ma nie być.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: bananaPI R2

tak   to było  to - teraz działa   dzięki  -  troche to potrwa  zanim to wszystko przetestuję  - puki co  to  podczas pracy płytki świeci zielona dioda - strasznie mecząca  - może później  bedzie szło  ją jakoś  przygasić

12

Odp: bananaPI R2

dodałem go do statystyk  ,  widać  pojawił się w statystykach  ,  jedna z ciekawostek  o której trzeba pamiętać

OK
Net:
Warning: ethernet@1b100000 (eth0) using random MAC address - 9a:e8:7f:38:98:b9
eth0: ethernet@1b100000

nie wiem czy to wada czy zaleta neutral  , po restarcie sie zminia wiec trzeba ustawić na sztywno

13

Odp: bananaPI R2

Tak ta platforma ma, nigdzie nie jest mac adres w niej przechowywany w jakimś flash. Zobacz opis https://github.com/openwrt/openwrt/comm … 2e45265aa7

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

14 (edytowany przez ad2014 2021-12-18 18:57:43)

Odp: bananaPI R2

dziś zrobiłem pierwsze test :  OpenWrt 5.10.83
podłączyłem dysk ssd do sata -  został od razu wykryty , oraz  zostały zrobione stosowne wpisy w fstab
kopiowanie  pliku iso 3,2GB   z tunera SAT  po lanie  FTP  zapis na Bpi R2  sata SSD -  predkosc 65 MB/s  przez MC   
kopiowanie filmu  7.18 GB ts.  - trwa tak szybko ze nie moge odczytać  predkosci z MC

NIE PO LANIE  źle napisałem   podłaczenie kablem  ale  przez NAT  bo  Bp  mam w 2 podsieci ( nie właczony flow offloading ) na razie

15

Odp: bananaPI R2

trochę się pobawiłem różnymi obrazami  i nie wygląda to zbyt ciekawie  - ale to jeszcze opiszę w podsumowaniu  a teraz  jestem w trakcie przygotowania  docelowego obrazu openwrt .  Po wybraniu fedsów  , dadałem jeszcze repo node-red   dostaje bład  ale  fedsy sie pobieraja 

 /home/adam/21.02/openwrt
Create index file './feeds/telephony.index' 
Collecting package info: done
Collecting target info: done
Updating feed 'node' from 'https://github.com/nxhack/openwrt-node-packages.git' ...
Cloning into './feeds/node'...
remote: Enumerating objects: 443, done.
remote: Counting objects: 100% (443/443), done.
remote: Compressing objects: 100% (348/348), done.
remote: Total 443 (delta 152), reused 243 (delta 13), pack-reused 0
Receiving objects: 100% (443/443), 137.95 KiB | 1.04 MiB/s, done.
Resolving deltas: 100% (152/152), done.
Create index file './feeds/node.index' 
Collecting package info: done
Collecting target info: done
/bin/sh: 1: 8: Bad file descriptor
Collecting package info: done
Collecting target info: done
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a build dependency on 'libpam', which does not exist
Installing all packages from feed packages.
Installing package 'acl' from packages
Installing package 'attr' from packages
Installing package 'acme' from packages
Installing package 'wget' from packages
Installing package 'socat' from packages
Installing package 'acpica-unix' from packages
Installing package 'acpid' from packages
Installing package 'acsccid' from packages
Installing package 'pcsc-lite' from packages
Installing package 'adblock' from packages
Installing package 'coreutils' from packages

to fragment  reszta leci normalnie
zanim zacznę kompilację chciałbym zapytać czy to może byc  istotne  ?  czy sie nie przejmować

16

Odp: bananaPI R2

Nie przejmuj się, zrób to jeszcze raz i się wszystko wygładzi.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

17

Odp: bananaPI R2

ok  dziek i  poszło  ale  trochę eksperementuje z tym obrazem - zaznaczyłem tez by zrobił :

 *** Root filesystem images ***                                                                                  │ │  
  │ │                                              [*] ext4  --->                                                                                                      │ │  
  │ │                                              [*] squashfs  --->                                                                                                  │ │  
  │ │                                              [*] GZip images                                                                                                     │ │  
  │ │                                                  *** Image Options ***                                                                                           │ │  
  │ │                                              (32) Boot (SD Card/eMMC) filesystem partition size (in MiB)                                                         │ │  
  │ │                                              (104) Root filesystem partition size (in MB)             

w ext4  ustawiłem na 1024 
w squashfs   tez dałem na 1024
co powinno zbudowac  wieksze obrazy niz  domyslnie 256  ale dostaje bład na koncu kompilacji 

Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /home/adam/21.02/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/root.squashfs, block size 1048576.
Pseudo file "/dev" exists in source filesystem "/home/adam/21.02/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-mediatek/dev".
Ignoring, exclude it (-e/-ef) to override.
[========================================================================================================================================================-] 17295/17295 100%

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 1048576
    compressed data, compressed metadata, compressed fragments,
    compressed xattrs, compressed ids
    duplicates are removed
Filesystem size 44051.66 Kbytes (43.02 Mbytes)
    21.25% of uncompressed filesystem size (207278.08 Kbytes)
Inode table size 147826 bytes (144.36 Kbytes)
    21.88% of uncompressed inode table size (675724 bytes)
Directory table size 177616 bytes (173.45 Kbytes)
    40.43% of uncompressed directory table size (439367 bytes)
Number of duplicate files found 4648
Number of inodes 20854
Number of files 17288
Number of fragments 123
Number of symbolic links  612
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 2953
Number of ids (unique uids + gids) 1
Number of uids 1
    root (0)
Number of gids 1
    root (0)
/home/adam/21.02/openwrt/staging_dir/host/bin/make_ext4fs -L rootfs -l 109051904 -b 4096 -m 1024 -J -T 1635066095 /home/adam/21.02/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/root.ext4 /home/adam/21.02/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-mediatek/
Creating filesystem with parameters:
    Size: 109051904
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 6656
    Inode size: 256
    Journal blocks: 0
    Label: rootfs
    Blocks: 26624
    Block groups: 1
    Reserved blocks: 272384
    Reserved block group size: 7
error: ext4_allocate_best_fit_partial: failed to allocate 371 blocks, out of space?
/home/adam/21.02/openwrt/include/image.mk:334: recipe for target '/home/adam/21.02/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/root.ext4' failed
make[5]: *** [/home/adam/21.02/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/root.ext4] Error 1
make[5]: Leaving directory '/home/adam/21.02/openwrt/target/linux/mediatek/image'
Makefile:18: recipe for target 'install' failed
make[4]: *** [install] Error 2
make[4]: Leaving directory '/home/adam/21.02/openwrt/target/linux/mediatek'
Makefile:11: recipe for target 'install' failed
make[3]: *** [install] Error 2
make[3]: Leaving directory '/home/adam/21.02/openwrt/target/linux'
time: target/linux/install#455.71#78.67#475.75
    ERROR: target/linux failed to build.
target/Makefile:23: recipe for target 'target/linux/install' failed
make[2]: *** [target/linux/install] Error 1
make[2]: Leaving directory '/home/adam/21.02/openwrt'
target/Makefile:19: recipe for target '/home/adam/21.02/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.target_install' failed
make[1]: *** [/home/adam/21.02/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/adam/21.02/openwrt'
/home/adam/21.02/openwrt/include/toplevel.mk:228: recipe for target 'world' failed
make: *** [world] Error 2

pisze ze brak miejsca  , na dysku miejsce jest , zwiększyłem  rozmiar obrazów  - nie wiem moze te ext4 sie nie zbuduje ???

18

Odp: bananaPI R2

z budową większych obrazów poradziłem sobie ,  teraz jestem na etapie budowy własnego debiana   i mam problem z konfiguracją interfejsów
mam tak :

root@bpi-r2:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    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,UP,LOWER_UP> mtu 1504 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 3a:69:cb:48:04:40 brd ff:ff:ff:ff:ff:ff
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
4: wan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 08:22:33:44:55:77 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.18/24 brd 192.168.0.255 scope global wan
       valid_lft forever preferred_lft forever
    inet6 fe80::a22:33ff:fe44:5577/64 scope link 
       valid_lft forever preferred_lft forever
5: lan0@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master lanbr0 state LOWERLAYERDOWN group default qlen 1000
    link/ether 3a:5d:98:f7:50:8b brd ff:ff:ff:ff:ff:ff
6: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master lanbr0 state LOWERLAYERDOWN group default qlen 1000
    link/ether 3e:de:03:53:13:70 brd ff:ff:ff:ff:ff:ff
7: lan2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master lanbr0 state LOWERLAYERDOWN group default qlen 1000
    link/ether 66:8a:45:e7:49:14 brd ff:ff:ff:ff:ff:ff
8: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master lanbr0 state LOWERLAYERDOWN group default qlen 1000
    link/ether 0a:81:22:f8:21:57 brd ff:ff:ff:ff:ff:ff
9: lanbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 52:29:84:c3:04:47 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global lanbr0
       valid_lft forever preferred_lft forever
    inet6 fd00:a::10/64 scope global tentative 
       valid_lft forever preferred_lft forever
10: wan.140@wan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 08:22:33:44:55:77 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::a22:33ff:fe44:5577/64 scope link 
       valid_lft forever preferred_lft forever
11: wan.110@wan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 08:22:33:44:55:77 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::a22:33ff:fe44:5577/64 scope link 
       valid_lft forever preferred_lft forever
root@bpi-r2:~# cd /etc/network
root@bpi-r2:/etc/network# ls
if-down.d  if-post-down.d  if-pre-up.d    if-up.d  interfaces  interfaces.d
root@bpi-r2:/etc/network# cat interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
auto wan@eth0
allow-hotplug wan@eth0
iface wan@eth0 inet dhcp
iface wan@eth0 inet6 dhcp

root@bpi-r2:/etc/network# dmesg |grep wan
[    7.403411] mt7530 mdio-bus:00 wan (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY] (irq=POLL)
[   11.855987] mt7530 mdio-bus:00 wan: configuring for phy/gmii link mode
[   11.870987] 8021q: adding VLAN 0 to HW filter on device wan
[   14.981791] mt7530 mdio-bus:00 wan: Link is Up - 1Gbps/Full - flow control rx/tx
[   14.989266] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready
[   15.003517] IPv6: ADDRCONF(NETDEV_CHANGE): wan.110: link becomes ready
[   15.010437] IPv6: ADDRCONF(NETDEV_CHANGE): wan.140: link becomes ready
root@bpi-r2:/etc/network# [  670.189479] mt7530 mdio-bus:00 wan: Link is Down
[  674.341588] mt7530 mdio-bus:00 wan: Link is Up - 1Gbps/Full - flow control rx/tx

chce sie podłaczyć kablem do wejscia wan  - to co pokazałem jest domyslnie na razie nic nie zmianiałem

19

Odp: bananaPI R2

interfejs nazywa się wan, nie wan@eth0. Masz to nawet w logach, więc w konfigu używać "wan" tak po prostu

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

20

Odp: bananaPI R2

no ok    jest tak

root@bpi-r2:/etc/network# ls /sys/class/net
eth0  lan0  lan1  lan2    lan3  lanbr0  lo  sit0    wan  wan.110  wan.140

to  jaki jest adres MAC  ?
jezeli  zminie w recznie  w /etc/network/interfaces   na wan  i tak  nic sie nie dzieje  - powinien pobrać z dhcp ,  aa chyba ze nie ma dhcp client ?
,a  co to jest wan.110  wan.140  - tak przy okazji

21

Odp: bananaPI R2

No nie wiem, to twój debian smile

No masz jakiś tam mac adres na interfejsach. Dlaczego pytasz o adres mac?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

22 (edytowany przez ad2014 2022-03-27 17:12:29)

Odp: bananaPI R2

jak zmienilem na static   

root@bpi-r2:~# ip a |grep wan
4: wan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    inet 192.168.1.135/24 brd 192.168.1.255 scope global wan
    inet 192.168.0.18/24 brd 192.168.0.255 scope global wan
10: wan.140@wan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
11: wan.110@wan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000

teraz mam ping do routera głownego  ale do internetu nie   ?
MAC  chyba będzie tan wan@eth0   bo tam został przypisane ten adres , a potrzebuję go bo potem chce statycznie ustawić na głównym.
Widze ze dzierzawe dostał z głownego  ale neta jeszcze nie mam

23

Odp: bananaPI R2

Czemu masz dwa adresy na wanie?

Gatewaya lub dnsów nie ustawiłeś. Lub główny router nie pusza.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

24

Odp: bananaPI R2

no własnie nie wiem czemu sa dwa  ja ustawiłem ten 135 , a tamten był jakby domyślnie  tylko nie wiem gdzie on jest zapisany , ja edytowałem tylko
/etc/network/interfaces  teraz mam tak :

root@bpi-r2:/etc/network# cat interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:

 auto wan
 allow-hotplug wan
 iface wan inet static
 netmask 255.255.255.0
 address 192.168.1.135
 gateway 192.168.1.1
 dns-nameservers 192.168.1.1  8.8.8.8

dalej brak sieci  ping tylko do głownego

25

Odp: bananaPI R2

A czasami nie masz adresacji w /etc/netplan/ ?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.