User Tools

Site Tools


os:freebsd:network

FreeBSD - Network

Routing

Example
root@opnsense:~ # netstat -4rn
Routing tables

Internet:
Destination        Gateway            Flags     Netif Expire
default            203.0.113.1        UGS        igc1
192.0.0.0/24       link#9             US          wg0
203.0.113.0/24     link#2             U          igc1
203.0.113.5        link#5             UHS         lo0
127.0.0.1          link#5             UH          lo0
198.51.100.0/24    link#1             U          igc0
198.51.100.1       link#5             UHS         lo0

Routing Flags (man 1 netstat).

FlagNameDescription
1RTF_PROTO1Protocol specific routing flag #1
2RTF_PROTO2Protocol specific routing flag #2
3RTF_PROTO3Protocol specific routing flag #3
BRTF_BLACKHOLEJust discard pkts (during updates)
bRTF_BROADCASTThe route represents a broadcast address
DRTF_DYNAMICCreated dynamically (by redirect)
GRTF_GATEWAYDestination requires forwarding by intermediary
HRTF_HOSTHost entry (net otherwise)
LRTF_LLINFOValid protocol to link address translation
MRTF_MODIFIEDModified dynamically (by redirect)
RRTF_REJECTHost or net unreachable
SRTF_STATICManually added
URTF_UPRoute usable
XRTF_XRESOLVEExternal daemon translates proto to link address
os/freebsd/network.txt · Last modified: 2024-08-27 14:17 by Manuel Frei