【Windows CMD命令窗口常见ipconfig及route print命令释义】

一、   IPConfig命令
⦁    Host Name . . . . . . . . . . . . : FAKON-GP01 ·(主机名称)
⦁    Primary Dns Suffix . . . . . . . : fakon.com ·(DNS服务器地址)
⦁    Node Type . . . . . . . . . . . . : Unknown (节点类型)
⦁    IP Routing(路由器) Enabled. . . . . . . . : No
⦁    WINS Proxy(代理服务器) Enabled. . . . . . . . : No
⦁    DNS Suffix Search List. . . . . . : fakon.com(DNS服务器寻找后缀名称)
⦁    Ethernet adapter 本地连接:(以太网适配器)
⦁    Connection-specific DNS Suffix . :(连接的DNS服务器后缀)
⦁    Description(描述) . . . . . .  : Realtek RTL8168/8111 PCI-E Gigabi ·网卡型号
⦁    thernet NIC
⦁    Physical Address(物理地址)). . : 00-1D-7D-71-A8-D6 ·(MAC地址 网卡MAC地址)
⦁    Dhcp Enabled. . . . . . . . . . . : No ·DHCP (Dhcp服务开启)
⦁    IP Address. . . . . . . . . . . . : 192.168.90.114 ·(IP地址)
⦁    Subnet Mask . . . . . . . . . . . : 255.255.255.0(子网掩码)
⦁    Default Gateway . . . . . . . . . : 192.168.90.254(默认网关)
⦁    Primary DNS Servers . . . . . . . . . . . : 192.168.90.88(主DNS服务器)
⦁    Scondry DNS Servers . . . . . . . . . . . : 192.168.90.88(备用DNS服务器)
⦁    Lease obtelned. . . . . . . . . . . . . . . . .:(获得租约)
⦁    Lease Expires. . . . . . . . . . . .. . . . . . .:(有效租约) 


二、route print命令

当前路由

Destination:目的地网段

Mask:子网掩码

Gateway:网关,下一跳路由器的IP,路由器通过interface和gateway定义下一个路由器的链路,通常情况下,interface和gateway是同一网段的。

Interface:到达该目的地的本路由器的出口ip。

Metric:跳数,该条路由记录路由的质量,一般情况下,如果有多条到达相同目的地的路由记录,路由器会采用metric值小的那条路由

三、arp命令

1.查看arp缓存:arp -a(unix系统使用-g)

Interface:网络接口

Internet  Address:网络的ip地址

Physical Address:物理地址

Type:网络的类型,分为动态dynamic和静态static两种。

2.用“arp -d空格+指定IP地址”可删除指定行ip所在内容

3.用“arp -s”可以在arp表中指定ip地址和MAC地址对应,类型为statics(静态),此项存在于硬盘中,而不是缓存表,计算机重启后任然存在,且遵循静态优于动态的原则,所以这个设置不对,可能导致无法上网。

原创文章 46 获赞 36 访问量 8万+

猜你喜欢

转载自blog.csdn.net/istrangeboy/article/details/100024318