esxi添加静态路由

 1 [root@Server01:~] esxcfg-route -l
 2 VMkernel Routes:
 3 Network          Netmask          Gateway          Interface      
 4 10.12.28.0       255.255.252.0    Local Subnet     vmk0           
 5 default          0.0.0.0          10.12.31.254     vmk0           
 6 [root@Server01:~] 
 7 [root@Server01:~] esxcfg-route -a 172.22.139.10/32 10.12.28.1
 8 Adding static route 172.22.139.10/32 to VMkernel
 9 [root@Server01:~] 
10 [root@Server01:~] esxcfg-route -l
11 VMkernel Routes:
12 Network          Netmask          Gateway          Interface      
13 172.22.139.10    255.255.255.255  10.12.28.1       vmk0           
14 10.12.28.0       255.255.252.0    Local Subnet     vmk0           
15 default          0.0.0.0          10.12.31.254     vmk0           
16 [root@Server01:~] 
17 [root@Server01:~] esxcfg-route -d 172.22.139.10/32 10.12.28.1
18 Deleting static route 172.22.139.10/32 from VMkernel
19 [root@Server01:~] 
20 [root@Server01:~] esxcfg-route -l
21 VMkernel Routes:
22 Network          Netmask          Gateway          Interface      
23 10.12.28.0       255.255.252.0    Local Subnet     vmk0           
24 default          0.0.0.0          10.12.31.254     vmk0    

 

posted @ 2022-01-24 20:31  三角形  阅读(940)  评论(0编辑  收藏  举报