Hi Champs
A customer has an issue regarding DHCP of CPSW5G eth1.
When they connected btw EVM Kit and PC directly, the IP address could not been assiged with CPSW5G eth1 even though CPSW2G eth0 works fine.
If We look at Tcpdumped data, We can't see any IP4 related packets (bootp/dhcp).
The contents and settings of tcpdump when reproducing are as follows, and I attached the data captured by wireshark from PC.
- SDK version : 8.1
- Downloaded Image : default image
1) Setting: Connected from EVB to PC as follows
2) Udhcpd configuration
1 udhcp configure file
# Values shown are defaults
# The start and end of the IP lease block
start 192.168.5.11
end 192.168.5.250
# The interface that udhcpd will use
#interface mlan0
interface eth1
# The maximum number of leases (includes addresses reserved
# by OFFER’s, DECLINE’s, and ARP conflicts). Will be corrected
# if it’s bigger than IP lease block, but it ok to make it
# smaller than lease block.
#max_leases 254
# The amount of time that an IP will be reserved (leased to nobody)
# if a DHCP decline message is received (seconds)
#decline_time 3600
# The amount of time that an IP will be reserved
# if an ARP conflict occurs (seconds)
#conflict_time 3600
# How long an offered address is reserved (seconds)
#offer_time 60
# If client asks for lease below this value, it will be rounded up
# to this value (seconds)
#min_lease 60
# The location of the pid file
#pidfile /var/run/udhcpd.pid
# The location of the leases file
lease_file /var/lib/misc/udhcpd.leases
# The time period at which udhcpd will write out leases file.
# If this is 0, udhcpd will never automatically write leases file.
# Specified in seconds.
#auto_time 7200
# Every time udhcpd writes a leases file, the below script will be called
#notify_file # default: no script
#notify_file dumpleases # useful for debugging
# The following are bootp specific options
# next server to use in bootstrap
#siaddr 192.168.0.22 # default: 0.0.0.0 (none)
# tftp server name
#sname zorak # default: none
# tftp file to download (e.g. kernel image)
#boot_file /var/nfs_root # default: none
# Static leases map
#static_lease 00:60:08:11:CE:4E 192.168.0.54
#static_lease 00:60:08:11:CE:3E 192.168.0.44
# The remainder of options are DHCP options and can be specified with the
# keyword ‘opt’ or ‘option’. If an option can take multiple items, such
# as the dns option, they can be listed on the same line, or multiple
# lines.
# Examples:
opt dns 8.8.8.8
option subnet 255.255.255.0
opt router 192.168.5.254
option lease 3600
2 실행 명령
/usr/sbin/udhcpd -f /etc/udhcpd_tgu.conf &
3. ifconfig (eth1 : 192.168.5.254 )
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 metric 1
ether f4:84:4c:f8:68:1e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
inet 192.168.5.254 netmask 255.255.255.0 broadcast 192.168.5.255
inet6 fe80::72ff:76ff:fe1d:92c1 prefixlen 64 scopeid 0x20<link>
ether 70:ff:76:1d:92:c1 txqueuelen 1000 (Ethernet)
RX packets 166 bytes 15432 (15.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 119 bytes 31743 (30.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
inet6 fe80::72ff:76ff:fe1d:92c2 prefixlen 64 scopeid 0x20<link>
ether 70:ff:76:1d:92:c2 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 108 bytes 30226 (29.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 metric 1
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 82 bytes 6220 (6.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 82 bytes 6220 (6.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
3) TCP dump
root@j7200-evm:~# tcpdump -i eth1 -n &
[1] 1320
root@j7200-evm:~# [ 151.951997] device eth1 entered promiscuous mode
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 262144 bytes
15:36:30.210517 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 ANY (QM)? DESKTOP-LJ8R0U6.local. (39)
15:36:30.212049 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0*- [0q] 2/0/0 AAAA fe80::d41f:9350:c864:6a48, A 169.254.106.72 (77)
15:36:31.780267 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:31.796374 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:31.798206 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:31.800341 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:32.197966 IP6 fe80::d41f:9350:c864:6a48.49849 > ff02::1:3.5355: UDP, length 22
15:36:32.213368 IP6 fe80::d41f:9350:c864:6a48.64887 > ff02::1:3.5355: UDP, length 22
15:36:32.213368 IP6 fe80::d41f:9350:c864:6a48.55397 > ff02::1:3.5355: UDP, length 22
15:36:32.214035 IP6 fe80::d41f:9350:c864:6a48.58583 > ff02::1:3.5355: UDP, length 22
15:36:32.382067 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 ANY (QM)? DESKTOP-LJ8R0U6.local. (39)
15:36:32.383992 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0*- [0q] 2/0/0 AAAA fe80::d41f:9350:c864:6a48, A 169.254.106.72 (77)
15:36:35.011014 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:35.012560 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:35.014173 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:35.015520 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:35.432886 IP6 fe80::d41f:9350:c864:6a48.58276 > ff02::1:3.5355: UDP, length 22
15:36:35.432886 IP6 fe80::d41f:9350:c864:6a48.57255 > ff02::1:3.5355: UDP, length 22
15:36:35.432886 IP6 fe80::d41f:9350:c864:6a48.58519 > ff02::1:3.5355: UDP, length 22
15:36:35.432886 IP6 fe80::d41f:9350:c864:6a48.52145 > ff02::1:3.5355: UDP, length 22
15:36:36.020963 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:36.022194 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:36.023440 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:36.024732 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:37.017454 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:37.018748 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:37.023006 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:37.025011 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:37.033966 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:37.035841 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:38.020160 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:38.021883 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:38.035142 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:38.036072 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:38.037161 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:38.037544 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:40.025438 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:40.032392 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:40.039641 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:40.039802 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:40.043406 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:40.043672 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
15:36:44.465635 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:44.467534 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:44.468947 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:44.470464 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:44.887990 IP6 fe80::d41f:9350:c864:6a48.53318 > ff02::1:3.5355: UDP, length 22
15:36:44.887990 IP6 fe80::d41f:9350:c864:6a48.65157 > ff02::1:3.5355: UDP, length 22
15:36:44.887990 IP6 fe80::d41f:9350:c864:6a48.54703 > ff02::1:3.5355: UDP, length 22
15:36:44.887991 IP6 fe80::d41f:9350:c864:6a48.65417 > ff02::1:3.5355: UDP, length 22
15:36:45.483587 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:45.485422 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:45.487448 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
15:36:45.489120 IP6 fe80::d41f:9350:c864:6a48.5353 > ff02::fb.5353: 0 A (QM)? wpad.local. (28)
Please check the DHCP in CPSW5G problem using pre-built binary of PSDK Linux 8.1.
Regards,
Jack