Route flags in FreeBSD and Linux

对比一下FreeBSD和Linux的关于路由表Flags的定义 相同的有

U   Up: The route is active.
H   Host: The route destination is a single host.
G   Gateway: Send anything for this destination on to this remote system, which will figure out from there where to send it.

FreeBSD独有的:
S   Static: This route was configured manually, not automatically generated by the system.
C   Clone: Generates a new route based upon this route for machines we connect to. This type of route is normally used for local networks.
W   WasCloned: Indicated a route that was auto-configured based upon a local area network (Clone) route.
L   Link: Route involves references to Ethernet hardware.

Linux独有的:
R (reinstate route for dynamic routing)
D (dynamically installed by daemon or redirect)
M (modified from routing daemon or redirect)
A (installed by addrconf)
C (cache entry)
!  (reject route)

FreeBSD里常看到的是UC, UHLW, UGS, UGHS这几种。UC根据本地网络配置自动生成的,UHLW是由UC根据连接情况自动生成的,UGS是手工配置的段网关路由,UGHS是手工配置的主机网关路由。

Linux里常看到的是U, UG, UGH这几种。U和BSD的UC是一样的,UG和UGS一样,UGH和UGHS一样,没有UHLW。

Ref:
    FreeBSD Handbook: Gateways and Routes
    Linux man page: route(8)


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值