• slider image 168
:::
條列式新聞
新聞載入中,請稍後...

3-3-1 完裝完成後手動設定固定ip

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


      ~# ifconfig

       
  2. 修改主機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


:::
展開 | 闔起

文章類別

書籍目錄

展開 | 闔起

線上使用者

1人線上 (1人在瀏覽線上書籍)

會員: 0

訪客: 1

更多…