ThothK

NetBSD 9.3 Not Getting IPV4 from DHCP

Oct 28th, 2022
101
0
Never
3
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. Hello,
  2.  
  3. I have a fresh install of NetBSD 9.3 on a Pine64 A64 LTS.
  4. It is not getting an IPV4 IP Address from the DHCP server running on the gateway router.
  5.  
  6.  
  7. arm64# uname -a
  8. NetBSD arm64 9.3_STABLE NetBSD 9.3_STABLE (GENERIC64) #0: Thu Oct 20 13:20:35 UTC 2022 [email protected]:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
  9.  
  10.  
  11. arm64# ifconfig
  12. emac0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
  13. capabilities=3f00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx>
  14. capabilities=3f00<UDP4CSUM_Rx,UDP4CSUM_Tx>
  15. enabled=0
  16. ec_capabilities=1<VLAN_MTU>
  17. ec_enabled=0
  18. address: 02:ba:49:71:73:11
  19. media: Ethernet autoselect (1000baseT full-duplex,flowcontrol,rxpause,txpause)
  20. status: active
  21. inet6 fe80::1a1d:48c2:aa75:969c%emac0/64 flags 0x0 scopeid 0x1
  22. inet 169.254.138.167/16 broadcast 169.254.255.255 flags 0x0
  23. lo0: flags=0x8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33624
  24. inet6 ::1/128 flags 0x20<NODAD>
  25. inet6 fe80::1%lo0/64 flags 0x0 scopeid 0x2
  26. inet 127.0.0.1/8 flags 0x0
  27.  
  28.  
  29.  
  30.  
  31. arm64# tail -19 /etc/rc.conf
  32.  
  33. rc_configured=YES
  34. hostname=arm64
  35. no_swap=YES
  36. savecore=NO
  37. sshd=YES
  38. dhcpcd=YES
  39. ntpd=YES
  40. ntpd_flags="-g"
  41. creds_msdos=YES
  42. creds_msdos_partition=/boot
  43. resize_disklabel=YES
  44. resize_root=YES
  45. resize_root_flags="-p"
  46. resize_root_postcmd="/sbin/reboot -n"
  47. mdnsd=YES
  48. devpubd=YES
  49. wscons=$(dev_exists wsdisplay0)
  50. ec2_init=$(dev_exists ena0)
  51.  
  52.  
  53.  
  54.  
  55. arm64# netstat -rn
  56. Routing tables
  57.  
  58. Internet:
  59.  
  60. Destination Gateway Flags Refs Use Mtu Interface
  61. default link#1 UCS - - - emac0
  62. 127/8 127.0.0.1 UGRS - - 33624 lo0
  63. 127.0.0.1 lo0 UHl - - 33624 lo0
  64. 169.254/16 link#1 UC - - - emac0
  65. 169.254.138.167 link#1 UHl - - - lo0
  66.  
  67. Internet6:
  68. Destination Gateway Flags Refs Use Mtu Interface
  69. ::/104 ::1 UGRS - - 33624 lo0
  70. ::/96 ::1 UGRS - - 33624 lo0
  71. ::1 lo0 UHl - - 33624 lo0
  72. ::127.0.0.0/104 ::1 UGRS - - 33624 lo0
  73. ::224.0.0.0/100 ::1 UGRS - - 33624 lo0
  74. ::255.0.0.0/104 ::1 UGRS - - 33624 lo0
  75. ::ffff:0.0.0.0/96 ::1 UGRS - - 33624 lo0
  76. 2001:db8::/32 ::1 UGRS - - 33624 lo0
  77. 2002::/24 ::1 UGRS - - 33624 lo0
  78. 2002:7f00::/24 ::1 UGRS - - 33624 lo0
  79. 2002:e000::/20 ::1 UGRS - - 33624 lo0
  80. 2002:ff00::/24 ::1 UGRS - - 33624 lo0
  81. fe80::/10 ::1 UGRS - - 33624 lo0
  82. fe80::%emac0/64 link#1 UC - - - emac0
  83. fe80::1a1d:48c2:aa75:969c link#1 UHl - - - lo0
  84. fe80::%lo0/64 fe80::1 U - - - lo0
  85. fe80::1 lo0 UHl - - - lo0
  86. ff01:1::/32 link#1 UC - - - emac0
  87. ff01:2::/32 ::1 UC - - 33624 lo0
  88. ff02::%emac0/32 link#1 UC - - - emac0
  89. ff02::%lo0/32 ::1 UC - - 33624 lo0
  90.  
  91.  
