TUN devices provide routing mode and start a virtual point-to-point connection; TAP devices provide bridging mode and start a virtual network segment. The parameter ifconfig needs the two tunnel IPs when we are using tun devices, and the local IP along with netmask, when we are using tap devices.