博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
route 命令
阅读量:2429 次
发布时间:2019-05-10

本文共 1579 字,大约阅读时间需要 5 分钟。

route

一般来说,只要有网络接口,该接口就会产生一个路由。route命令主要用来查看,修改主机网络接口路由信息。

1. 查看路由表		常见参数:			-n: 不要使用通讯协议或主机名,直接使用 IP 或 端口号			-ee:显示更详细的信息				# route		[root@www chenli]# route 		Kernel IP routing table		Destination     Gateway         Genmask         Flags Metric Ref    Use Iface		172.16.26.0     *               255.255.255.0   U     1      0        0 eth1		default         172.16.26.1     0.0.0.0         UG    0      0        0 eth1				# route -n		[root@www chenli]# route -n		Kernel IP routing table		Destination     Gateway         Genmask         Flags Metric Ref    Use Iface		172.16.26.0     0.0.0.0         255.255.255.0   U     1      0        0 eth1		0.0.0.0         172.16.26.1     0.0.0.0         UG    0      0        0 eth1				# route -nee		[root@www chenli]# route -nee		Kernel IP routing table		Destination     Gateway         Genmask         Flags Metric Ref    Use Iface    MSS   Window irtt		172.16.26.0     0.0.0.0         255.255.255.0   U     1      0        0 eth1     0     0      0		0.0.0.0         172.16.26.1     0.0.0.0         UG    0      0        0 eth1     0     0      0			# Destination 目标网络,0.0.0.0表示默认路由		# Gateway  路由的下一跳地址,0.0.0.0 表示该路由是透过局域网络的 MAC 直接传送		# Genmask 目标网络子网掩码		# Flags 路由标志			U (route is up):该路由是启动的;			H (target is a host):目标是一部主机 (IP) 而非网域;			G (use gateway):需要透过外部的主机 (gateway) 来转递封包;			R (reinstate route for dynamic routing):使用动态路由时,恢复路由信息的旗标;			D (dynamically installed by daemon or redirect):已经由服务或转 port 功能设定为动态路由			M (modified from routing daemon or redirect):路由已经被修改了;			! (reject route):这个路由将不会被接受(用来抵挡不安全的网域!)		# Iface:这个路由传递封包的接口

转载地址:http://bgcmb.baihongyu.com/

你可能感兴趣的文章
Redis 缓存穿透、击穿、雪崩
查看>>
RabbitMQ(1): docker-compose安装rabbitmq及简单使用Hello World
查看>>
leetcode 525. 连续数组
查看>>
利用序列化实现对象的拷贝
查看>>
is-a,has-a,like-a是什么
查看>>
简单工厂、工厂、抽象工厂的对比
查看>>
J2EE的体系架构——J2EE
查看>>
对于关系型数据库中的索引的基本理解
查看>>
索引,主键,唯一索引,联合索引的区别
查看>>
剪桌腿的最小代价
查看>>
Zookeeper原理架构
查看>>
利用ZooKeeper简单实现分布式锁
查看>>
Lock、ReentrantLock、synchronized
查看>>
Java过滤器与SpringMVC拦截器之间的关系与区别
查看>>
Java中的String为什么是不可变的?
查看>>
剑指offer二叉搜索树与双向链表
查看>>
LeetCode 81. 搜索旋转排序数组 II(头条)
查看>>
LC 42. 接雨水 + LC 11. 盛最多水的容器
查看>>
腾讯2017 秋招+暑期实习 笔试(编码;构造回文;字符移位;有趣的数字)
查看>>
LC 901. 股票价格跨度 LC 739. 每日温度
查看>>