Install wired and wireless connections

Hello everyone.

I am a new user of freebsd. I installed freebsd on a PC that was running Archlinux. The pc is connected to the router via a wired connection as well as a wireless connection.
I managed to install the wireless connection and it works.

But unfortunately I am unable to install the wired connection
.Can someone tell me exactly what to do?

Code:
root@freebsd:~ # cat /etc/wpa_supplicant.conf
network={
             ssid="Breizh29"
             psk="xxxxxxxx"
}
root@freebsd:~ #

root@freebsd:~ # cat /etc/rc.conf
hostname="freebsd"
wlans_iwlwifi0="wlan0"
ifconfig_wlan0="WPA inet 192.168.100.20 netmask 255.255.255.0"
defaultrouter="192.168.100.1"
create_args_wlan0="country TH regdomain NONE"
sshd_enable="YES"
moused_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
root@freebsd:~ #

root@freebsd:~ # ifconfig
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
       options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
       ether 2c:f0:5d:56:30:5d
       media: Ethernet autoselect (none)
      status: no carrier
      nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
      options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
      inet 127.0.0.1 netmask 0xff000000
      inet6 ::1 prefixlen 128
     inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
     groups: lo
     nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
      options=0
      ether 68:54:5a:cf:fb:89
      inet 192.168.100.20 netmask 0xffffff00 broadcast 192.168.100.255
      groups: wlan
      ssid Breizh29 channel 1 (2412 MHz 11g) bssid 34:b3:54:10:ea:28
      regdomain NONE country TH authmode WPA2/802.11i privacy ON
      deftxkey UNDEF TKIP 2:128-bit txpower 30 bmiss 7 scanvalid 60
      protmode CTS wme roaming MANUAL bintval 98
      parent interface: iwlwifi0
      media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
      status: associated
      nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
root@freebsd:~ #

root@freebsd:~ # cat /etc/resolv.conf
nameserver 192.168.100.1
root@freebsd:~ #

root@freebsd:~ # ping -c1 [URL="http://www.freebsd.org"]www.freebsd.org[/URL]
PING web.geo.freebsd.org (203.80.16.154): 56 data bytes
64 bytes from 203.80.16.154: icmp_seq=0 ttl=48 time=67.969 ms
--- web.geo.freebsd.org ping statistics ---
root@freebsd:~ #
 
The pc is connected to the router via a wired connection as well as a wireless connection.
Use one or the other, if both interfaces are on the same network.

If you want to "seamless" switch over from wired to wireless, you might want to look at example 3:
 
Oops, I just want to ask you! I did a "seamless" failover on OPNSense between two providers. Question: how expensive and difficult will it be to do this on FreeBSD? I'll find detailed instructions myself. I'm only interested in - is it "cost-effective" to do this manually and with text configuration files and in time too or is it better to use specialized distributions to configure everything in the web interface? Thank you.
 
Use one or the other, if both interfaces are on the same network.

If you want to "seamless" switch over from wired to wireless, you might want to look at example 3:
thanks for your quick reply.
I kind of expected this answer and I already tried.
But I have an error when executing the following command: ifconfig lagg0 up laggproto failover laggport re0 laggport wlan0
The error is: wpa_supplicant [...] ioctl [...] can't assign requested address
 
Back
Top