配置静态路由的命令如下:
进入配置模式
```bash
enable
configure terminal
```
配置IPv4静态路由
```bash
ip route [目标网络] [子网掩码] [下一跳地址]
```
例如:
```bash
ip route 192.168.2.0 255.255.255.0 192.168.1.2
```
配置IPv6静态路由
```bash
ipv6 route-static [目标网络] [子网掩码] [下一跳地址]
```
例如:
```bash
ipv6 route-static 2001:db8:: 64 2001:db8::1
```
配置带送出接口的静态路由
```bash
ip route [目标网络] [子网掩码] [送出接口]
```
例如:
```bash
ip route 192.168.3.0 255.255.255.0 f0/1
```
配置带下一跳路由器的静态路由
```bash
ip route [目标网络] [子网掩码] [下一跳地址]
```
例如:
```bash
ip route 192.168.3.0 255.255.255.0 192.168.2.2
```
在Windows系统中配置静态路由
```powershell
route add [目标网络] mask [子网掩码] [网关地址]
```
例如:
```powershell
route add 10.0.0.0 mask 255.0.0.0 10.10.16.1
```
删除静态路由
删除特定路由:
```bash
ip route delete [目标网络] [子网掩码] [下一跳地址]
```
删除所有静态路由:
```bash
delete static-routes all
```
请根据具体的网络需求选择合适的命令进行配置。