Linux 配置IP位址

2021-10-05 02:44:33 字數 511 閱讀 4098

setup工具(rebhat,centos)

vim /etc/sysconfig/network-scripts/ifcfg-網絡卡名稱(手工修改)

[root@localhost ~]

# service network restart

#重啟網路服務

ip已經使用

複製/轉殖的映象導致uuid重複

[root@localhost ~]

# vim /etc/sysconfig/network-scripts/ifcfg-ens33

# 刪除其中的mac位址行

[root@localhost ~]

# rm -rf /etc/udev/rules.d/70-persistent-net.rules

#刪除mac位址和uuid繫結檔案

[root@localhost ~]

# reboot

#重啟linux

Linux下配置IP位址

root localhost network scripts pwd etc sysconfig network scripts root localhost network scripts ls ifcfg eth0 ifdown bnep ifdown post ifup ifup ipsec ...

linux下配置IP位址

示例環境 os fc2 nic eth0 host name fc2 ip 192.168.0.20 24 default gateway 192.168.0.254 修改ip位址 即時生效 ifconfig eth0 192.168.0.20 netmask 255.255.255.0 啟動生效 ...

linux 如何配置ip位址

當我們用vmware安裝了一台linux虛擬機器時,在本地的local是無法連線到虛擬機器的linux的,那是因為新配置的虛擬機器系統沒有配置任何的ip位址,接下來教大家如何配置.device eth0 hwaddr 00 0c 29 08 ca da type ethernet uuid ab92...