Advertisement
Comments
  • ThothK
    3 years
    # text 0.77 KB | 0 0
    1. arm64# dmesg | grep phy
    2. [ 1.000010] sunxiusbphy0 at simplebus1: USB PHY
    3. [ 1.000010] sunxihdmiphy0 at simplebus1: HDMI PHY
    4. [ 1.000010] sunxihdmiphy0: autoconfiguration error: HDMI PHY resistance calibration timed out
    5. [ 1.000010] dwhdmi0: version 1.32a, phytype 0xfe
    6. [ 1.000010] ukphy0 at emac0 phy 1: OUI 0x000000, model 0x0010, rev. 10
    7. [ 1.000010] ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
    8. [ 1.000010] sunxiusbphy0 at simplebus1: USB PHY
    9. [ 1.000010] sunxihdmiphy0 at simplebus1: HDMI PHY
    10. [ 1.000010] dwhdmi0: version 1.32a, phytype 0xfe
    11. [ 1.000010] ukphy0 at emac0 phy 1: OUI 0x000000, model 0x0010, rev. 10
    12. [ 1.000010] ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
    13.  
  • ThothK
    3 years
    # text 0.58 KB | 0 0
    1. After Update:
    2. arm64# dmesg | grep phy
    3. [ 1.000010] sunxiusbphy0 at simplebus1: USB PHY
    4. [ 1.000010] sunxihdmiphy0 at simplebus1: HDMI PHY
    5. [ 1.000010] sunxihdmiphy0: autoconfiguration error: HDMI PHY resistance calibration timed out
    6. [ 1.000010] dwhdmi0: version 1.32a, phytype 0xfe
    7. [ 1.000010] mcommphy0 at emac0 phy 1: Motorcomm YT8511 GbE PHY
    8. [ 1.000010] sunxiusbphy0 at simplebus1: USB PHY
    9. [ 1.000010] sunxihdmiphy0 at simplebus1: HDMI PHY
    10. [ 1.000010] dwhdmi0: version 1.32a, phytype 0xfe
    11. [ 1.000010] mcommphy0 at emac0 phy 1: Motorcomm YT8511 GbE PHY
    12.  
  • ThothK
    3 years
    # text 2.74 KB | 0 0
    1. Using:
    2. https://nycdn.netbsd.org/pub/arm/HEAD/202210261350Z/NetBSD-HEAD-aarch64-202210261350Z-sopine-baseboard.img.gz
    3.  
    4. arm64# uname -a
    5. NetBSD arm64 9.99.102 NetBSD 9.99.102 (GENERIC64) #0: Wed Oct 26 13:35:25 UTC 2022 [email protected]:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
    6.  
    7. arm64# ifconfig
    8. emac0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    9. capabilities=0x3f00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx>
    10. capabilities=0x3f00<UDP4CSUM_Rx,UDP4CSUM_Tx>
    11. enabled=0
    12. ec_capabilities=0x1<VLAN_MTU>
    13. ec_enabled=0
    14. address: 02:ba:49:71:73:11
    15. media: Ethernet autoselect (1000baseT full-duplex,flowcontrol,rxpause,txpause)
    16. status: active
    17. inet6 fe80::176c:2fcb:7164:debf%emac0/64 flags 0 scopeid 0x1
    18. inet 169.254.138.167/16 broadcast 169.254.255.255 flags 0
    19. lo0: flags=0x8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33624
    20. status: active
    21. inet6 ::1/128 flags 0x20<NODAD>
    22. inet6 fe80::1%lo0/64 flags 0 scopeid 0x2
    23. inet 127.0.0.1/8 flags 0
    24.  
    25.  
    26. arm64# dmesg | grep phy
    27. [ 1.000004] sunxiusbphy0 at simplebus1: USB PHY
    28. [ 1.000004] sunxihdmiphy0 at simplebus1: HDMI PHY
    29. [ 1.000004] sunxihdmiphy0: autoconfiguration error: HDMI PHY resistance calibration timed out
    30. [ 1.000004] dwhdmi0: version 1.32a, phytype 0xfe
    31. [ 1.000004] mcommphy0 at emac0 phy 1: Motorcomm YT8511 GbE PHY
    32. [ 1.000004] mcommphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
    33. [ 1.000004] sunxiusbphy0 at simplebus1: USB PHY
    34. [ 1.000004] sunxihdmiphy0 at simplebus1: HDMI PHY
    35. [ 1.000004] dwhdmi0: version 1.32a, phytype 0xfe
    36. [ 1.000004] mcommphy0 at emac0 phy 1: Motorcomm YT8511 GbE PHY
    37. [ 1.000004] mcommphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
    38.  
    39.  
    40. arm64# netstat -rn
    41. Routing tables
    42. Internet:
    43. Destination Gateway Flags Refs Use Mtu Interface
    44. default link#1 UC - - - emac0
    45. ...
    46.  
    47. After manually adding IP and default gateway:
    48. arm64# netstat -rn | head -15
    49. Routing tables
    50.  
    51. Internet:
    52. Destination Gateway Flags Refs Use Mtu Interface
    53. default 192.168.125.1 UGS - - - emac0
    54. 127/8 127.0.0.1 UGRS - - 33624 lo0
    55. 127.0.0.1 lo0 UHl - - 33624 lo0
    56. 169.254/16 link#1 UC - - - emac0
    57. 169.254.24.61 link#1 UHl - - - lo0
    58. 192.168.125/24 link#1 UC - - - emac0
    59. 192.168.125.30 link#1 UHl - - - lo0
    60.  
    61.  
    62.  
    63.  
    64.  
    65.  
Add Comment
Please, Sign In to add comment