0

Possible Duplicate:
Finding the Public IP address in a shell script

I'm trying to problem solve a network Connection for a customer, and have to do a speed test on the network from Our Linux console. I'm not sure how I'll get the right WAN address.

I have the gw of the router, and the ip of the network for the ISP. Is it one of these ip that I should take a traceroute on?

Thanks :)

IT-Arkitekt
  • 63
  • 1
  • 4

1 Answers1

0

To get the public IP from the console use curl

curl -s http://whatismyip.org/

or

curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'

To test the speed of your connection just download an ISO file from a random website.

Valentin Bajrami
  • 3,870
  • 1
  • 17
  • 25