Skip to content
二哥的秘密小站

时间漂流船

二哥的秘密小站

时间漂流船

重新配置网卡

Posted on 2022年6月23日2022年6月23日
首先ifconfig查看你新的网卡的名字,例如是叫enp0s3,那么:
vim /etc/network/interfaces

Change from:

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet static
  address 192.168.56.5
  netmask 255.255.255.0
  gateway 192.168.56.1

Change to:

auto lo
iface lo inet loopback

allow-hotplug enp0s3
iface enp0s3 inet static
  address 192.168.56.5
  netmask 255.255.255.0
  gateway 192.168.56.1

 

未分类

文章导航

Previous post
Next post

Search

Archives

  • 2025 年 7 月
  • 2025 年 6 月
  • 2025 年 1 月
  • 2024 年 12 月
  • 2024 年 3 月
  • 2024 年 2 月
  • 2023 年 12 月
  • 2023 年 9 月
  • 2023 年 8 月
  • 2023 年 7 月
  • 2023 年 6 月
  • 2023 年 5 月
  • 2023 年 4 月
  • 2023 年 2 月
  • 2022 年 12 月
  • 2022 年 10 月
  • 2022 年 8 月
  • 2022 年 7 月
  • 2022 年 6 月
  • 2022 年 2 月

其他操作

  • 注册
  • 登录
  • 条目 feed
  • 评论 feed
  • WordPress.org
©2025 二哥的秘密小站 | WordPress Theme by SuperbThemes