What does this command do?
ip route add 10.0.0.0/24 via 192.168.1.1
- Adds a static route through a gateway
- Assigns an IP to an interface
- Deletes the default route
- Enables packet forwarding
Traffic for 10.0.0.0/24 is sent to the next hop 192.168.1.1.
Play Networking ▸