Description of the problem
Unable to Configure Static IP if using "Enable VLAN (802.1Q)". After reboot or even after stop/start of the driver, I loose the static configuration.
The usb dongle works fine with no performance issue, but if device driver is restarted or NAS is restart, it looses configuration.
xxx@Diskstation2:~$ sudo cat /var/packages/r8152/etc/ifcfg-eth2.50
DEVICE=eth2.50
VLAN_ROW_DEVICE=eth2
VLAN_ID=50
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.50.19
NETMASK=255.255.255.0
IPV6INIT=off
xxx@Diskstation2:~$ sudo cat /var/packages/r8152/etc/ifcfg-eth2
DEVICE=eth2
ONBOOT=yes
BOOTPROTO=none
IPV6INIT=off
Description of your products
- the product name of your NAS model
- Linux Diskstation2 4.4.180+ #42962 SMP Tue Jul 29 14:30:39 CST 2025 x86_64 GNU/Linux synology_apollolake_918+
- DSM version 7.1.1-42962
- Realtek USB 10/100/1G/2.5G (0bda:8156:3104)
Description of your environment
- connect using a Ethernet switch
- PC: NIC RTL8125 2.5GbE Controller
- Ethernet switch: Horaco 2.5gbe
- cable Cat6
Output of dmesg command
[ 3185.646027] usb 2-2: reset SuperSpeed USB device number 2 using xhci_hcd
[ 3185.708385] r8152 2-2:1.0 eth2: v2.21.4 (2025/10/28)
[ 3185.713948] r8152 2-2:1.0 eth2: This product is covered by one or more of the following patents:
US6,570,884, US6,115,776, and US6,327,625.
[ 3185.731382] r8152 2-2:1.0 eth2: chip rev 14
[ 3185.736119] usbcore: registered new interface driver r8152
[ 3185.811637] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
[ 3189.297056] IPv6: ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready
[ 3189.304238] r8152 2-2:1.0 eth2: carrier on
[ 4122.238909] Module [r8152] is removed.
[ 4122.243226] usbcore: deregistering interface driver r8152
[ 4123.015506] usb 2-2: reset SuperSpeed USB device number 2 using xhci_hcd
[ 4123.067690] r8152 2-2:1.0 eth2: v2.21.4 (2025/10/28)
[ 4123.073263] r8152 2-2:1.0 eth2: This product is covered by one or more of the following patents:
US6,570,884, US6,115,776, and US6,327,625.
[ 4123.090742] r8152 2-2:1.0 eth2: chip rev 14
[ 4123.095544] usbcore: registered new interface driver r8152
[ 4123.185085] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
[ 4126.468414] IPv6: ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready
[ 4126.475604] r8152 2-2:1.0 eth2: carrier on
Output of lsusb command
|__usb1 1d6b:0002:0404 09 2.00 480MBit/s 0mA 1IF (Linux 4.4.180+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
|__1-3 051d:0003:0001 00 2.00 12MBit/s 10mA 1IF (American Power Conversion Smart-UPS 750 FW:UPS 18.0 / ID=1015 3S2209X24381 )
|__1-4 f400:f400:0100 00 2.00 480MBit/s 200mA 1IF (Synology DiskStation 7F00999F303A7D71)
|__usb2 1d6b:0003:0404 09 3.00 5000MBit/s 0mA 1IF (Linux 4.4.180+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
|__2-2 0bda:8156:3100 00 3.20 5000MBit/s 256mA 1IF (Realtek USB 10/100/1G/2.5G LAN 001000001)
Output of ifconfig -a command
eth0 Link encap:Ethernet HWaddr 00:11:32:B7:A5:75
inet addr:192.168.5.15 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fd08:3821:6ae:6ebe:211:32ff:feb7:a575/64 Scope:Global
inet6 addr: fe80::211:32ff:feb7:a575/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:169630 errors:0 dropped:0 overruns:0 frame:0
TX packets:50271 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:56632355 (54.0 MiB) TX bytes:25568477 (24.3 MiB)
eth1 Link encap:Ethernet HWaddr 00:11:32:B7:A5:76
inet addr:169.254.152.92 Bcast:169.254.255.255 Mask:255.255.0.0
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)
eth2 Link encap:Ethernet HWaddr 8C:AE:4C:DD:5E:99
inet6 addr: fe80::8eae:4cff:fedd:5e99/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
RX packets:34908 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8337998 (7.9 MiB) TX bytes:3464 (3.3 KiB)
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:23337 errors:0 dropped:0 overruns:0 frame:0
TX packets:23337 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:3094073 (2.9 MiB) TX bytes:3094073 (2.9 MiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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:1
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Output of ifconfig -a command before loosing configuration
eth0 Link encap:Ethernet HWaddr 00:11:32:B7:A5:75
inet addr:192.168.5.15 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fd08:3821:6ae:6ebe:211:32ff:feb7:a575/64 Scope:Global
inet6 addr: fe80::211:32ff:feb7:a575/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:174143 errors:0 dropped:0 overruns:0 frame:0
TX packets:51142 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:58291415 (55.5 MiB) TX bytes:25822738 (24.6 MiB)
eth1 Link encap:Ethernet HWaddr 00:11:32:B7:A5:76
inet addr:169.254.152.92 Bcast:169.254.255.255 Mask:255.255.0.0
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)
eth2 Link encap:Ethernet HWaddr 8C:AE:4C:DD:5E:99
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
RX packets:49974 errors:0 dropped:0 overruns:0 frame:0
TX packets:9329 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11548938 (11.0 MiB) TX bytes:1536612 (1.4 MiB)
eth2.50 Link encap:Ethernet HWaddr 8C:AE:4C:DD:5E:99
inet addr:192.168.50.15 Bcast:192.168.50.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
RX packets:7907 errors:0 dropped:0 overruns:0 frame:0
TX packets:9281 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1410084 (1.3 MiB) TX bytes:1528597 (1.4 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:24061 errors:0 dropped:0 overruns:0 frame:0
TX packets:24061 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:3182881 (3.0 MiB) TX bytes:3182881 (3.0 MiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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:1
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Description of the problem
Unable to Configure Static IP if using "Enable VLAN (802.1Q)". After reboot or even after stop/start of the driver, I loose the static configuration.
The usb dongle works fine with no performance issue, but if device driver is restarted or NAS is restart, it looses configuration.
Description of your products
Description of your environment
Output of
dmesgcommandOutput of
lsusbcommandOutput of
ifconfig -acommandOutput of
ifconfig -acommand before loosing configuration