ip route-static prefix mask {address| interfacce} [distance] [tag tag] [permanent]
Prefix :所要到达的目的网络的IP
Mask :所要到达的目的网络的子网掩码
Address :下一跳路由的IP地址,即相邻路由器的端口地址。
Interface :本地网络接口
Distance :管理距离(可选)
Tag Tag :tag值(可选)
Permanent :指定此路由即使该端口关掉也不被移掉
例:ip route-static 10.0.0.0 8 23.23.23.1 也可写ip route-static 10.0.0.0 255.0.0.0 23.23.23.1
告诉10地址段,掩码为8位就是11111111 00000000 00000000 00000000
255 是10进制,如果写成二进制,就是8个1,就是11111111
11111111 | 00000000 | 00000000 | 00000000 |
255 | 0 | 0 | 0 |
255.0.0.0 去向23.23.23.1出口