2 NIC not working at the same time.

Hi, I hope someone can shed light to my problem with my recently installed freebsd 13.2. I put up two NIC's on this machine and had this configuration on my rc.conf

Code:
hostname="pithoi1"
ifconfig_mce0="inet 192.168.1.100netmask 255.255.255.0"
defaultrouter="192.168.1.1"
ifconfig_bxe2="inet 172.16.100.17 netmask 255.255.255.0"
gateway_enable="YES"
sshd_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
trim_enable="YES"


the NIC mce0 is used for internet connection and I have no problem with connecting to the internet with it.
and then when I configure bxe2 which will be use to connect to another machine via cross over cable connection and restart the network via service netif restart
mce0 is no longer working, but the connection between two machine is there.
I tried to search on how to do it, but couldn't find any guide on how to. but I'm guessing that this has to do with routes, but I am not sure how to do it.
 
Please, provide the outputs of ifconfig and netstat -r4 before and after the configuration of bxe2. It could help.
 
Please, provide the outputs of ifconfig and netstat -r4 before and after the configuration of bxe2. It could help.
Code:
bge2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
        ether 80:18:44:eb:d4:50
        inet 172.16.100.17 netmask 0xffffff00 broadcast 172.16.100.255
        media: Ethernet autoselect (1000baseT <full-duplex,master>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
mce0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=7eed07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWRXTSTMP,NOMAP,TXTLS4,TXTLS6,VXLAN_HWCSUM,VXLAN_HWTSO>
        ether e8:eb:d3:13:db:5e
        inet 192.168.1.100 netmask 0xffffff00 broadcast 192.168.1.1
        media: Ethernet 25GBase-SR <full-duplex,rxpause,txpause>
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
ue0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether d0:94:66:48:3b:76
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

netstat -r4
Code:
Internet:
Destination        Gateway            Flags     Netif Expire
default            nttec.com          UGS        mce0
localhost          link#5             UH          lo0
172.16.100.0/24     link#3             U          bge2
172.16.100.17        link#3             UHS         lo0
192.168.1.100/24   link#6             U          mce0
google.com          link#6             UHS         lo0
 
Your router will need a (static) route to 172.16.100.0/24 or you need to enable NAT on mce0.
 
Your router will need a (static) route to 172.16.100.0/24 or you need to enable NAT on mce0.
I tried that as well
Code:
route add -net 172.16.100.0/24 172.16.100.1
but did not work as well.
If I tried to bring up mxe0 with
Code:
ifconfig mxe0 up
it shows me an error that device is not found.
 
I tried that as well
On your upstream router, not the FreeBSD machine. I assume your mce0 interface is connected to the internal network provided by your ISP's modem/router. The static route needs to be added to your ISP's modem/router.

If I tried to bring up mxe0 with ifconfig mxe0 up it shows me an error that device is not found.
Were does this interface come from? And why do you think it needs to be enabled?
 
The broadcast address of 192.168.1.0/24 is 192.168.1.255. According to your ifconfig it's wrong.

Code:
mce0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=7eed07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWRXTSTMP,NOMAP,TXTLS4,TXTLS6,VXLAN_HWCSUM,VXLAN_HWTSO>
        ether e8:eb:d3:13:db:5e
        inet 192.168.1.100 netmask 0xffffff00 broadcast 192.168.1.1
        media: Ethernet 25GBase-SR <full-duplex,rxpause,txpause>
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
 
Back
Top