配置多个网卡 ifconfig -a 查看网络设备 eth0 / eth1 / lo (回路)。
ifconfig eth1 //设备1
ifconfig eth1 192.168.1.10 netmask 255.255.255.0 //设置网卡子网及ip
配置多个网卡 ifconfig -a 查看网络设备 eth0 / eth1 / lo (回路)。
ifconfig eth1 //设备1
ifconfig eth1 192.168.1.10 netmask 255.255.255.0 //设置网卡子网及ip