伺服器多網卡使用1個ip
A. 一台PC機器上有兩張網卡,如何配置兩張網卡同IP地址
可以用NIC Express Enterprise Edition軟體來將兩個網卡配置成一個虛擬網卡,這樣就可以配置一個IP地址了
雙擊它啟動安裝程序
這就只配置一個網虛擬出來的網卡就可以了
B. 怎麼讓多台伺服器共用一個IP地址詳細設置
一般是不可能這樣的。但在伺服器負載均衡技術/伺服器群集上,還是用得到的。如支持負載均衡的地址轉換網關(NAT),可以將一個外部IP地址映射為多個內部IP地址,對每次TCP連接請求動態使用其中一個內部地址,達到負載均衡的目的。
C. 在linux上怎麼兩個網卡配同一個IP
linux中雙網卡的梆定
創建一個bond設備,三個簡單的步驟即可搞定:
(1)首先要保證相應的驅動程序已經載入:
localhost@root
~#
modprobe
bonding
或
modprobe
<3c59x|
eepro100|pcnet32|tulip|...>
(2)其次給等梆定bond設備分配IP地址
localhost@root
~#
ifconfig
bond0
<IP地址>
netmask
<子網掩碼>
broadcast
<廣播地址
>
例如
ifconfig
bond0
192.168.1.242
netmask
255.255.255.0
broadcast
172.31.3.254
(3)最後將所有要梆定的物理網卡介面添加到bond設備中去
localhost@root
~#
ifenslave
bond0
[{-f|--force}
bond0
eth0
[
eth1
[eth2]...]
例如
ifenslave
bond0
eth0
eth1
梆定了eth0
eth1兩個網卡設備。
--force
表示強制進行梆定
創建好bond設備後,就可以像一般的網卡設備一樣使用了
如啟動bond0:
#
ifconfig
bond0
up
停用bond0:
#
ifconfig
bond0
down
在不停用bond0的情況下添加介面:
#
ifenslave
{-d|
--detach}
bond0
eth0
[eth1
[eth2]...]
--detach表示"附加"的意思
改變活動的從設備:
#
ifenslave
{-c|--change-active}
bond0
eth0
--change-acitve
表示"改變活動的從設備"的意思
顯示主介面(指bond0)信息:
#
ifenslave
bond0
顯示所以介面信息:
#
ifenslave
{-a|--all-interfaces}
--all-interfaces
表示"所有介面"