方法有很多,不同类linux可能略有不同;
以centos为例,在终端中输入依次输入
setup -> network configuration -> edit a device params 编辑网络ip,跟windows上一样的方法;
setup -> network configuration -> edit dns cconfiguration 编辑dns;
service network restart 重启网络服务生效。
不需要两块网卡的,你有两块网卡可能别的用途吧。
设置ip和dns可以直接编辑ifcfg-eth0,resolv.conf 等
查看用ifconfig