Imported Upstream version 7.59.0
[platform/upstream/curl.git] / docs / cmdline-opts / interface.d
1 Long: interface
2 Arg: <name>
3 Help: Use network INTERFACE (or address)
4 See-also: dns-interface
5 ---
6
7 Perform an operation using a specified interface. You can enter interface
8 name, IP address or host name. An example could look like:
9
10  curl --interface eth0:1 https://www.example.com/
11
12 If this option is used several times, the last one will be used.
13
14 On Linux it can be used to specify a VRF, but the binary needs to either
15 have CAP_NET_RAW or to be ran as root. More information about Linux VRF:
16 https://www.kernel.org/doc/Documentation/networking/vrf.txt