FYI that has noting to do with a connection, it simply brings the network interface up. If you want it to negotiate a connection and grab an IP you should use dhcpcd. Some distros have scripts to use instead of directly running the DHCP client but this will get it working.