ubuntu系统静态路由

文章目录

  1. 在路由器上设置本电脑的静态ip
  2. sudo vim /etc/network/interfaces
    iface eth0 inet static
    address x.x.x.x #地址 192.168.0.10
    netmask x.x.x.x #掩码 255.255.255.0
    gateway x.x.x.x #网关 192.168.0.1
    network x.x.x.x #网络号 192.168.0.0
    broadcast x.x.x.x #192.168.0.255
    
  3. sudo service networking restart
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章