OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: Lithin on July 21, 2021, 03:42:12 pm

Title: Opnsense with raspberry pi board - 2nd Ethernet Interface
Post by: Lithin on July 21, 2021, 03:42:12 pm
Hi.
 I installed one opnsense nighty image in memory card and connected to raspberry pi board. Connected one usb to Ethernet interface for 2nd intefrace for opnsense firewall. Can you help to configure the 2nd interface. How i can configure usb to ethernet interface.

https://opnsense.rene.network/FreeBSD%3A12%3Aaarch64/20.1/nightly_images/OPNsense-201911290406-OpenSSL-arm-aarch64-RPI3.img.gz

*** OPNsense.localdomain: OPNsense 20.1.a_265 (aarch64/OpenSSL) ***

 LAN (ue0)       -> v4/DHCP4: 10.0.0.198/8

 SSH:   SHA256 i4yn4dts4WJ/uRSA4wb6vFY+bWd28VplTGH8PAMv24g (ECDSA)
 SSH:   SHA256 OcnB5UPADunN5Sxl0INyBzhJ6MKjz06FEA4d/eEjZBg (ED25519)
 SSH:   SHA256 V+kxGKUvsLeOF5Q+FgKLMR2vRMyydn88XhwRM/QjgaM (RSA)


root@OPNsense:~ # ifconfig
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 0x1
   inet 127.0.0.1 netmask 0xff000000
   groups: lo
   nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
enc0: flags=0<> metric 0 mtu 1536
   groups: enc
   nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pflog0: flags=100<PROMISC> metric 0 mtu 33160
   groups: pflog
pfsync0: flags=0<> metric 0 mtu 1500
   syncpeer: 0.0.0.0 maxupd: 128 defer: off
   groups: pfsync
ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
   options=80008<VLAN_MTU,LINKSTATE>
   ether b8:27:eb:b9:f2:04
   inet6 fe80::ba27:ebff:feb9:f204%ue0 prefixlen 64 scopeid 0x5
   inet 10.0.0.198 netmask 0xff000000 broadcast 10.255.255.255
   media: Ethernet autoselect (100baseTX <full-duplex>)
   status: active
   nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>


Title: Re: Opnsense with raspberry pi board - 2nd Ethernet Interface
Post by: chemlud on July 21, 2021, 05:13:41 pm
Last time I tried, I used an USB2-RJ45 adapter that showed up in the GUI and could be configured normally. If you have serial console cable for the raspi, you can do the basic setup of the interfaces (WAN, LAN) there, highly recommed! You need a special serial (to USB) cable for the raspi, as it has 3.3V on the GPIO pins...
Title: Re: Opnsense with raspberry pi board - 2nd Ethernet Interface
Post by: Lithin on July 22, 2021, 07:04:14 am
Hi,
  We purchased one USB2-RJ45 adapter. But it is not showing up. Can you explain how to configure adapter?

Which type of serial console cable need to purchase. How to configure interfaces(LAN & WAN) using this?
Title: Re: Opnsense with raspberry pi board - 2nd Ethernet Interface
Post by: chemlud on July 22, 2021, 10:21:37 am
The serial cable you best guess buy from your "local" (online) raspi shop, they know what they are doing.

In the serial console there is a menu to assign physical interfaces to WAN, LAN etc. Afterwards you can access the GUI via LAN and do the rest of the setup for the interface.