語(yǔ) 法:ifconfig [網(wǎng)絡(luò)設(shè)備][down up -allmulti -arp -promisc][add][del][][io_addr][irq][media][mem_start][metric][mtu][netmask][tunnel][-broadcast][-pointopoint][IP地址]
補(bǔ)充說(shuō)明:ifconfig可設(shè)置網(wǎng)絡(luò)設(shè)備的狀態(tài),或是顯示目前的設(shè)置。
參 數(shù):
add 設(shè)置網(wǎng)絡(luò)設(shè)備IPv6的IP地址。
del 刪除網(wǎng)絡(luò)設(shè)備IPv6的IP地址。
down 關(guān)閉指定的網(wǎng)絡(luò)設(shè)備。
設(shè)置網(wǎng)絡(luò)設(shè)備的類(lèi)型與硬件地址。
io_addr 設(shè)置網(wǎng)絡(luò)設(shè)備的I/O地址。
irq 設(shè)置網(wǎng)絡(luò)設(shè)備的IRQ。
media 設(shè)置網(wǎng)絡(luò)設(shè)備的媒介類(lèi)型。
mem_start 設(shè)置網(wǎng)絡(luò)設(shè)備在主內(nèi)存所占用的起始地址。
metric 指定在計(jì)算數(shù)據(jù)包的轉(zhuǎn)送次數(shù)時(shí),所要加上的數(shù)目。
mtu 設(shè)置網(wǎng)絡(luò)設(shè)備的MTU。
netmask 設(shè)置網(wǎng)絡(luò)設(shè)備的子網(wǎng)掩碼。
tunnel 建立IPv4與IPv6之間的隧道通信地址。
up 啟動(dòng)指定的網(wǎng)絡(luò)設(shè)備。
-broadcast 將要送往指定地址的數(shù)據(jù)包當(dāng)成廣播數(shù)據(jù)包來(lái)處理。
-pointopoint 與指定地址的網(wǎng)絡(luò)設(shè)備建立直接連線,此模式具有保密功能。
-promisc 關(guān)閉或啟動(dòng)指定網(wǎng)絡(luò)設(shè)備的promiscuous模式。
[IP地址] 指定網(wǎng)絡(luò)設(shè)備的IP地址。
[網(wǎng)絡(luò)設(shè)備] 指定網(wǎng)絡(luò)設(shè)備的名稱(chēng)。
新聞熱點(diǎn)
疑難解答
圖片精選