This is an example of how to...
Show routes
route print ... IPv4-Routentabelle =========================================================================== Aktive Routen: Netzwerkziel Netzwerkmaske Gateway Schnittstelle Metrik 0.0.0.0 0.0.0.0 192.168.43.1 192.168.43.186 55 127.0.0.0 255.0.0.0 Auf Verbindung 127.0.0.1 331 127.0.0.1 255.255.255.255 Auf Verbindung 127.0.0.1 331 127.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 331 192.168.43.0 255.255.255.0 Auf Verbindung 192.168.43.186 311 192.168.43.186 255.255.255.255 Auf Verbindung 192.168.43.186 311 192.168.43.255 255.255.255.255 Auf Verbindung 192.168.43.186 311 224.0.0.0 240.0.0.0 Auf Verbindung 127.0.0.1 331 224.0.0.0 240.0.0.0 Auf Verbindung 192.168.43.186 311 255.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 331 255.255.255.255 255.255.255.255 Auf Verbindung 192.168.43.186 311 =========================================================================== Ständige Routen: Keine ...
Add a static route (-p is for persistent)
# route -p ADD destination_network MASK subnet_mask gateway_ip metric_cost route -p ADD 192.168.35.0 MASK 255.255.255.0 192.168.0.2
Or delete a route using
# route delete destination_network route delete 192.168.35.0
Comments