How to pick which interface to traceroute over

raasdnil
raasdnil used Ask the Experts™
on
I have an OpenBSD box that has 3 different internet connections coming into it and a single interface to the internal network, I want to be able to pick and choose which internet connection to send out a traceroute over but cannot seem to work out how - it always goes out the default connection. How do i select an interface (bge0, bge1, em0, em1) to traceroute out on?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
My traceroute has a -i option.

traceroute -i bge1 4.2.2.2
Commented:
traceroute -i <interface name> <IP>

Author

Commented:
thanks for that guys, it wasnt exactly right but I was able to fill i the blanks from what you gave me - turned out to be:

traceroute -s <interface IP>  <IP>

Author

Commented:
wasnt quite right for me but I was able to fill in the blanks from the data they gave me

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial