The ifconfig command is used to assign an address to a network interface and/or configure network interface parameters. It can also used to display network card information such as Subnet mask, IP address and much more.
Command to display network card Information
Type ifconfig
Generally you will see lo0 (loopback) and network card interface such as ra0 along with IP, netmask etc (look for inet 10.0.0.38 netmask 0xffffff00 broadcast 10.0.0.255 line)
You will also find several other interfaces come enabled by default. These are virtual interfaces that serve various functions under OpenBSD:
- lo - Loopback Interface
- pflog - Packet Filter Logging Interface
- sl - SLIP Network Interface
- ppp - Point to Point Protocol
- tun - Tunnel Network Interface
- enc - Encapsulating Interface
- bridge - Ethernet Bridge Interface
- vlan - IEEE 802.1Q Encapsulation Interface
- gre - GRE/MobileIP Encapsulation Interface
- gif - Generic IPv4/IPv6 Tunnel Interface
- carp - Common Address Redundancy Protocol Interface
Read man OpenBSD man page
Code:
man ifconfig
man gre
man ppp
man gif