Solved Cannot ping gateway

I am a new FreeBSD user.

I had CentOS 7 installed, it was working fine. I installed FreeBSD using this:

FreeBSD-10.1-RELEASE-amd64-uefi-bootonly.iso

The install seemed to go okay. The system connected to the network, and installed the needed files.

After rebooting, I logged in, but could not ping anything except myself.

The built in ethernet port on my system does not work correctly, so I installed a network card. This configuration has been working fine for me.

/etc/rc.conf and /etc/resolv.conf look fine.

Code:
hostname="ash"
ifconfig_nfe0="inet 192.168.1.107 netmask 0xffffff00"
defaultrouter="192.168.1.1"
sshd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"

Code:
search nuclix
nameserver 8.8.8.8
nameserver 8.8.4.4


When I do an ifconfig. My good port nfe0 reads:

Code:
media: Ethernet autoselect (none)
status: no carrier

Not sure why.

Code:
# ifconfig
dc0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=80008<VLAN_MTU,LINKSTATE>
    ether 00:80:c6:f2:4e:ef
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    media: Ethernet autoselect
    status: no carrier
nfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=82008<VLAN_MTU,WOL_MAGIC,LINKSTATE>
    ether 00:1b:b9:54:9a:42
    inet 192.168.1.107 netmask 0xffffff00 broadcast 192.168.1.255
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    media: Ethernet autoselect (none)
    status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
    inet 127.0.0.1 netmask 0xff000000
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
 
Let me add: the light on the network card is on. But the light on the other end - the gateway - is not coming on.

An hour ago, when I was running CentOS 7, it was working fine.
 
The link light issue is not a good sign. I would start by checking the output of dmesg and posting the lines for the NIC.

Here's a quick example on one of my systems for an em(4) NIC. The lines before and after may be helpful.
dmesg | less -p ^em
Code:
pcib5: <PCI-PCI bridge> at device 2.0 on pci4
pci5: <PCI bus> on pcib5
em0: <Intel(R) PRO/1000 Network Connection 7.4.2> port 0x2000-0x201f mem 0xa1000000-0xa101ffff,0xa1020000-0xa1023fff irq 19 at device 0.0 on pci5
em0: Using MSIX interrupts with 3 vectors
em0: Ethernet address: 00:00:24:d0:64:40

It would be good to sanity check that with the nfe(4) man page to see that the NIC is indeed listed as supported.
 
Back
Top