環(huán)境:ubuntu 10.10目標(biāo):配置網(wǎng)卡啟動(dòng)時(shí)加載iptables規(guī)則網(wǎng)絡(luò)上搜到的各種操作:sh -c "iptables-save > /etc/iptables.rules"vi /etc/network/interfaces## 目標(biāo)網(wǎng)卡下增
Redhat Linux的網(wǎng)絡(luò)配置,基本上是通過修改幾個(gè)配置文件來實(shí)現(xiàn)的,雖然也可以用ifconfig來設(shè)置IP,用route來配置默認(rèn)網(wǎng)關(guān),用hostname來配置主機(jī)名,但是重啟后會丟失。相