14 15 CentOS 網路配置

2021-09-22 19:23:00 字數 2325 閱讀 9371

linux 系統4個物理網絡卡的名稱則分別為eth0,eth1,eth2,eth3。我們將四個網口橋接到br0埠。

你可以這樣理解 vlan 2, vlan ip 192.168.0.1,然後將4個介面劃分到vlan2, 這時這4個介面可以通過vlan 2訪問其他使用者。我只是做了乙個比喻,讓你能夠理解。

# brctl addbr br0

# brctl addif br0 eth0

# brctl addif br0 eth1

# brctl addif br0 eth2

# brctl addif br0 eth3

# ifconfig eth0 0.0.0.0

# ifconfig eth1 0.0.0.0

# ifconfig eth2 0.0.0.0

# ifconfig eth3 0.0.0.0

# ifconfig br0 192.168.0.1

# nmtui

# nmtui edit eno16777736

# nmtui connect eno16777736

centos 網路配置

一 centos 修改ip位址 修改對應網絡卡的ip位址的配置檔案 vi etc sysconfig network scripts ifcfg eth0 device eth0 hwaddr 44 33 4c 00 18 98 type ethernet uuid 5d40d966 3bf9 4b...

CentOS配置網路

1 配置ip vim etc sysconfig network scripts ifcfg eth0 檔案不存在就建立乙個,名字為 ifcfg 具體網絡卡的命名 可以用ifconfig命令檢視,左邊顯示的就是 device eth0 物理裝置名 ipaddr 192.168.1.100 ip位址 ...

centos網路配置

修改ip位址 1 使用setup命令 使用setup命令進入圖形介面,根據提示進入network configuration,edit device,根據提示進行ip設定 2 直接編輯檔案進行修改 vi etc sysconfig network scripts ifcfg eth0 此處的ifcf...