请选择 进入手机版 | 继续访问电脑版

Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 3973|回复: 4

设置静态IP

[复制链接]

22

主题

8

回帖

156

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
156
发表于 2022-10-30 20:33:48 | 显示全部楼层 |阅读模式
  1. vi /etc/network/interfaces.d/eth0
复制代码
  1. auto eth0
  2. iface eth0 inet static
  3. address 192.168.1.10
  4. network 192.168.1.1
  5. netmask 255.255.255.0
  6. broadcast 192.168.1.255
  7. gateway 192.168.1.1
  8. dns-nameservers 222.74.126.230
  9. pre-up ifconfig eth0 hw ether 84:21:F1:0F:E4:02
复制代码

回复

使用道具 举报

22

主题

8

回帖

156

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
156
 楼主| 发表于 2022-11-1 20:21:10 | 显示全部楼层
  1. auto eth0
  2. iface eth0 inet static
  3. address 192.168.1.6
  4. network 192.168.1.1
  5. netmask 255.255.255.0
  6. broadcast 192.168.1.255
  7. gateway 192.168.1.1
  8. dns-nameservers 222.74.126.230
  9. pre-up ifconfig eth0 hw ether 00:E4:00:F3:4D:8D
复制代码

广电机顶盒
回复

使用道具 举报

22

主题

8

回帖

156

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
156
 楼主| 发表于 2022-11-2 22:44:51 | 显示全部楼层
  1. vi /etc/network/interfaces.d/eth0   # 修改配置文件
  2. # 增加下面的内容 (实际内容可按需修改)
  3. auto eth0
  4. iface eth0 inet static
  5. address 192.168.1.10
  6. network 192.168.1.0
  7. netmask 255.255.255.0
  8. broadcast 192.168.1.255
  9. gateway 192.168.1.1
  10. dns-nameservers 192.168.1.1
  11. pre-up ifconfig eth0 hw ether 00:11:22:33:44:66
复制代码
回复

使用道具 举报

22

主题

8

回帖

156

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
156
 楼主| 发表于 2023-2-5 21:56:11 | 显示全部楼层
电信自动获取的MAC地址

  1. auto eth0
  2. iface eth0 inet static
  3. address 192.168.1.10
  4. network 192.168.1.1
  5. netmask 255.255.255.0
  6. broadcast 192.168.1.255
  7. gateway 192.168.1.1
  8. dns-nameservers 222.74.126.230
  9. pre-up ifconfig eth0 hw ether 84:21:F1:EB:E5:7B
复制代码


回复

使用道具 举报

22

主题

8

回帖

156

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
156
 楼主| 发表于 2023-2-10 22:40:13 | 显示全部楼层
  1. auto eth0
  2. iface eth0 inet static
  3. address 192.168.1.8
  4. network 192.168.1.1
  5. netmask 255.255.255.0
  6. broadcast 192.168.1.255
  7. gateway 192.168.1.1
  8. dns-nameservers 222.74.126.230
  9. pre-up ifconfig eth0 hw ether A8:F4:70:8B:A8:C6
复制代码
赤峰广电 机顶盒
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|博客 ( 蒙ICP备15000739号-1 )

GMT+8, 2023-3-22 21:34 , Processed in 0.046654 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表