Perform traceroute with specific outgoing IP Unicorn Meta Zoo #1: Why another podcast? ...
Is it OK if I do not take the receipt in Germany?
A journey... into the MIND
Is there an efficient way for synchronising audio events real-time with LEDs using an MCU?
Israeli soda type drink
In search of the origins of term censor, I hit a dead end stuck with the greek term, to censor, λογοκρίνω
My admission is revoked after accepting the admission offer
What does the black goddess statue do and what is it?
What was Apollo 13's "Little Jolt" after MECO?
Has a Nobel Peace laureate ever been accused of war crimes?
What is the numbering system used for the DSN dishes?
All ASCII characters with a given bit count
Marquee sign letters
Why does Java have support for time zone offsets with seconds precision?
What *exactly* is electrical current, voltage, and resistance?
Stretch a Tikz tree
What's called a person who works as someone who puts products on shelves in stores?
Where to find documentation for `whois` command options?
Is there a possibility to generate a list dynamically in Latex?
What is ls Largest Number Formed by only moving two sticks in 508?
Why did Israel vote against lifting the American embargo on Cuba?
Why isn't everyone flabbergasted about Bran's "gift"?
What were wait-states, and why was it only an issue for PCs?
Is it accepted to use working hours to read general interest books?
How would you suggest I follow up with coworkers about our deadline that's today?
Perform traceroute with specific outgoing IP
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Come Celebrate our 10 Year Anniversary!IP range connected to my server suddenly times outTrixbox CentOS Default GW Problem (Multi-homed server)Problem configuring Network aliasesAssigning two IPs to one NIC in CentOSCentos 6.3 can't connect to ethernetCentOS network configuration doesn't work as expectedHow to enable IPv6 Autoconfiguration with static address in Linux (RHEL)Binding of IPs not workingWhy am I getting different results from two servers that located in the same destination network?IP range connected to my server suddenly times outCheck if the IPs are properly attached to the server
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
My server has multiple /24 subnets added via network-script files ifcfg-eth0-range0
Now one /24 subnet has connection issues and I need to perform a traceroute to see what's wrong.
How can I have my server using one of those IPs as outgoing IP address when doing a traceroute?
centos ip traceroute
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
My server has multiple /24 subnets added via network-script files ifcfg-eth0-range0
Now one /24 subnet has connection issues and I need to perform a traceroute to see what's wrong.
How can I have my server using one of those IPs as outgoing IP address when doing a traceroute?
centos ip traceroute
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
My server has multiple /24 subnets added via network-script files ifcfg-eth0-range0
Now one /24 subnet has connection issues and I need to perform a traceroute to see what's wrong.
How can I have my server using one of those IPs as outgoing IP address when doing a traceroute?
centos ip traceroute
My server has multiple /24 subnets added via network-script files ifcfg-eth0-range0
Now one /24 subnet has connection issues and I need to perform a traceroute to see what's wrong.
How can I have my server using one of those IPs as outgoing IP address when doing a traceroute?
centos ip traceroute
centos ip traceroute
asked Dec 10 '15 at 11:34
maddo7maddo7
12529
12529
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I imagine your subnets are assigned to (virtual) interfaces and that you want the trace to go through one of these.
The traceroute
has an option for this. Check out the man page - you just do this to force the trace to proceed through a specific interface:
traceroute -i <interface> <host>
If this doesn't work, out can add a specific route to the host you want to trace via the gateway you want. Do:
route add -host <host> gw <gw>
Then do the traceroute - and don't forget to delete the route (if you don't need it anymore):
route del -host <host> gw <gw>
Hope it helps.
traceroute -i eth0:749 google.com
givessetsockopt SO_BINDTODEVICE: No such device
but I can see this interface from/sbin/ifconfig
, any idea what's wrong?
– maddo7
Dec 10 '15 at 12:18
Have to admit I have used this on Cisco and it may be that Linux aliased interfaces do not support binding or something. See my coming edit for another suggestion.
– MrMajestyk
Dec 10 '15 at 12:36
When I doroute add -host google.com gw x.x.x.2
traceroute times out and wget saysfailed: No route to host.
– maddo7
Dec 10 '15 at 13:28
Well that would then suggest that there is no (configured) way to reach google.com via x.x.x.2 - but: how about adding some details to your question: What does the interface list on the server look like? How are the clients on the non-working subnet configured? What is their default GW for instance? What does traceroute <some host> look like from the server? From the client?
– MrMajestyk
Dec 10 '15 at 14:41
Actually the question here is related to serverfault.com/questions/741246/… the hosting company told me to do a traceroute both sides to see where the problem was. Meanwhile they looked at it and confirmed the problem has to be server related. The strange thing is the subnet stopped working overnight without any server changes being made during that time. So now I'm struggling to find out why the IPs aren't working and only get a timeout.
– maddo7
Dec 10 '15 at 15:41
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f742126%2fperform-traceroute-with-specific-outgoing-ip%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I imagine your subnets are assigned to (virtual) interfaces and that you want the trace to go through one of these.
The traceroute
has an option for this. Check out the man page - you just do this to force the trace to proceed through a specific interface:
traceroute -i <interface> <host>
If this doesn't work, out can add a specific route to the host you want to trace via the gateway you want. Do:
route add -host <host> gw <gw>
Then do the traceroute - and don't forget to delete the route (if you don't need it anymore):
route del -host <host> gw <gw>
Hope it helps.
traceroute -i eth0:749 google.com
givessetsockopt SO_BINDTODEVICE: No such device
but I can see this interface from/sbin/ifconfig
, any idea what's wrong?
– maddo7
Dec 10 '15 at 12:18
Have to admit I have used this on Cisco and it may be that Linux aliased interfaces do not support binding or something. See my coming edit for another suggestion.
– MrMajestyk
Dec 10 '15 at 12:36
When I doroute add -host google.com gw x.x.x.2
traceroute times out and wget saysfailed: No route to host.
– maddo7
Dec 10 '15 at 13:28
Well that would then suggest that there is no (configured) way to reach google.com via x.x.x.2 - but: how about adding some details to your question: What does the interface list on the server look like? How are the clients on the non-working subnet configured? What is their default GW for instance? What does traceroute <some host> look like from the server? From the client?
– MrMajestyk
Dec 10 '15 at 14:41
Actually the question here is related to serverfault.com/questions/741246/… the hosting company told me to do a traceroute both sides to see where the problem was. Meanwhile they looked at it and confirmed the problem has to be server related. The strange thing is the subnet stopped working overnight without any server changes being made during that time. So now I'm struggling to find out why the IPs aren't working and only get a timeout.
– maddo7
Dec 10 '15 at 15:41
add a comment |
I imagine your subnets are assigned to (virtual) interfaces and that you want the trace to go through one of these.
The traceroute
has an option for this. Check out the man page - you just do this to force the trace to proceed through a specific interface:
traceroute -i <interface> <host>
If this doesn't work, out can add a specific route to the host you want to trace via the gateway you want. Do:
route add -host <host> gw <gw>
Then do the traceroute - and don't forget to delete the route (if you don't need it anymore):
route del -host <host> gw <gw>
Hope it helps.
traceroute -i eth0:749 google.com
givessetsockopt SO_BINDTODEVICE: No such device
but I can see this interface from/sbin/ifconfig
, any idea what's wrong?
– maddo7
Dec 10 '15 at 12:18
Have to admit I have used this on Cisco and it may be that Linux aliased interfaces do not support binding or something. See my coming edit for another suggestion.
– MrMajestyk
Dec 10 '15 at 12:36
When I doroute add -host google.com gw x.x.x.2
traceroute times out and wget saysfailed: No route to host.
– maddo7
Dec 10 '15 at 13:28
Well that would then suggest that there is no (configured) way to reach google.com via x.x.x.2 - but: how about adding some details to your question: What does the interface list on the server look like? How are the clients on the non-working subnet configured? What is their default GW for instance? What does traceroute <some host> look like from the server? From the client?
– MrMajestyk
Dec 10 '15 at 14:41
Actually the question here is related to serverfault.com/questions/741246/… the hosting company told me to do a traceroute both sides to see where the problem was. Meanwhile they looked at it and confirmed the problem has to be server related. The strange thing is the subnet stopped working overnight without any server changes being made during that time. So now I'm struggling to find out why the IPs aren't working and only get a timeout.
– maddo7
Dec 10 '15 at 15:41
add a comment |
I imagine your subnets are assigned to (virtual) interfaces and that you want the trace to go through one of these.
The traceroute
has an option for this. Check out the man page - you just do this to force the trace to proceed through a specific interface:
traceroute -i <interface> <host>
If this doesn't work, out can add a specific route to the host you want to trace via the gateway you want. Do:
route add -host <host> gw <gw>
Then do the traceroute - and don't forget to delete the route (if you don't need it anymore):
route del -host <host> gw <gw>
Hope it helps.
I imagine your subnets are assigned to (virtual) interfaces and that you want the trace to go through one of these.
The traceroute
has an option for this. Check out the man page - you just do this to force the trace to proceed through a specific interface:
traceroute -i <interface> <host>
If this doesn't work, out can add a specific route to the host you want to trace via the gateway you want. Do:
route add -host <host> gw <gw>
Then do the traceroute - and don't forget to delete the route (if you don't need it anymore):
route del -host <host> gw <gw>
Hope it helps.
edited Dec 10 '15 at 12:39
answered Dec 10 '15 at 11:55
MrMajestykMrMajestyk
92369
92369
traceroute -i eth0:749 google.com
givessetsockopt SO_BINDTODEVICE: No such device
but I can see this interface from/sbin/ifconfig
, any idea what's wrong?
– maddo7
Dec 10 '15 at 12:18
Have to admit I have used this on Cisco and it may be that Linux aliased interfaces do not support binding or something. See my coming edit for another suggestion.
– MrMajestyk
Dec 10 '15 at 12:36
When I doroute add -host google.com gw x.x.x.2
traceroute times out and wget saysfailed: No route to host.
– maddo7
Dec 10 '15 at 13:28
Well that would then suggest that there is no (configured) way to reach google.com via x.x.x.2 - but: how about adding some details to your question: What does the interface list on the server look like? How are the clients on the non-working subnet configured? What is their default GW for instance? What does traceroute <some host> look like from the server? From the client?
– MrMajestyk
Dec 10 '15 at 14:41
Actually the question here is related to serverfault.com/questions/741246/… the hosting company told me to do a traceroute both sides to see where the problem was. Meanwhile they looked at it and confirmed the problem has to be server related. The strange thing is the subnet stopped working overnight without any server changes being made during that time. So now I'm struggling to find out why the IPs aren't working and only get a timeout.
– maddo7
Dec 10 '15 at 15:41
add a comment |
traceroute -i eth0:749 google.com
givessetsockopt SO_BINDTODEVICE: No such device
but I can see this interface from/sbin/ifconfig
, any idea what's wrong?
– maddo7
Dec 10 '15 at 12:18
Have to admit I have used this on Cisco and it may be that Linux aliased interfaces do not support binding or something. See my coming edit for another suggestion.
– MrMajestyk
Dec 10 '15 at 12:36
When I doroute add -host google.com gw x.x.x.2
traceroute times out and wget saysfailed: No route to host.
– maddo7
Dec 10 '15 at 13:28
Well that would then suggest that there is no (configured) way to reach google.com via x.x.x.2 - but: how about adding some details to your question: What does the interface list on the server look like? How are the clients on the non-working subnet configured? What is their default GW for instance? What does traceroute <some host> look like from the server? From the client?
– MrMajestyk
Dec 10 '15 at 14:41
Actually the question here is related to serverfault.com/questions/741246/… the hosting company told me to do a traceroute both sides to see where the problem was. Meanwhile they looked at it and confirmed the problem has to be server related. The strange thing is the subnet stopped working overnight without any server changes being made during that time. So now I'm struggling to find out why the IPs aren't working and only get a timeout.
– maddo7
Dec 10 '15 at 15:41
traceroute -i eth0:749 google.com
gives setsockopt SO_BINDTODEVICE: No such device
but I can see this interface from /sbin/ifconfig
, any idea what's wrong?– maddo7
Dec 10 '15 at 12:18
traceroute -i eth0:749 google.com
gives setsockopt SO_BINDTODEVICE: No such device
but I can see this interface from /sbin/ifconfig
, any idea what's wrong?– maddo7
Dec 10 '15 at 12:18
Have to admit I have used this on Cisco and it may be that Linux aliased interfaces do not support binding or something. See my coming edit for another suggestion.
– MrMajestyk
Dec 10 '15 at 12:36
Have to admit I have used this on Cisco and it may be that Linux aliased interfaces do not support binding or something. See my coming edit for another suggestion.
– MrMajestyk
Dec 10 '15 at 12:36
When I do
route add -host google.com gw x.x.x.2
traceroute times out and wget says failed: No route to host.
– maddo7
Dec 10 '15 at 13:28
When I do
route add -host google.com gw x.x.x.2
traceroute times out and wget says failed: No route to host.
– maddo7
Dec 10 '15 at 13:28
Well that would then suggest that there is no (configured) way to reach google.com via x.x.x.2 - but: how about adding some details to your question: What does the interface list on the server look like? How are the clients on the non-working subnet configured? What is their default GW for instance? What does traceroute <some host> look like from the server? From the client?
– MrMajestyk
Dec 10 '15 at 14:41
Well that would then suggest that there is no (configured) way to reach google.com via x.x.x.2 - but: how about adding some details to your question: What does the interface list on the server look like? How are the clients on the non-working subnet configured? What is their default GW for instance? What does traceroute <some host> look like from the server? From the client?
– MrMajestyk
Dec 10 '15 at 14:41
Actually the question here is related to serverfault.com/questions/741246/… the hosting company told me to do a traceroute both sides to see where the problem was. Meanwhile they looked at it and confirmed the problem has to be server related. The strange thing is the subnet stopped working overnight without any server changes being made during that time. So now I'm struggling to find out why the IPs aren't working and only get a timeout.
– maddo7
Dec 10 '15 at 15:41
Actually the question here is related to serverfault.com/questions/741246/… the hosting company told me to do a traceroute both sides to see where the problem was. Meanwhile they looked at it and confirmed the problem has to be server related. The strange thing is the subnet stopped working overnight without any server changes being made during that time. So now I'm struggling to find out why the IPs aren't working and only get a timeout.
– maddo7
Dec 10 '15 at 15:41
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f742126%2fperform-traceroute-with-specific-outgoing-ip%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown