add static route gateway persistent
:windows
route -p add dest_network mask dest_netmask gateway
ex:
route -p add 192.168.1.0 mask 255.255.255.0 10.10.10.1
:solaris 10
route -p -net dest_network/24 -gateway gateway
ex:
route -p add 192.168.1.0/24 -gateway 10.10.10.1
:OracleLinux 6.5
# cd /etc/sysconfig/network-scripts
# cat route-eth2
# echo ‘10.11.18.0/24 via 10.10.18.4′ >> /etc/sysconfig/network-scripts/route-eth0
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.