weizhouapache commented on issue #10996:
URL: https://github.com/apache/cloudstack/issues/10996#issuecomment-2958431552

   > ```
   > ~# ip route show default 0.0.0.0/0
   > default proto bird src 10.72.44.3 metric 32
   >    nexthop via inet6 fe80::429e:a4ff:fe79:f50f dev eth1b weight 1
   >    nexthop via inet6 fe80::429e:a4ff:fe7b:8f0f dev eth1a weight 1
   > default via 10.72.44.197 dev eth1a proto static src 10.72.44.198 metric 
1024 onlink
   > default via 10.72.45.197 dev eth1b proto static src 10.72.45.198 metric 
1024 onlink
   > ```
   
   maybe we should add a `default via` (or at least ` via `) to make sure the 
command gets the default device, like
   
   ```
   ip route show default 0.0.0.0/0 | grep ' via ' | head -1 | awk '{print $5}'
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to