Solved ethernet nic "no carrier" and switch problem

Hi, this is the first time that see this...is very strange


in /etc/rc.conf I have (change the ip address for the post):

Code:
ifconfig_re1="inet 192.168.0.2 netmask 255.255.255.0"

defaultrouter="192.168.0.1"

it boots like this:

Code:
re1: flags=1008802<BROADCAST,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500

    options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>

    ether 3c:7c:3f:0e:e3:04

    media: Ethernet autoselect (1000baseT <full-duplex>)

    status: active

and when I do "service netif restart"
the ouput is this

Code:
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500

    options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>

    ether 3c:7c:3f:0e:e3:04

    inet 192.168.0.2 netmask 0xffff0000 broadcast 192.168.255.255

    media: Ethernet autoselect (none)

    status: no carrier

wait a little,do a "ifconfig" and i got

Code:
re1: flags=1008802<BROADCAST,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500

    options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>

    ether 3c:7c:3f:0e:e3:04

    media: Ethernet autoselect (1000baseT <full-duplex>)

    status: active

also I do "dhclient re1" (I have one dhcp server on the network)

Code:
DHCPREQUEST on re1 to 255.255.255.255 port 67
Interface re1 is down, dhclient exiting

then I do "ifconfig re1 up" and "dhclient re1" give me this

Code:
re1: no link .... got link
DHCPREQUEST on re1 to 255.255.255.255 port 67
Interface re1 is down, dhclient exiting



It happend with one FreeBSD server lask week..the ethernet link is active but ifconfig says "no carrier"
so, I change the network card and it works...but now is my box
btw the network card that "failed" was bge0 , so , is not realtek problem

the network switchs are cisco bussines 220 series, gigabit
when I do service netif restart,the ethernet port in the switch are shutdown and up again
the same when I do "dhclient re1"
any clue? I am lost
sorry, the two boxes in cuestion are FreeBSD-14.0-RELEASE
 
and also I try in one unmanaged switch of 8 ports and happen the same
yes, any operation like "dhclient, service netif restart" shutdown the nic and wakeup again
 
Login into the switch and check the IP Source Guard settings of the interface and port security.

I will check IP source guard, no port security are configured in the switchs (and I think that IP source guard are not active,unless came by default)
 
Usually the "smart port" allow only 1 MAC address and when you change the NIC the port is blocked. It's easy to check the port status on the switch.

I personally prefer IOS switches like catalyst instead of CBS.

 
Usually the "smart port" allow only 1 MAC address and when you change the NIC the port is blocked. It's easy to check the port status on the switch.

I personally prefer IOS switches like catalyst instead of CBS.

is the ideal scenario I want, but in my network are so many unmanaged switchs(6 to 8 ports), that I cant use port security
 
but I think is not a switch problem too, because I do the same procedure and get the same result in a independent wifi router
 
You mean connecting it to standalone wifi router or behind the same CBS smart switch
yes, a standalone wifi router
the strange is,that this happend in one 14-RELEASE box (virtualbox virtual machines host) and now in my machine
I have another releases (13,12) and work fine until now

is like netif script need a sleep clausure somewhere or something like these
 
If you go to the dashboard of the switch and check the log file you will see why the port is disabled.
or
Status and statistic -> view log -> ram memory
 
If you go to the dashboard of the switch and check the log file you will see why the port is disabled.
or
Status and statistic -> view log -> ram memory

nothing for now about port disabled,this is the last log (the year are wrong)

Code:
1     Sep 28 2021 10:50:08.730+0000     Notice     %AAA-5-CONNECT: New https connection for user xxxx, source xxxxx ACCEPTED
2     Sep 28 2021 10:49:20.370+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
3     Sep 28 2021 10:49:19.550+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
4     Sep 28 2021 10:49:18.870+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
5     Sep 28 2021 10:49:18.290+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
6     Sep 28 2021 10:48:15.960+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
7     Sep 28 2021 10:48:15.270+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
8     Sep 28 2021 10:48:14.610+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
9     Sep 28 2021 10:48:13.950+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
10     Sep 28 2021 10:47:11.750+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
11     Sep 28 2021 10:47:10.950+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
12     Sep 28 2021 10:47:10.300+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
13     Sep 28 2021 10:47:09.710+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
14     Sep 28 2021 10:46:07.100+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
15     Sep 28 2021 10:46:06.400+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
16     Sep 28 2021 10:46:05.710+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
17     Sep 28 2021 10:46:04.970+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
18     Sep 28 2021 10:45:00.910+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
19     Sep 28 2021 10:44:59.300+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
20     Sep 28 2021 10:44:57.940+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
21     Sep 28 2021 10:44:56.780+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
22     Sep 28 2021 10:43:54.180+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
23     Sep 28 2021 10:43:53.230+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
24     Sep 28 2021 10:43:52.490+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
25     Sep 28 2021 10:43:51.850+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
26     Sep 28 2021 10:43:49.330+0000     Informational     %LLDP-6-NEIGHBOR_DEL: Neighbor deleted on port GigabitEthernet44: Chassis ID E4:A8:DF:9B:75:03, Port ID E4:A8:DF:9B:75:03
27     Sep 28 2021 10:43:48.650+0000     Notice     %LLDP-5-FRAME_DROP: Drop invalid packet on port GigabitEthernet44
28     Sep 28 2021 10:43:47.900+0000     Informational     %LLDP-6-NEIGHBOR_DISCOVER: New neighbor on port GigabitEthernet44: Chassis ID E4:A8:DF:9B:75:03, Port ID E4:A8:DF:9B:75:03
29     Sep 28 2021 10:42:49.390+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
30     Sep 28 2021 10:42:48.550+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
31     Sep 28 2021 10:42:47.790+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
32     Sep 28 2021 10:42:47.140+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
33     Sep 28 2021 10:41:44.550+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
34     Sep 28 2021 10:41:43.760+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
35     Sep 28 2021 10:41:43.030+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
36     Sep 28 2021 10:41:42.420+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
37     Sep 28 2021 10:40:39.940+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
38     Sep 28 2021 10:40:39.090+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
39     Sep 28 2021 10:40:38.390+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
40     Sep 28 2021 10:40:37.660+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
41     Sep 28 2021 10:39:35.090+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
42     Sep 28 2021 10:39:34.230+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
43     Sep 28 2021 10:39:33.390+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
44     Sep 28 2021 10:39:32.630+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
45     Sep 28 2021 10:38:30.160+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
46     Sep 28 2021 10:38:29.190+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
47     Sep 28 2021 10:38:28.340+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
48     Sep 28 2021 10:38:27.560+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /etc/dhcpc/dhcpcd-intfm.info
49     Sep 28 2021 10:37:47.540+0000     Notice     %AAA-5-DISCONNECT: ssh connection for user xxxxx , source xxxxx TERMINATED
50     Sep 28 2021 10:37:25.200+0000     Informational     %PNP-6-FIND_OPT_STRINGS: Parsing DHCP lease file: /var/run/pnpv6.lease
 
SOLUTION , reading /var/log/messages
I found someting about "kenv unable to get rc_system" , what is this?
well.. fuck#$ networkmgr
I uninstall it and everything back to normaly
I guess that the network server card was in the end of their life
 
Back
Top