3-3-1
完裝完成後手動設定固定ip
- 手動設定主機的 ip ,必須在路由器 dhcp 配發的範圍以外,以避免 ip 重覆。
- windows 系統使用windows cmd 指令 ipconfig 查詢目前網段及 gateway
ipconfig /all
- Linux 系統使用Linux command Line 指令
ip a (debian 9)或 ifconfig (debian 8 以前)查詢目前網段及 gateway
~# ip a

~# ifconfig

- 修改主機ip設定
~# pico /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 172.20.2.21 <-----------172.20.2. 網段(和底下 gateway 要同網段)
netmask 255.255.255.0
gateway 172.20.2.254 <-----------172.20.2. 網段(這是AP的位址,也路路由的位址)

重新啟動網路設定 或 重新開機( 使用 reboot 指令)
~# service networking restart