route [-f] [-p] [Command [Destination] [mask Netmask] [Gateway][metric Metric]] [if Interface]]
[root@localhost~]# route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.40.0 * 255.255.252.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default 192.168.40.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost~]# route add -net 10.0.0.0 netmask 255.255.255.0 dev eth0
[root@localhost~]# route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.0 * 255.255.255.0 U 0 0 0 eth0 192.168.40.0 * 255.255.252.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default 192.168.40.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost~]# route add -host 192.168.40.1dev eth0 [root@localhost ~]# route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.40.1 * 255.255.255.255 UH 0 0 0 eth0
[root@localhost~]# route add -net 10.10.10.128 netmask 255.255.255.128 reject
[root@localhost~]# route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.40.1 * 255.255.255.255 UH 0 0 0 eth0 10.10.10.128 - 255.255.255.128 ! 0 - 0 - 10.0.0.0 * 255.255.255.0 U 0 0 0 eth0 192.168.40.0 * 255.255.252.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default 192.168.40.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost~]# route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.40.1 * 255.255.255.255UH 0 0 0 eth0 10.10.10.128 - 255.255.255.128 ! 0 - 0 - 10.0.0.0 * 255.255.255.0 U 0 0 0 eth0 192.168.40.0 * 255.255.252.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default 192.168.40.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost~]# route del -net 10.10.10.128netmask 255.255.255.128 reject
[root@localhost~]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.40.1 * 255.255.255.255UH 0 0 0 eth0 10.0.0.0 * 255.255.255.0 U 0 0 0 eth0 192.168.40.0 * 255.255.252.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default 192.168.40.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost ~]# route add default gw 192.168.40.2 [root@localhost~]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.40.1 * 255.255.255.255UH 0 0 0 eth0 10.0.0.0 * 255.255.255.0 U 0 0 0 eth0 192.168.40.0 * 255.255.252.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default 192.168.40.2 0.0.0.0 UG 0 0 0 eth0 default 192.168.40.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost~]# route del default gw192.168.40.2
[root@localhost~]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.40.1 * 255.255.255.255UH 0 0 0 eth0 10.0.0.0 * 255.255.255.0 U 0 0 0 eth0 192.168.40.0 * 255.255.252.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default 192.168.40.1 0.0.0.0 UG 0 0 0 eth0
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有