04-09-2010
Just checked: curl has an --interface option, which has it bind to an specific interface. Can't guarantee it will work, tho, since it might be possible that your routing table sends out everything on the same interface regardless of this.
10 More Discussions You Might Find Interesting
1. Solaris
Yes. But just wait a bit. How to do it via system calls? I'm just a newbie in Unix\Linux\Solaris e.t.c. programming. Can anyone help me? I need an advice probably how to do it or may be what API to read... :) Please, help... (2 Replies)
Discussion started by: LocalStorm
2 Replies
2. IP Networking
Hi,
I have problems with my SCO unix network interfaces.
Intel integrated adapter was failing, so I installed new one - 3COM adapter into free PCI slot.
Installed driver using SCO Software manager - successfully
Added new Network adapter using SCO Network configuration manager - successfully... (0 Replies)
Discussion started by: vilius
0 Replies
3. SCO
Hi,
I have problems with my SCO unix network interfaces.
Intel integrated adapter was failing, so I installed new one - 3COM adapter into free PCI slot.
Installed driver using SCO Software manager - successfully
Added new Network adapter using SCO Network configuration manager - successfully... (0 Replies)
Discussion started by: vilius
0 Replies
4. AIX
Hi all, this is my first post on this forum. My main problem is this:
I have a NIM server that I am trying to configure two interfaces on. One interface is for an internal Admin VLAN, the other is so that the server can use SUMA to pull updates. The problem is that I need help w/ the routing.... (0 Replies)
Discussion started by: snakernetb
0 Replies
5. AIX
Hi all, this is my first post on this forum. My main problem is this:
I have a NIM server that I am trying to configure two interfaces on. One interface is for an internal Admin VLAN, the other is so that the server can use SUMA to pull updates. The problem is that I need help w/ the routing.... (1 Reply)
Discussion started by: snakernetb
1 Replies
6. Solaris
I got second IOU in my M5000 but not able bring internal network interfcae .. ike i don't get link on those 2 interfaces .. and the same network cable plugged in PCI network card it works like a charm Is there any special way to enable the internal IOU interfaces or i have bad nics ? (8 Replies)
Discussion started by: fugitive
8 Replies
7. Debian
Hello
i am configuring a debian lenny sever ,/etc/network/interfaces is modified so that eth1 takes a static IP address
then i save it wq!
then i restart the networking , /etc/init.d/networking restart .
but after reboot ,the file is reset ,note that the interfaces had by defauklt IPv6 address... (5 Replies)
Discussion started by: learn82
5 Replies
8. UNIX for Advanced & Expert Users
All, I have a quad NIC on a V880 running Solaris 9. I've heard you can bond interfaces together and get better throughput. I found this link that seems to describe the process well. However, the command mentioned (dladm) is missing. Is there some package I need to install to get this command? Thx.... (2 Replies)
Discussion started by: agcodba
2 Replies
9. UNIX for Dummies Questions & Answers
i need a one liner command that writes in /var/log/net.log the date when i connect to the network and when i disconect ..i know that i need to write somethin in /etc/network/interfaces but idk what ! please help (1 Reply)
Discussion started by: g0dlik3
1 Replies
10. Linux
I just ran sudo service networking start on Ubuntu 16.00 and came out with error message
Job for networking service failed because control process exited with error code see systemctl status networking.service
I tried to also run this command
systemctl status networking.service
I also got an... (4 Replies)
Discussion started by: DOkuwa
4 Replies
LEARN ABOUT MOJAVE
curlopt_interface
CURLOPT_INTERFACE(3) curl_easy_setopt options CURLOPT_INTERFACE(3)
NAME
CURLOPT_INTERFACE - source interface for outgoing traffic
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_INTERFACE, char *interface);
DESCRIPTION
Pass a char * as parameter. This sets the interface name to use as outgoing network interface. The name can be an interface name, an IP
address, or a host name.
If the parameter starts with "if!" then it is treated as only as interface name and no attempt will ever be named to do treat it as an IP
address or to do name resolution on it. If the parameter starts with "host!" it is treated as either an IP address or a hostname. Host-
names are resolved synchronously. Using the if! format is highly recommended when using the multi interfaces to avoid allowing the code to
block. If "if!" is specified but the parameter does not match an existing interface, CURLE_INTERFACE_FAILED is returned from the libcurl
function used to perform the transfer.
The application does not have to keep the string around after setting this option.
DEFAULT
NULL, use whatever the TCP stack finds suitable
PROTOCOLS
All
EXAMPLE
TODO
AVAILABILITY
The "if!" and "host!" syntax was added in 7.24.0.
RETURN VALUE
Returns CURLE_OK on success or CURLE_OUT_OF_MEMORY if there was insufficient heap space.
SEE ALSO
CURLOPT_SOCKOPTFUNCTION(3), CURLOPT_TCP_NODELAY(3),
libcurl 7.54.0 December 21, 2016 CURLOPT_INTERFACE(3)