歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> FreeBSD下面如何更改IP

FreeBSD下面如何更改IP

日期:2017/2/28 11:15:41   编辑:關於Unix


  2.修改 ifconfig_lnc0="inet xxx.xxx.xxx.xxx netmask 255.255.255.0"
  別忘了defaultrouter="xxx.xxx.xxx.xxx (gateway ip address)"
  如果想一次性的話,只要直接輸入 ifconfig lnc0 xxx.xxx.xxx.xxx netmask 255.255.255.0
  即時生效,重啟後失效。
  圖形界面配置IP
  sysinstall --> configure --> Networking -->interfaces -->相應網卡名。
  freebsd 單一網卡配置多個IP
  ifconfig_lnc0="inet 192.168.30.3 netmask 255.255.255.0"
  ifconfig_lnc0_alias0="inet 192.168.30.1 netmask 255.255.255.255"
  ifconfig_lnc0_alias1="inet 192.168.30.2 netmask 255.255.255.255"
  指定的IP地址和你在一個子網,別名後面的netmask應是255.255.255.255,如果指定IP位於不同子網,用相應子網的netmask。
Copyright © Linux教程網 All Rights Reserved