linux環境命令行配置ip以及代理

  • 使用dhcp服務獲取IP
    • dhclient network_card_name
  • ubuntu
auto eth0
iface eth0 inet dhcp
重啓網絡服務
sudo /etc/init.d/networking restart
---配置文件
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1
---命令
ifconfig eth0 210.34.6.89 netmask 255.255.255.128 broadcast 210.34.6.127
route add default gw 172.18.255.253 dev eth2
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章