linux中查看路由命令是什么,linux下查看路由的命令
发布时间:2022-10-14 10:57:51 所属栏目:Unix 来源:
导读: 使用netstat -r命令显示路由表
[root@centos2 network-scripts]# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default gate
[root@centos2 network-scripts]# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default gate
|
使用netstat -r命令显示路由表 [root@centos2 network-scripts]# netstat -r Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface default gateway 0.0.0.0 UG 0 0 0 ens33 192.168.58.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33 192.168.122.0 0unix命令框.0.0.0 255.255.255.0 U 0 0 0 virbr0 使用route -n命令 [root@centos2 network-scripts]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.58.254 0.0.0.0 UG 100 0 0 ens33 192.168.58.0 0.0.0.0 255.255.255.0 U 100 0 0 ens33 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0 使用ip route命令 [root@centos2 network-scripts]# ip route default via 192.168.58.254 dev ens33 proto dhcp metric 100 192.168.58.0/24 dev ens33 proto kernel scope link src 192.168.58.149 metric 100 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 (编辑:百客网 - 百科网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
