1.linux Configuration ip:ifconfig Command Temporary configuration ifconfig eth0 192.168.254.200 netmask 255.255.255.0
Setup tool permanently configures Setup service network restart
Modify the network configuration file Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Vi/etc/sysconfig/network
Vi/etc/resolv.conf
Graphical interface Configuration IP address
2. If you are replicating a virtual machine, you need to modify the UUID:
1) vi/etc/sysconfig/network-scripts/ifcfg-eth0
* Delete MAC address line
2) rm-rf/etc/udev/rules.d/70-persistent-net.rules
* Remove network card and MAC address bindings file
3) Restart system
3. Network connection of the virtual machine to the physical machine:
Bridging: Equivalent to another computer that communicates with other virtual machines in the same segment and has a separate IP. * Note Select Bridge Adapter
NAT (network address translation mode): The physical machine for the router to the Internet.
Host-only mode
4. Ifdown Network card name #禁用网卡
Ifup NIC name #启用网卡
Netstat-tuln or-an
Netstat-rn or Route-n #查网关
Nslookup server #可查DNS
Logout #远程连接要登出
wget #下载命令
Tcpdump #抓包命令
eg. Tcpdump-i ETH0-NNX Port 21
Linux Network Management