-
Notifications
You must be signed in to change notification settings - Fork 2
Setup a VLAN on a Linux network interface
Jean-Michel Fortin edited this page Jun 14, 2024
·
2 revisions
This tutorial shows how to setup a virtual interface in Ubuntu. This is particularly useful when you need a specific interface (like ethernet) to have two different IP addresses on two different subnets (to connect to a lidar, for instance).
add a VLAN interface:
sudo ip link add link eth0 name eth0.14 type vlan id 14
Verify that a new file was created in /proc/net/vlan
sudo cat /proc/net/vlan/th0.14
sudo nmcli connection add type vlan con-name lidar ifname th0.14 dev eth0 id 14 ip4 192.168.1.102/24
Bring it up
sudo nmcli connection up lidar
If needed, bring it down or remove it with
sudo nmcli connection down lidar
This brings it down permanently (doesn't start after reboot)
sudo nmcli connection modify lidar connection.autoconnect no
sudo nmcli connection delete lidar
- Warthog Teach and Repeat (ROS1)
- Warthog Teach and Repeat (ROS2)
- Time Synchronization (NTP)
- Time Synchronization (PTP)
- Deployment of Robotic Total Stations (RTS)
- Deployment of the backpack GPS
- Warthog Emlid GPS
- Atlans-C INS
- How to use a CB Radio when going in the forest
- IP forwarding
- Emlid Data Postprocessing (PPK)
- Setting up a reliable robot communication with Zenoh
- Zenoh rmw
- Lessons Learned
- Robots' 3D Models
- Order Management
- Fast track Master → PhD
- Intellectual Property
- Repository Guidelines
- TF Cheatsheet
- Montmorency Forest Wintertime Dataset
- RTS-GT Dataset 2023
- Deschenes2021 Dataset
- TIGS Dataset
- DRIVE Datasets
- BorealHDR
- TimberSeg 1.0
- DARPA Subterranean Challenge - Urban Dataset
- How to upload a dataset to VALERIA
- ROS1 Bridge
- Migrating a repository to ROS2 (Humble)
- ROS2 and rosbags
- MCAP rosbags
- DDS Configuration (work in progress)
- Using a USB Microphone with ROS2
- ROS2 in VSCode
- ROS2 Troubleshooting