interface.d 719 B

1234567891011121314151617181920
  1. c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: interface
  4. Arg: <name>
  5. Help: Use network INTERFACE (or address)
  6. See-also: dns-interface
  7. Category: connection
  8. Example: --interface eth0 $URL
  9. Added: 7.3
  10. ---
  11. Perform an operation using a specified interface. You can enter interface
  12. name, IP address or host name. An example could look like:
  13. curl --interface eth0:1 https://www.example.com/
  14. If this option is used several times, the last one will be used.
  15. On Linux it can be used to specify a VRF, but the binary needs to either
  16. have CAP_NET_RAW or to be run as root. More information about Linux VRF:
  17. https://www.kernel.org/doc/Documentation/networking/vrf.txt