I have a Linux Debian server with 2 network cards each connected through a different gateway :
I would like to use wget with the ability to select which interface to use.
Is it possible?
How can I achieve that?
I would like to use wget with the ability to select which interface to use.
Is it possible?
How can I achieve that?
Depending on how you're using wget, you can use the routing table to send traffic through the right interface (assuming different destinations for those wgets).
I stupidely lost the connection to my server by using ipconfig on eth0 instead of eth1.
Anyway, the server is in my office, I will reset it tomorrow.
So as I said...
eth0 is 192.168.1.224 with gateway 192.168.1.1 (it's a livebox with wan 79.15.24.51)
eth1 is 192.168.1.225 with gateway 192.168.1.2 (it's a neufbox with wan 77.240.25.38)
My goal is to be able to tell each gateway's wan address using Current IP Check
So according to what you say (and I will check that tomorrow), the following commands should give me what I expect :
I'll come back to you with an answer tomorrow morning (9:00 Paris / 8:00 London).
Thanks for your advice
Santiago
---------- Post updated at 08:58 ---------- Previous update was at 01:10 ----------
Sorry guys,
I get exactly the same result regardless of the bind address I'm using :
Do you have an explanation? an alternate solution?
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.
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)