• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: interface
5Arg: <name>
6Help: Use network INTERFACE (or address)
7Category: connection
8Added: 7.3
9Multi: single
10See-also:
11  - dns-interface
12Example:
13  - --interface eth0 $URL
14---
15
16# `--interface`
17
18Perform an operation using a specified interface. You can enter interface
19name, IP address or host name. An example could look like:
20
21    curl --interface eth0:1 https://www.example.com/
22
23On Linux it can be used to specify a **VRF**, but the binary needs to either
24have **CAP_NET_RAW** or to be run as root. More information about Linux
25**VRF**: https://www.kernel.org/doc/Documentation/networking/vrf.txt
26