linux虚拟机网络配置

 

service network restart

弹出界面eth0:错误:没有找到合适的设备:没有找到可用于连接’System eth0′ 的设备
ifconfig 发现eth0网卡不存在

可能原因:

复制或者克隆虚拟机时未修改mac地址

修改方法:

1、vi /e[......]

继续阅读

iptables笔记及流量转发

一、基本命令

iptables -nv -L 查看配置规则
more /etc/sysconfig/iptables 直接查看iptables的配置文档
/etc/init.d/iptables status查看防火墙状态
service iptables save 保存正在使用的防火墙规则[......]

继续阅读