version=pmwiki-2.2.130 ordered=1 urlencoded=1 agent=Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 author=mkf charset=UTF-8 csum= ctime=1627909143 host=198.251.81.133 name=Minutemin.Ifconfig rev=1 targets= text=ifconfig is a utilty can used for getting information about network interfaces and stack, chagning them or adding virtual interfaces.%0a%0arunning @@ifconfig@@ without any options will show usually something like this:%0a%0a[@%0alo0: flags=8049%3cUP,LOOPBACK,RUNNING,MULTICAST> mtu 32768%0a index 3 priority 0 llprio 3%0a groups: lo%0a inet6 ::1 prefixlen 128%0a inet6 fe80::1%25lo0 prefixlen 64 scopeid 0x3%0a inet 127.0.0.1 netmask 0xff000000%0aem0: flags=8b43%3cUP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500%0a lladdr aa:bb:cc:dd:ee:ff%0a index 1 priority 0 llprio 3%0a groups: egress%0a media: Ethernet autoselect%0a status: active%0a inet 12.34.56.78 netmask 0xffffff00 broadcast 12.34.56.78%0a inet6 2002::ffff:ccff:fedd:ee06%25vio0 prefixlen 64 scopeid 0x1%0a inet6 2002:ffff:2:1040:: prefixlen 48%0aenc0: flags=0%3c>%0a index 2 priority 0 llprio 3%0a groups: enc%0a status: active%0apflog0: flags=141%3cUP,RUNNING,PROMISC> mtu 33136%0a index 4 priority 0 llprio 3%0a groups: pflo%0a@]%0a%0abesides em0, all other interfaces mentioned (pflog0, enc0, lo0) are virtual and they will exist on all openbsd installations most of times.%0a%0a[@%0aem0: flags=8b43%3cUP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500%0a@]%0a%0ait shows em0's mtu (maximum size of a packet) and flags set on it. some can changed using software, some are hardware-dependent and can't without changing hardware.%0a%0a[@%0alladdr aa:bb:cc:dd:ee:ff%0a@]%0a%0athis refer about MAC adderss used by this interface, which is @@aa:bb:cc:dd:ee:ff@@%0a%0a[@%0ainet 12.34.56.78 netmask 0xffffff00 broadcast 12.34.56.78%0a@]%0a%0athis is referring to ip address, netmask and broadcast address%0aip address can be local, if you are using NAT%0a%0a[@%0ainet6 2002:ffff:2:1040:: prefixlen 48%0a@]%0a@@inet6@@ is like @@inet@@ but for ipv6. %0a time=1627909143 author:1627909143=mkf diff:1627909143:1627909143:=1,54d0%0a%3c ifconfig is a utilty can used for getting information about network interfaces and stack, chagning them or adding virtual interfaces.%0a%3c %0a%3c running @@ifconfig@@ without any options will show usually something like this:%0a%3c %0a%3c [@%0a%3c lo0: flags=8049%3cUP,LOOPBACK,RUNNING,MULTICAST> mtu 32768%0a%3c index 3 priority 0 llprio 3%0a%3c groups: lo%0a%3c inet6 ::1 prefixlen 128%0a%3c inet6 fe80::1%25lo0 prefixlen 64 scopeid 0x3%0a%3c inet 127.0.0.1 netmask 0xff000000%0a%3c em0: flags=8b43%3cUP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500%0a%3c lladdr aa:bb:cc:dd:ee:ff%0a%3c index 1 priority 0 llprio 3%0a%3c groups: egress%0a%3c media: Ethernet autoselect%0a%3c status: active%0a%3c inet 12.34.56.78 netmask 0xffffff00 broadcast 12.34.56.78%0a%3c inet6 2002::ffff:ccff:fedd:ee06%25vio0 prefixlen 64 scopeid 0x1%0a%3c inet6 2002:ffff:2:1040:: prefixlen 48%0a%3c enc0: flags=0%3c>%0a%3c index 2 priority 0 llprio 3%0a%3c groups: enc%0a%3c status: active%0a%3c pflog0: flags=141%3cUP,RUNNING,PROMISC> mtu 33136%0a%3c index 4 priority 0 llprio 3%0a%3c groups: pflo%0a%3c @]%0a%3c %0a%3c besides em0, all other interfaces mentioned (pflog0, enc0, lo0) are virtual and they will exist on all openbsd installations most of times.%0a%3c %0a%3c [@%0a%3c em0: flags=8b43%3cUP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500%0a%3c @]%0a%3c %0a%3c it shows em0's mtu (maximum size of a packet) and flags set on it. some can changed using software, some are hardware-dependent and can't without changing hardware.%0a%3c %0a%3c [@%0a%3c lladdr aa:bb:cc:dd:ee:ff%0a%3c @]%0a%3c %0a%3c this refer about MAC adderss used by this interface, which is @@aa:bb:cc:dd:ee:ff@@%0a%3c %0a%3c [@%0a%3c inet 12.34.56.78 netmask 0xffffff00 broadcast 12.34.56.78%0a%3c @]%0a%3c %0a%3c this is referring to ip address, netmask and broadcast address%0a%3c ip address can be local, if you are using NAT%0a%3c %0a%3c [@%0a%3c inet6 2002:ffff:2:1040:: prefixlen 48%0a%3c @]%0a%3c @@inet6@@ is like @@inet@@ but for ipv6. %0a host:1627909143=198.251.81.133