Router configuration

From RacecarWiki
Jump to: navigation, search

In order to ssh into your car you will need to configure your router to give your car a static IP address.

Initial setup

The Racecar router powered on and connected to the internet
The Racecar router powered on and connected to the internet

Plug the router's power adapter into the wall and into the router. Plug your ethernet cable into the router's port marked "internet", and the other end into a working ethernet port.

Connect to your router's network on your local machine either through ethernet or WiFi. If your router is new, you can usually find the SSID and password on the bottom.

If you are on the MIT network, go to a web browser and visit Dynamic Host Configuration at MIT to enable internet connection if it not already enabled.

Router configuration

Go to the router's configuration page by opening your browser and entering the router's IP. The IP is probably of the form, 192.168.[subnet].1, where the subnet is either 0 or 1. To access the page you may have to enter the administrator's username and password which is probably either admin/admin or admin/password by default. Check the configuration instructions provided by your router's manufacturer for more information.

Router naming

If you plan on using multiple Racecars and routers in the same space, it is helpful to change the name of the network.


If necessary, change the routers name and password and apply the changes. Networks for MIT cars are named RACECAR_[car_number]

Assigning a static IP

Turn your Racecar on and connect it to a monitor with an HDMI cable. Click the network button in the top right of the screen to connect to Wifi. In the Network menu click "Edit connections..." and delete any old Wifi networks if they exist to prevent conflicts. Navigate to the page labeled "DHCP" and make a new reservation for your car. You will need to know the MAC adress of your car. You may find this on the router configuration page in the "Devices" section, or by running the following on your car:

cat /sys/class/net/wlan0/address

Choose an IP for your car like 192.168.[subnet].[car_number], where car_number is a number between 16 and 99. Other numbers could conflict with Racecar sensors like the lidar.


After the router applies the changes, you should be able to connect to your car by running the following on your local machine:

ssh racecar@192.168.[subnet].[car_number]

It will ask for the password of your Racecar which is racecar@mit by default.

Since you will be connecting to the car over ssh often, it may be useful to add the following alias to your local setup.bash file. Note that using sshpass is not secure.

# rc ~= "remote car" - ssh into your car with 4 letters
# usage example: rc 74
function rc()  { sshpass -p racecar@mit ssh racecar@192.168.0.$@; }