µÚÒ»ÖÖ:
[code]route add -net 172.16.6.0 netmask 255.255.255.0 gw 172.16.2.254 dev eth0[/code]
/* Ôö¼ÓÒ»ÌõÍøÂç172.16.6.0/24 ¾¹ý172.16.2.254 eth0 */
/* -netÔö¼ÓÍøÂç -hostÔö¼ÓÖ÷»ú netmask ×ÓÍøÑÚÂë gw Íø¹Ø dev ×°ÖÃ,É豸,ÕâÀïÊÇÄãµÄÍø¿¨Ãû*/
route del gw 172.16.2.254 /* ɾ³ýĬÈÏÍø¹Ø172.16.2.254 */
route del -net 172.16.86.0/24 /* ɾ³ýĬÈÏÍøÂç172.16.86.0 */
route /* ÏÔʾµ±Ç°Â·Óɱí */
³£ÓõÄÊÇÕâÖÖ·½Ê½,µ«ÓÐʱÄãÔÚɾ³ý»òÒ»ÌõÈí·ÓÉʱ»á²»Æð×÷ÓÃ,»áÓÐʲôÌáʾ:
SIOCADDRT: ?·¨½Ó??·
ËùÒÔÕâʱÓÃÈçϵÄÕâÖÖ·½·¨¾Í¿ÉÒÔÁË
µÚ¶þÖÖ:
ʵÏֵŦÄܺÍÉÏÃæµÄÒ»Ñù
[code]ip route add 172.16.6.0/24 via 172.16.2.254 dev eth0
ip route del gw 172.16.2.254
ip route del 172.16.6.0/24 dev eth0
ip route[/code]
¸üÏéϸµÄÐÅÏ¢¿ÉÒÔ´Óman route ,man ipÖÐÁ˽⵽,ÎÒÕâÀïÊDZ¸·ÝÒ»ÏÂÎÒ³£ÓõĹæÔò,ÅÂÍü¼ÇÁË¡£