摘要:
Linux虚拟机中:#ifconfig#setup#service network restart#cat /etc/hosts 查看主机ip和主机名#netstat -anp 查看开设了哪些端口#cat /etc/resolv.cnf 查看dns search localdomain nameserver 192.168.1.1#cat /etc/sysconfig/network-scripts/ifcfg-eth0#cat /etc/sysconfig/network 查看主机名Window虚拟机中:>ipconfig /all>nslookup 查看dns服务注意:虚拟xp 阅读全文