Forrest logo
back to the tailscale tool

tailscale-up:tldr:0be10

tailscale-up: Connect and configure Tailscale as a subnet router.
$ sudo tailscale up --advertise-routes=${10-0-0-0-24},${10-0-1-0-24}
try on your machine

The given command uses the 'sudo tailscale up' command to establish a Tailscale connection and specify the routes to be advertised.

Here is a breakdown of the command:

  • 'sudo': This is a command used in Unix-like operating systems to execute a command with administrative (or superuser) privileges. It allows the command following it to run with elevated permissions.

  • 'tailscale': This is the command-line tool for Tailscale, a VPN (Virtual Private Network) solution that allows secure network connections between different devices.

  • 'up': This is a subcommand of the 'tailscale' command, used to establish and activate the Tailscale connection.

  • '--advertise-routes': This is a flag or option that specifies the routes to be advertised or shared with other devices in the Tailscale network.

  • '${10-0-0-0-24},${10-0-1-0-24}': These are the routes being advertised. In Tailscale, routes are specified using CIDR notation (Classless Inter-Domain Routing). In this case, two routes are being advertised: '10.0.0.0/24' and '10.0.1.0/24'. The '/24' indicates that the first 24 bits of the IP address are used to specify the network, while the remaining bits are for device addresses.

Putting it all together, the command 'sudo tailscale up --advertise-routes=${10-0-0-0-24},${10-0-1-0-24}' establishes a Tailscale connection with elevated privileges and advertises the routes '10.0.0.0/24' and '10.0.1.0/24' to other devices in the Tailscale network.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the tailscale tool