blob: 275f6151ca2fd8aba10e2d580f18d8174a417353 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
2SPDX-License-Identifier: curl
3Long: interface
4Arg: <name>
5Help: Use network INTERFACE (or address)
6See-also: dns-interface
7Category: connection
8Example: --interface eth0 $URL
9Added: 7.3
10Multi: single
11---
12Perform an operation using a specified interface. You can enter interface
13name, IP address or host name. An example could look like:
14
15 curl --interface eth0:1 https://www.example.com/
16
17On Linux it can be used to specify a VRF, but the binary needs to either
18have CAP_NET_RAW or to be run as root. More information about Linux VRF:
19https://www.kernel.org/doc/Documentation/networking/vrf.txt