hi all.
I run openwrt in vmware workstation.
In the host, I config openwrt vm net card use bridge network.
openwrt vm system info
{
"kernel": "5.15.134",
"hostname": "OpenWrt",
"system": "Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz",
"model": "VMware, Inc. VMware Virtual Platform",
"board_name": "vmware-inc-vmware-virtual-platform",
"rootfs_type": "ext4",
"release": {
"distribution": "OpenWrt",
"version": "23.05.0",
"revision": "r23497-6637af95aa",
"target": "x86/64",
"description": "OpenWrt 23.05.0 r23497-6637af95aa"
}
}
network config
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 'fdea:ad70:5a8e::/48'
config interface 'wan'
option proto 'dhcp'
option device 'eth0'
config interface 'wan55'
option proto 'dhcp'
option device 'eth0.55'
wan can get address, wan55 can not get address from dhcp server.
when i use tcpdump to see what happened.
i found dhcp request sent with vlan id , but dhcp reply have no vlan id
04:47:47.977533 00:0c:xxxxxx (oui Unknown) > Broadcast,
ethertype 802.1Q (0x8100), length 346: vlan 55, p 0, ethertype IPv4 (0x0800),
0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:0c:xxxxxx (oui Unknown), length 300
04:47:47.994147 00:00:xxxxxx (oui IANA) > 00:0c:xxxxxx (oui Unknown),
ethertype IPv4 (0x0800), length 353: 10.147.255.254.67 > 10.147.217.130.68: BOOTP/DHCP, Reply, length 311
I can sure dhcp server will reply with vlan id, i have tested on another harware.