Ram Ramesh wrote: 
> Hi,
> 
>   I have a linux based firewall that seem to hang because one of its
> ethernet port stops working. I suspect bad hardware, but could be a driver
> issue also. So far, I have only been able to reboot to get it working.
> However, I prefer to reset the port to get it working without a reboot. Is
> it possible to do something with ifconfig/ifup/ethtool?  Simple ifdown
> followed by ifup does not fix it.
> 
> My system is this:
> 
>    
> https://www.amazon.com/Generation-Processor-Beelink-U59-Computer/dp/B0B7729Q3M/ref=sr_1_44_sspa?keywords=dual%2Bnet&qid=1661469460&s=pc&sr=1-44-spons&th=1
> 
> This is the lspci output on the two ethernet port.
> 
>    02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
>    RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
>    03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
>    RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)


# echo 1 > /sys/bus/pci/0000:00:03.0/remove

Note that it might not be exactly 0000:00:03.0 -- check on your
system first. And of course, if it is port 02, then use that
value.

Then

# echo 1 > /sys/bus/pci/rescan

Will this work? It might. Let us know.

-dsr-

Reply via email to