linux下route命令使用
来源:互联网 发布:电动车定位软件多少钱 编辑:程序博客网 时间:2024/05/29 18:56
查看路由表
# route -n
Kernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Iface
239.255.255.250 0.0.0.0 255.255.255.255 UH 0 0 0 br0
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.200.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
224.0.0.0 0.0.0.0 240.0.0.0 U 0 0 0 br0
#
# cat /proc/net/route
Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
br0 EFFFFFFA 00000000 0005 0 0 0 FFFFFFFF 0 0 0
eth1 C0A86400 00000000 0001 0 0 0 FFFFFF00 0 0 0
br0 C0A8C800 00000000 0001 0 0 0 FFFFFF00 0 0 0
br0 E0000000 00000000 0001 0 0 0 F0000000 0 0 0
删除默认路由
#route del
添加默认路由
route add default gw 10.104.10.1
添加一条路由
(发往192.168.62这个网段的全部要经过网关192.168.1.1)
route add -net 192.168.62.0 netmask 255.255.255.0 gw 192.168.1.1
删除一条路由
route del -net 192.168.122.0 netmask 255.255.255.0
Flags:
o
o
o
o
o
o
o
- linux下route命令使用
- linux 下route命令
- linux下route命令
- linux下route命令
- linux 下route命令
- linux 下route命令
- linux 下route命令
- linux 下route命令
- linux 下route命令
- linux 下route命令
- linux 下route命令
- linux route命令使用
- linux route命令使用
- linux route命令使用
- linux route命令使用
- linux route命令使用
- linux route命令使用
- linux route命令使用
- java基础笔记
- caffe学习(6)激活层
- JavaScript学习笔记
- oracle入门
- 单例 多例
- linux下route命令使用
- Serv-U 常见问题
- WebService 简介
- Raid和mdadm命令
- 关系数据库的三范式
- 数据库基本概念比喻描述
- tomcat的目录结构
- linux常用命令
- Linux查看文件内容