首页 > 系统 > Linux > 正文

linux在哪里查看路由表?

2024-08-28 00:01:34
字体:
来源:转载
供稿:网友

  路由表内容说明:
  查看路由
  # route -n
  Kernel IP routing table
  Destination Gateway Genmask Flags Metric Ref Use Iface
  192.57.66.200 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
  192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
  169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
  0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
  Destination:目标网络或主机。
  Gateway:网关地址。
  Genmask:目标网络的网络掩码。"255.255.255.255"表示一个主机。"0.0.0.0"表示网关。
  Flags:标记。
  U、路由被启用。
  H、目标是一个主机
  G、使用网关。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表