方法不是很好. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.Text.RegularExpressions; namespace _12获取局域网中的所有IP地址 { class Program { static void Main(string[] args) { IPAddress startIP = I…
1.修改主机名: hostname newname vi /etc/hosts vi /etc/hostname.e1000g0 vi /etc/nodename init 6 #重启 --confirm hostname 2.修改IP地址: ifconfig -a vi /etc/hosts vi /etc/inet/ipnodes vi /etc/netmasks vi /etc/defaultrouter init 6 #重启 --confirm ifconfig -a 注:本文只是列出S…
查看所有 IP at MAC $ arp -a ? (10.125.49.187) at 18:81:e:eb:ef:c0 on en0 ifscope [ethernet] ? (10.125.50.149) at 4:cf:8c:26:f3:8e on en0 ifscope [ethernet] ? (10.125.51.44) at 10:77:17:57:b2:c3 on en0 ifscope [ethernet] 由 IP 找到主机名 由 NetBIOS 解析 Windows 下用…