Ubuntu12.04文件修改eth0的IP

命令行運行:sudo gedit /etc/network/interfaces

>>>>

>>>>

#此處爲設置靜態IP

auto eth0                  #設置自動啓動eth0接口

iface eth0 inet static     #配置靜態IP
address 192.168.11.88      #IP地址
netmask 255.255.255.0      #子網掩碼

gateway 192.168.11.1        #默認網關


#此處爲設置DHCP自動獲取IP

auto eth0                  #設置自動啓動eth0接口
iface eth0 inet dhcp     #自動獲取IP


>>>>保存

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章